From 03f40849c5317294f356e463ce795ac478194a67 Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Tue, 19 Jan 2021 13:30:48 +0100 Subject: [PATCH] Apply suggestions from code review Code style changes. Signed-off-by: Steven Cooreman Co-authored-by: Chris Jones <70633990+chris-jones-arm@users.noreply.github.com> --- library/cmac.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/cmac.c b/library/cmac.c index cdb5ed0b1..35cca1672 100644 --- a/library/cmac.c +++ b/library/cmac.c @@ -785,9 +785,9 @@ static int cmac_test_subkeys( int verbose, * the underlying primitive itself is implemented alternatively, * certain features (e.g. AES-192) may be unavailable. This should * not cause the selftest function to fail. */ - if( ( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED - || ret == MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) - && cipher_type == MBEDTLS_CIPHER_AES_192_ECB ) { + if( ( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED || + ret == MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) && + cipher_type == MBEDTLS_CIPHER_AES_192_ECB ) { if( verbose != 0 ) mbedtls_printf( "skipped\n" ); goto next_test; @@ -869,9 +869,9 @@ static int cmac_test_wth_cipher( int verbose, * the underlying primitive itself is implemented alternatively, * certain features (e.g. AES-192) may be unavailable. This should * not cause the selftest function to fail. */ - if( ( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED - || ret == MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) - && cipher_type == MBEDTLS_CIPHER_AES_192_ECB ) { + if( ( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED || + ret == MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) && + cipher_type == MBEDTLS_CIPHER_AES_192_ECB ) { if( verbose != 0 ) mbedtls_printf( "skipped\n" ); continue;