diff --git a/library/psa_crypto.c b/library/psa_crypto.c index fade286ecd74..e4b865ec971f 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3393,7 +3393,7 @@ psa_status_t psa_cipher_generate_iv(psa_cipher_operation_t *operation, { psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; uint8_t local_iv[PSA_CIPHER_IV_MAX_SIZE]; - size_t default_iv_length; + size_t default_iv_length = 0; if (operation->id == 0) { status = PSA_ERROR_BAD_STATE;