mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 08:37:25 +00:00
Fix format issues with check nonce size
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
ebf91638b5
commit
99f548d974
@ -296,7 +296,7 @@ psa_status_t mbedtls_psa_aead_decrypt(
|
||||
goto exit;
|
||||
|
||||
if( mbedtls_aead_check_nonce_length( &operation, nonce_length )
|
||||
!= PSA_SUCCESS)
|
||||
!= PSA_SUCCESS )
|
||||
{
|
||||
status = PSA_ERROR_NOT_SUPPORTED;
|
||||
goto exit;
|
||||
@ -428,7 +428,7 @@ psa_status_t mbedtls_psa_aead_set_nonce(
|
||||
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||
|
||||
if( mbedtls_aead_check_nonce_length( operation, nonce_length )
|
||||
!= PSA_SUCCESS)
|
||||
!= PSA_SUCCESS )
|
||||
{
|
||||
return( PSA_ERROR_INVALID_ARGUMENT );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user