From 99f548d974a48fcfe58aaf2666872bee146ffa30 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 22 Jul 2021 18:03:50 +0100 Subject: [PATCH] Fix format issues with check nonce size Signed-off-by: Paul Elliott --- library/psa_crypto_aead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/psa_crypto_aead.c b/library/psa_crypto_aead.c index 9f673596f..5310702c6 100644 --- a/library/psa_crypto_aead.c +++ b/library/psa_crypto_aead.c @@ -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 ); }