diff options
author | Gilles Peskine <Gilles.Peskine@arm.com> | 2022-04-05 16:32:07 +0200 |
---|---|---|
committer | Gilles Peskine <Gilles.Peskine@arm.com> | 2022-04-15 11:10:14 +0200 |
commit | f96e9775843ac37e721365c52d8ed7dec71bd08c (patch) | |
tree | 7b8badd15cb7756ea39ede6f2b0df0cc14ce7322 /tests/src | |
parent | 2773f26971b220492906bb070b4e9d4b9beb6d67 (diff) | |
download | mbedtls-f96e9775843ac37e721365c52d8ed7dec71bd08c.zip mbedtls-f96e9775843ac37e721365c52d8ed7dec71bd08c.tar.gz mbedtls-f96e9775843ac37e721365c52d8ed7dec71bd08c.tar.bz2 |
No need to recalculate iv_length
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/psa_exercise_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/psa_exercise_key.c b/tests/src/psa_exercise_key.c index 3d2dfc6..415f885 100644 --- a/tests/src/psa_exercise_key.c +++ b/tests/src/psa_exercise_key.c @@ -181,7 +181,7 @@ static int exercise_cipher_key( mbedtls_svc_key_id_t key, if( usage & PSA_KEY_USAGE_ENCRYPT ) { PSA_ASSERT( psa_cipher_encrypt_setup( &operation, key, alg ) ); - if( PSA_CIPHER_IV_LENGTH( key_type, alg ) != 0 ) + if( iv_length != 0 ) { PSA_ASSERT( psa_cipher_generate_iv( &operation, iv, sizeof( iv ), |