Rename badly named variable

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2021-05-13 17:16:01 +01:00
parent c10ad21a1b
commit e2c788d480

View file

@ -583,11 +583,11 @@ psa_status_t mbedtls_psa_aead_update( mbedtls_psa_aead_operation_t *operation,
size_t output_size,
size_t *output_length )
{
size_t update_output_size;
size_t update_output_length;
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
update_output_size = input_length;
update_output_length = input_length;
if( PSA_AEAD_UPDATE_OUTPUT_SIZE( operation->key_type, operation->alg,
input_length ) > output_size )
@ -719,7 +719,7 @@ psa_status_t mbedtls_psa_aead_update( mbedtls_psa_aead_operation_t *operation,
if( status == PSA_SUCCESS )
{
*output_length = update_output_size;
*output_length = update_output_length;
operation->body_started = 1;
}