diff options
Diffstat (limited to 'test/monniaux/bitsliced-aes/main.c')
-rw-r--r-- | test/monniaux/bitsliced-aes/main.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/monniaux/bitsliced-aes/main.c b/test/monniaux/bitsliced-aes/main.c new file mode 100644 index 00000000..83588872 --- /dev/null +++ b/test/monniaux/bitsliced-aes/main.c @@ -0,0 +1,47 @@ +/*#include <stdio.h>*/ +#include <stdlib.h> +#include <string.h> +#include "bs.h" +#include "aes.h" +#include "utils.h" +#include "../clock.h" + +#define RUN_TESTS + +#include "testbench/app.h" +#ifdef RUN_TESTS +#include "tests/tests.h" +#endif + +#ifdef TEST_FOOTPRINT +#define printf(fmt, ...) (0) +#define fprintf(f,fmt, ...) (0) +#else +#include <stdio.h> +#endif + +int main(int argc, char * argv[]) +{ + clock_prepare(); + + clock_start(); + +#ifdef RUN_TESTS +#ifndef TEST_FOOTPRINT + aes_ecb_test(); +#endif + aes_ctr_test(); + +#else + + cli_app(argc,argv); + +#endif + + clock_stop(); + print_total_clock(); + + return 0; +} + + |