From e2c788d4804bf4321a61aefe0133b8d12db79e7e Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 13 May 2021 17:16:01 +0100 Subject: [PATCH] Rename badly named variable Signed-off-by: Paul Elliott --- library/psa_crypto_aead.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/psa_crypto_aead.c b/library/psa_crypto_aead.c index 9a98ba533..9c31e0051 100644 --- a/library/psa_crypto_aead.c +++ b/library/psa_crypto_aead.c @@ -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; }