mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 08:31:08 +00:00
Fix minor issues
Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
parent
a3669ac7e7
commit
252304594b
|
@ -395,7 +395,7 @@ static psa_status_t cipher_update( mbedtls_psa_cipher_operation_t *operation,
|
|||
input_length, output, output_length ) );
|
||||
|
||||
if( *output_length > output_size )
|
||||
return PSA_ERROR_CORRUPTION_DETECTED;
|
||||
return( PSA_ERROR_CORRUPTION_DETECTED );
|
||||
}
|
||||
|
||||
return( status );
|
||||
|
@ -495,8 +495,7 @@ static psa_status_t cipher_encrypt( const psa_key_attributes_t *attributes,
|
|||
if( status != PSA_SUCCESS )
|
||||
goto exit;
|
||||
|
||||
accumulated_length += olength;
|
||||
*output_length = accumulated_length;
|
||||
*output_length = accumulated_length + olength;
|
||||
|
||||
exit:
|
||||
if( status == PSA_SUCCESS )
|
||||
|
@ -545,8 +544,7 @@ static psa_status_t cipher_decrypt( const psa_key_attributes_t *attributes,
|
|||
if( status != PSA_SUCCESS )
|
||||
goto exit;
|
||||
|
||||
accumulated_length += olength;
|
||||
*output_length = accumulated_length;
|
||||
*output_length = accumulated_length + olength;
|
||||
|
||||
exit:
|
||||
if ( status == PSA_SUCCESS )
|
||||
|
|
Loading…
Reference in a new issue