Fix format issues with check nonce size

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2021-07-22 18:03:50 +01:00
parent ebf91638b5
commit 99f548d974

View File

@ -296,7 +296,7 @@ psa_status_t mbedtls_psa_aead_decrypt(
goto exit; goto exit;
if( mbedtls_aead_check_nonce_length( &operation, nonce_length ) if( mbedtls_aead_check_nonce_length( &operation, nonce_length )
!= PSA_SUCCESS) != PSA_SUCCESS )
{ {
status = PSA_ERROR_NOT_SUPPORTED; status = PSA_ERROR_NOT_SUPPORTED;
goto exit; goto exit;
@ -428,7 +428,7 @@ psa_status_t mbedtls_psa_aead_set_nonce(
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
if( mbedtls_aead_check_nonce_length( operation, nonce_length ) if( mbedtls_aead_check_nonce_length( operation, nonce_length )
!= PSA_SUCCESS) != PSA_SUCCESS )
{ {
return( PSA_ERROR_INVALID_ARGUMENT ); return( PSA_ERROR_INVALID_ARGUMENT );
} }