mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 04:15:43 +01:00
Fix exit and formatting in CMAC test suite
Minor fixes following review.
This commit is contained in:
parent
03faeac7ec
commit
8739aa9403
@ -188,6 +188,7 @@ void mbedtls_cmac_multiple_blocks( int cipher_type,
|
||||
|
||||
TEST_ASSERT( memcmp( output, expected_result, block_size ) == 0 );
|
||||
|
||||
exit:
|
||||
mbedtls_cipher_free( &ctx );
|
||||
}
|
||||
/* END_CASE */
|
||||
@ -255,7 +256,7 @@ void mbedtls_cmac_multiple_operations_same_key( int cipher_type,
|
||||
|
||||
/* Multiple partial and complete blocks. A negative length means skip the
|
||||
* update operation */
|
||||
if( block_a1_len >= 0)
|
||||
if( block_a1_len >= 0 )
|
||||
TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
|
||||
(unsigned char*)block_a1,
|
||||
block_a1_len ) == 0);
|
||||
@ -299,7 +300,7 @@ void mbedtls_cmac_multiple_operations_same_key( int cipher_type,
|
||||
|
||||
TEST_ASSERT( memcmp( output, expected_result_b, block_size ) == 0 );
|
||||
|
||||
|
||||
exit:
|
||||
mbedtls_cipher_free( &ctx );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
Loading…
Reference in New Issue
Block a user