mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-06 18:29:56 +00:00
Apply suggestions from code review
Code style changes. Signed-off-by: Steven Cooreman <[email protected]> Co-authored-by: Chris Jones <[email protected]>
This commit is contained in:
co-authored by
Chris Jones
parent
b2f3e6ca35
commit
03f40849c5
+6
-6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user