comparison libtomcrypt/tests/mac_test.c @ 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 /* test pmac/omac/hmac */
10 #include <tomcrypt_test.h>
11
12 int mac_test(void)
13 {
14 #ifdef LTC_HMAC
15 DO(hmac_test());
16 #endif
17 #ifdef LTC_PMAC
18 DO(pmac_test());
19 #endif
20 #ifdef LTC_OMAC
21 DO(omac_test());
22 #endif
23 #ifdef LTC_XCBC
24 DO(xcbc_test());
25 #endif
26 #ifdef LTC_F9_MODE
27 DO(f9_test());
28 #endif
29 #ifdef LTC_EAX_MODE
30 DO(eax_test());
31 #endif
32 #ifdef LTC_OCB_MODE
33 DO(ocb_test());
34 #endif
35 #ifdef LTC_OCB3_MODE
36 DO(ocb3_test());
37 #endif
38 #ifdef LTC_CCM_MODE
39 DO(ccm_test());
40 #endif
41 #ifdef LTC_GCM_MODE
42 DO(gcm_test());
43 #endif
44 #ifdef LTC_PELICAN
45 DO(pelican_test());
46 #endif
47 #ifdef LTC_POLY1305
48 DO(poly1305_test());
49 #endif
50 #ifdef LTC_CHACHA20POLY1305_MODE
51 DO(chacha20poly1305_test());
52 #endif
53 #ifdef LTC_BLAKE2SMAC
54 DO(blake2smac_test());
55 #endif
56 #ifdef LTC_BLAKE2BMAC
57 DO(blake2bmac_test());
58 #endif
59 return 0;
60 }
61
62 /* ref: $Format:%D$ */
63 /* git commit: $Format:%H$ */
64 /* commit time: $Format:%ai$ */