comparison libtomcrypt/tests/tomcrypt_test.h @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents
children
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
2 *
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
5 *
6 * The library is free for all purposes without any express
7 * guarantee it works.
8 */
9
10 #ifndef __TEST_H_
11 #define __TEST_H_
12
13 #include <tomcrypt.h>
14
15 #include "common.h"
16
17 #ifdef USE_LTM
18 /* Use libtommath as MPI provider */
19 #define LTC_TEST_MPI
20 #elif defined(USE_TFM)
21 /* Use tomsfastmath as MPI provider */
22 #define LTC_TEST_MPI
23 #elif defined(USE_GMP)
24 /* Use GNU Multiple Precision Arithmetic Library as MPI provider */
25 #define LTC_TEST_MPI
26 #elif defined(EXT_MATH_LIB)
27 /* The user must define his own MPI provider! */
28 #define LTC_TEST_MPI
29 #endif
30
31 typedef struct {
32 char *name, *prov, *req;
33 int (*entry)(void);
34 } test_entry;
35
36 /* TESTS */
37 int cipher_hash_test(void);
38 int modes_test(void);
39 int mac_test(void);
40 int pkcs_1_test(void);
41 int pkcs_1_pss_test(void);
42 int pkcs_1_oaep_test(void);
43 int pkcs_1_emsa_test(void);
44 int pkcs_1_eme_test(void);
45 int store_test(void);
46 int rotate_test(void);
47 int rsa_test(void);
48 int dh_test(void);
49 int katja_test(void);
50 int ecc_tests(void);
51 int dsa_test(void);
52 int der_test(void);
53 int misc_test(void);
54 int base64_test(void);
55 int file_test(void);
56 int multi_test(void);
57 int prng_test(void);
58 int mpi_test(void);
59
60 #ifdef LTC_PKCS_1
61 struct ltc_prng_descriptor* no_prng_desc_get(void);
62 void no_prng_desc_free(struct ltc_prng_descriptor*);
63 #endif
64
65 #endif
66
67 /* ref: $Format:%D$ */
68 /* git commit: $Format:%H$ */
69 /* commit time: $Format:%ai$ */