aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/bitsliced-aes/main.c
blob: 83588872db0e61973fbd56ec9fe52611f4a8ddd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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;
}