mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-27 13:45:04 +00:00
Test PSA_HASH_BLOCK_LENGTH
Only tested for algorithms for which we support HMAC, since that's all we use PSA_HASH_BLOCK_LENGTH for at the moment. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
285f2133f5
commit
1b06d09fc6
|
@ -350,6 +350,7 @@ void hmac_algorithm( int alg_arg,
|
|||
TEST_ASSERT( PSA_ALG_IS_HASH( hash_alg ) );
|
||||
TEST_EQUAL( PSA_ALG_HMAC( hash_alg ), alg );
|
||||
|
||||
TEST_ASSERT( block_size == PSA_HASH_BLOCK_LENGTH( alg ) );
|
||||
TEST_ASSERT( block_size <= PSA_HMAC_MAX_HASH_BLOCK_SIZE );
|
||||
|
||||
test_mac_algorithm( alg_arg, ALG_IS_HMAC, length,
|
||||
|
|
Loading…
Reference in a new issue