1 /* test pmac/omac/hmac */ 2 #include <tomcrypt_test.h> 3 4 int mac_test(void) 5 { 6 #ifdef LTC_HMAC 7 DO(hmac_test()); 8 #endif 9 #ifdef LTC_PMAC 10 DO(pmac_test()); 11 #endif 12 #ifdef LTC_OMAC 13 DO(omac_test()); 14 #endif 15 #ifdef LTC_XCBC 16 DO(xcbc_test()); 17 #endif 18 #ifdef LTC_F9_MODE 19 DO(f9_test()); 20 #endif 21 #ifdef EAX_MODE 22 DO(eax_test()); 23 #endif 24 #ifdef OCB_MODE 25 DO(ocb_test()); 26 #endif 27 #ifdef CCM_MODE 28 DO(ccm_test()); 29 #endif 30 #ifdef GCM_MODE 31 DO(gcm_test()); 32 #endif 33 #ifdef PELICAN 34 DO(pelican_test()); 35 #endif 36 return 0; 37 } 38 39 /* $Source: /cvs/libtom/libtomcrypt/testprof/mac_test.c,v $ */ 40 /* $Revision: 1.5 $ */ 41 /* $Date: 2006/11/08 21:57:04 $ */ 42