comparison demos/test/test.h @ 15:6362d3854bb4 libtomcrypt-orig

0.96 release of LibTomCrypt
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Jun 2004 14:07:21 +0000
parents
children 5d99163f7e32
comparison
equal deleted inserted replaced
3:7faae8f46238 15:6362d3854bb4
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