2014-12-10 21:56:49 +00:00
|
|
|
/* test pmac/omac/hmac */
|
|
|
|
#include <tomcrypt_test.h>
|
|
|
|
|
|
|
|
int mac_test(void)
|
|
|
|
{
|
|
|
|
#ifdef LTC_HMAC
|
|
|
|
DO(hmac_test());
|
|
|
|
#endif
|
|
|
|
#ifdef LTC_PMAC
|
|
|
|
DO(pmac_test());
|
|
|
|
#endif
|
|
|
|
#ifdef LTC_OMAC
|
|
|
|
DO(omac_test());
|
|
|
|
#endif
|
|
|
|
#ifdef LTC_XCBC
|
|
|
|
DO(xcbc_test());
|
|
|
|
#endif
|
|
|
|
#ifdef LTC_F9_MODE
|
|
|
|
DO(f9_test());
|
|
|
|
#endif
|
2019-06-09 20:44:26 +00:00
|
|
|
#ifdef LTC_EAX_MODE
|
2014-12-10 21:56:49 +00:00
|
|
|
DO(eax_test());
|
|
|
|
#endif
|
2019-06-09 20:44:26 +00:00
|
|
|
#ifdef LTC_OCB_MODE
|
2014-12-10 21:56:49 +00:00
|
|
|
DO(ocb_test());
|
|
|
|
#endif
|
2019-06-09 20:44:26 +00:00
|
|
|
#ifdef LTC_CCM_MODE
|
2014-12-10 21:56:49 +00:00
|
|
|
DO(ccm_test());
|
|
|
|
#endif
|
2019-06-09 20:44:26 +00:00
|
|
|
#ifdef LTC_GCM_MODE
|
2014-12-10 21:56:49 +00:00
|
|
|
DO(gcm_test());
|
|
|
|
#endif
|
2019-06-09 20:44:26 +00:00
|
|
|
#ifdef LTC_PELICAN
|
2014-12-10 21:56:49 +00:00
|
|
|
DO(pelican_test());
|
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-06-09 20:44:26 +00:00
|
|
|
/* $Source$ */
|
|
|
|
/* $Revision$ */
|
|
|
|
/* $Date$ */
|