mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-26 21:35:35 +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
e7be73d579
commit
c1ec49eb13
@ -353,6 +353,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…
x
Reference in New Issue
Block a user