tomcrypt/testprof/mac_test.c

45 lines
642 B
C
Raw Normal View History

2005-04-17 07:37:13 -04:00
/* test pmac/omac/hmac */
#include <tomcrypt_test.h>
int mac_test(void)
{
2006-11-17 09:21:24 -05:00
#ifdef LTC_HMAC
2005-04-17 07:37:13 -04:00
DO(hmac_test());
#endif
2006-11-17 09:21:24 -05:00
#ifdef LTC_PMAC
2005-04-17 07:37:13 -04:00
DO(pmac_test());
#endif
2006-11-17 09:21:24 -05:00
#ifdef LTC_OMAC
2005-04-17 07:37:13 -04:00
DO(omac_test());
#endif
2006-11-17 09:21:24 -05:00
#ifdef LTC_XCBC
DO(xcbc_test());
#endif
#ifdef LTC_F9_MODE
DO(f9_test());
#endif
2007-07-20 13:48:02 -04:00
#ifdef LTC_EAX_MODE
2005-04-17 07:37:13 -04:00
DO(eax_test());
#endif
2007-07-20 13:48:02 -04:00
#ifdef LTC_OCB_MODE
2005-04-17 07:37:13 -04:00
DO(ocb_test());
#endif
#ifdef LTC_OCB3_MODE
DO(ocb3_test());
#endif
2007-07-20 13:48:02 -04:00
#ifdef LTC_CCM_MODE
2005-04-17 07:37:13 -04:00
DO(ccm_test());
#endif
2007-07-20 13:48:02 -04:00
#ifdef LTC_GCM_MODE
2005-04-17 07:37:13 -04:00
DO(gcm_test());
#endif
2007-07-20 13:48:02 -04:00
#ifdef LTC_PELICAN
2005-04-17 07:37:13 -04:00
DO(pelican_test());
#endif
return 0;
}
2005-06-08 20:08:13 -04:00
/* $Source$ */
/* $Revision$ */
/* $Date$ */