diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 79b2618b5..c2b318cca 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3517,7 +3517,7 @@ psa_status_t psa_aead_generate_nonce( psa_aead_operation_t *operation, } required_nonce_size = PSA_AEAD_NONCE_LENGTH( operation->key_type, - operation->alg ); + operation->alg ); if( nonce_size < required_nonce_size ) { status = PSA_ERROR_BUFFER_TOO_SMALL;