diff --git a/library/psa_crypto.c b/library/psa_crypto.c index a80f13de3..98239c32e 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -2735,7 +2735,7 @@ static psa_status_t psa_hmac_setup_internal( psa_hmac_internal_data *hmac, status = psa_hash_update( &hmac->hash_ctx, ipad, block_size ); cleanup: - mbedtls_platform_zeroize( ipad, key_length ); + mbedtls_platform_zeroize( ipad, sizeof(ipad) ); return( status ); }