1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Split assignment and assert check into seperate lines in tests

This commit is contained in:
Paul Bakker
2014-04-17 16:07:20 +02:00
parent dd0aae92e0
commit 94b916c7b5
6 changed files with 33 additions and 16 deletions

View File

@@ -113,7 +113,8 @@ void ecdsa_det_test_vectors( int id, char *d_str, int md_alg,
TEST_ASSERT( mpi_read_string( &r_check, 16, r_str ) == 0 );
TEST_ASSERT( mpi_read_string( &s_check, 16, s_str ) == 0 );
TEST_ASSERT( ( md_info = md_info_from_type( md_alg ) ) != NULL );
md_info = md_info_from_type( md_alg );
TEST_ASSERT( md_info != NULL );
hlen = md_info->size;
md( md_info, (const unsigned char *) msg, strlen( msg ), hash );