mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 01:45:48 +01:00
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:
parent
72d628f7f5
commit
ff31eab938
@ -277,7 +277,8 @@ static int convert_params( size_t cnt , char ** params , int * int_params_store
|
|||||||
{
|
{
|
||||||
if ( verify_string( &val ) == 0 )
|
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++ = val;
|
||||||
*out++ = (char *)(int_params_store++);
|
*out++ = (char *)(int_params_store++);
|
||||||
}
|
}
|
||||||
|
@ -222,8 +222,10 @@ void mbedtls_ccm_star_encrypt_and_tag( int cipher_id,
|
|||||||
msg_len = mbedtls_test_unhexify( msg, msg_hex );
|
msg_len = mbedtls_test_unhexify( msg, msg_hex );
|
||||||
add_len = mbedtls_test_unhexify( add, add_hex );
|
add_len = mbedtls_test_unhexify( add, add_hex );
|
||||||
result_len = mbedtls_test_unhexify( result, result_hex );
|
result_len = mbedtls_test_unhexify( result, result_hex );
|
||||||
source_address_len = mbedtls_test_unhexify( source_address, source_address_hex );
|
source_address_len = mbedtls_test_unhexify( source_address,
|
||||||
frame_counter_len = mbedtls_test_unhexify( frame_counter, frame_counter_hex );
|
source_address_hex );
|
||||||
|
frame_counter_len = mbedtls_test_unhexify( frame_counter,
|
||||||
|
frame_counter_hex );
|
||||||
|
|
||||||
if( sec_level % 4 == 0)
|
if( sec_level % 4 == 0)
|
||||||
tag_len = 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 );
|
msg_len = mbedtls_test_unhexify( msg, msg_hex );
|
||||||
add_len = mbedtls_test_unhexify( add, add_hex );
|
add_len = mbedtls_test_unhexify( add, add_hex );
|
||||||
result_len = mbedtls_test_unhexify( result, result_hex );
|
result_len = mbedtls_test_unhexify( result, result_hex );
|
||||||
source_address_len = mbedtls_test_unhexify( source_address, source_address_hex );
|
source_address_len = mbedtls_test_unhexify( source_address,
|
||||||
frame_counter_len = mbedtls_test_unhexify( frame_counter, frame_counter_hex );
|
source_address_hex );
|
||||||
|
frame_counter_len = mbedtls_test_unhexify( frame_counter,
|
||||||
|
frame_counter_hex );
|
||||||
|
|
||||||
if( sec_level % 4 == 0)
|
if( sec_level % 4 == 0)
|
||||||
tag_len = 0;
|
tag_len = 0;
|
||||||
|
@ -37,7 +37,10 @@ void test_hkdf( int md_alg, char *hex_ikm_string, char *hex_salt_string,
|
|||||||
okm_len);
|
okm_len);
|
||||||
TEST_ASSERT( ret == 0 );
|
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 );
|
mbedtls_test_hexify( okm_hex, okm, okm_len );
|
||||||
TEST_ASSERT( !strcmp( (char *)okm_hex, hex_okm_string ) );
|
TEST_ASSERT( !strcmp( (char *)okm_hex, hex_okm_string ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user