15
|
1 #ifndef __TEST_H_ |
|
2 #define __TEST_H_ |
|
3 |
|
4 #include "mycrypt.h" |
|
5 |
|
6 typedef struct { |
|
7 char *name, *prov, *req; |
|
8 int (*entry)(void); |
|
9 } test_entry; |
|
10 |
|
11 extern prng_state test_yarrow; |
|
12 |
|
13 void run_cmd(int res, int line, char *file, char *cmd); |
|
14 #define DO(x) run_cmd((x), __LINE__, __FILE__, #x) |
|
15 |
|
16 |
|
17 |
|
18 /* TESTS */ |
|
19 int cipher_hash_test(void); |
|
20 int modes_test(void); |
|
21 int mac_test(void); |
|
22 int pkcs_1_test(void); |
|
23 int store_test(void); |
|
24 int rsa_test(void); |
|
25 int ecc_tests(void); |
|
26 int dsa_test(void); |
|
27 int dh_tests(void); |
|
28 |
|
29 #endif |