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:
parent
abfbcc9318
commit
8e22350651
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue