diff --git a/library/psa_crypto.c b/library/psa_crypto.c index adf3b2b7a8..e97cbaf987 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3364,7 +3364,7 @@ psa_status_t psa_aead_generate_nonce( psa_aead_operation_t *operation, size_t *nonce_length ) { psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; - size_t required_nonce_size = nonce_size; + size_t required_nonce_size; *nonce_length = 0;