tests: add AES cmac test to mbedtls test

it covers the story "Port AES-CMAC-PRF-128 [RFC 4615]
encryption library for Thread support"

ZEP-734

Change-Id: I6213309b51da435060c3e3cfadde67e21a927b2b
Signed-off-by: ethan gao <ethan.gao@intel.com>
This commit is contained in:
ethan gao 2017-02-24 22:14:09 +08:00 committed by Anas Nashif
commit 8e22350651

View file

@ -58,6 +58,7 @@
#include "mbedtls/ecp.h"
#include "mbedtls/ecjpake.h"
#include "mbedtls/timing.h"
#include "mbedtls/cmac.h"
#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"
@ -375,6 +376,14 @@ int main(void)
suites_tested++;
#endif
#if defined(MBEDTLS_CMAC_C) \
&& (defined(MBEDTLS_AES_C) || defined(MBEDTLS_DES_C))
if (mbedtls_cmac_self_test(v) != 0) {
suites_failed++;
}
suites_tested++;
#endif
/* Slow tests last */
#if defined(MBEDTLS_TIMING_C)