1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

test: sha: test SHA224 and SHA256 separately

This is meant to adapt to the new library design in which
SHA224 and SHA256 can be built independently from each other.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti
2022-12-14 10:58:02 +01:00
parent a3f99591f6
commit 46e8fd8263
3 changed files with 19 additions and 5 deletions

View File

@ -243,6 +243,9 @@ const selftest_t selftests[] =
#if defined(MBEDTLS_SHA1_C)
{"sha1", mbedtls_sha1_self_test},
#endif
#if defined(MBEDTLS_SHA224_C)
{"sha256", mbedtls_sha224_self_test},
#endif
#if defined(MBEDTLS_SHA256_C)
{"sha256", mbedtls_sha256_self_test},
#endif