tests: Reformating due to *hexify functions renaming

Command to find the files in which lines have gone
larger than 79 characters due to the renaming:

grep '.\{80\}' \
`git diff-tree --no-commit-id --name-only -r HEAD` \
| grep hexify

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2020-06-08 17:20:59 +02:00
parent a0c9ff3e52
commit 5b13a86e11
3 changed files with 14 additions and 6 deletions

View File

@ -277,7 +277,8 @@ static int convert_params( size_t cnt , char ** params , int * int_params_store
{
if ( verify_string( &val ) == 0 )
{
*int_params_store = mbedtls_test_unhexify( (unsigned char *) val, val );
*int_params_store = mbedtls_test_unhexify(
(unsigned char *) val, val );
*out++ = val;
*out++ = (char *)(int_params_store++);
}

View File

@ -222,8 +222,10 @@ void mbedtls_ccm_star_encrypt_and_tag( int cipher_id,
msg_len = mbedtls_test_unhexify( msg, msg_hex );
add_len = mbedtls_test_unhexify( add, add_hex );
result_len = mbedtls_test_unhexify( result, result_hex );
source_address_len = mbedtls_test_unhexify( source_address, source_address_hex );
frame_counter_len = mbedtls_test_unhexify( frame_counter, frame_counter_hex );
source_address_len = mbedtls_test_unhexify( source_address,
source_address_hex );
frame_counter_len = mbedtls_test_unhexify( frame_counter,
frame_counter_hex );
if( sec_level % 4 == 0)
tag_len = 0;
@ -290,8 +292,10 @@ void mbedtls_ccm_star_auth_decrypt( int cipher_id,
msg_len = mbedtls_test_unhexify( msg, msg_hex );
add_len = mbedtls_test_unhexify( add, add_hex );
result_len = mbedtls_test_unhexify( result, result_hex );
source_address_len = mbedtls_test_unhexify( source_address, source_address_hex );
frame_counter_len = mbedtls_test_unhexify( frame_counter, frame_counter_hex );
source_address_len = mbedtls_test_unhexify( source_address,
source_address_hex );
frame_counter_len = mbedtls_test_unhexify( frame_counter,
frame_counter_hex );
if( sec_level % 4 == 0)
tag_len = 0;

View File

@ -37,7 +37,10 @@ void test_hkdf( int md_alg, char *hex_ikm_string, char *hex_salt_string,
okm_len);
TEST_ASSERT( ret == 0 );
// Run mbedtls_test_hexify on it so that it looks nicer if the assertion fails
/*
* Run mbedtls_test_hexify on it so that it looks nicer if the assertion
* fails.
*/
mbedtls_test_hexify( okm_hex, okm, okm_len );
TEST_ASSERT( !strcmp( (char *)okm_hex, hex_okm_string ) );
}