From b534759e1916f53fa341e8becf6b5dd252db84e0 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 21 Apr 2022 11:14:30 +0200 Subject: [PATCH] Remove redundant initialization of iv_length Signed-off-by: Gilles Peskine --- tests/src/psa_exercise_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/psa_exercise_key.c b/tests/src/psa_exercise_key.c index 415f8852c..53af7b801 100644 --- a/tests/src/psa_exercise_key.c +++ b/tests/src/psa_exercise_key.c @@ -165,7 +165,7 @@ static int exercise_cipher_key( mbedtls_svc_key_id_t key, { psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; unsigned char iv[16] = {0}; - size_t iv_length = sizeof( iv ); + size_t iv_length; psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_key_type_t key_type; const unsigned char plaintext[16] = "Hello, world...";