mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-03 05:05:24 +01:00
Add selftests
Add selftests for key wrapping
This commit is contained in:
parent
cb349ac279
commit
9ab746c7c9
2 changed files with 222 additions and 0 deletions
|
|
@ -57,6 +57,7 @@
|
|||
#include "mbedtls/ecp.h"
|
||||
#include "mbedtls/ecjpake.h"
|
||||
#include "mbedtls/timing.h"
|
||||
#include "mbedtls/nist_kw.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
|
@ -208,6 +209,9 @@ const selftest_t selftests[] =
|
|||
#if defined(MBEDTLS_CCM_C) && defined(MBEDTLS_AES_C)
|
||||
{"ccm", mbedtls_ccm_self_test},
|
||||
#endif
|
||||
#if defined(MBEDTLS_NIST_KW_C) && defined(MBEDTLS_AES_C)
|
||||
{"nist_kw", mbedtls_nist_kw_self_test},
|
||||
#endif
|
||||
#if defined(MBEDTLS_CMAC_C)
|
||||
{"cmac", mbedtls_cmac_self_test},
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue