mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-04 06:40:03 +00:00
Replaced legacy TEST_ASSERT( mbedtls_text_hexcmp() ) by ASSERT_COMPARE
Signed-off-by: Cédric Meuter <cedric.meuter@gmail.com>
This commit is contained in:
parent
bc13cd9b1a
commit
6882b46299
@ -40,8 +40,7 @@ void pkcs1_rsaes_oaep_encrypt( int mod, data_t * input_N, data_t * input_E,
|
|||||||
output ) == result );
|
output ) == result );
|
||||||
if( result == 0 )
|
if( result == 0 )
|
||||||
{
|
{
|
||||||
TEST_ASSERT( mbedtls_test_hexcmp( output, result_str->x,
|
ASSERT_COMPARE( output, ctx.len, result_str->x, result_str->len );
|
||||||
ctx.len, result_str->len ) == 0 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
@ -101,9 +100,7 @@ void pkcs1_rsaes_oaep_decrypt( int mod, data_t * input_P, data_t * input_Q,
|
|||||||
sizeof( output ) ) == result );
|
sizeof( output ) ) == result );
|
||||||
if( result == 0 )
|
if( result == 0 )
|
||||||
{
|
{
|
||||||
TEST_ASSERT( mbedtls_test_hexcmp( output, result_str->x,
|
ASSERT_COMPARE( output, output_len, result_str->x, result_str->len );
|
||||||
output_len,
|
|
||||||
result_str->len ) == 0 );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,8 +152,7 @@ void pkcs1_rsassa_pss_sign( int mod, data_t * input_P, data_t * input_Q,
|
|||||||
hash_result, output ) == result );
|
hash_result, output ) == result );
|
||||||
if( result == 0 )
|
if( result == 0 )
|
||||||
{
|
{
|
||||||
TEST_ASSERT( mbedtls_test_hexcmp( output, result_str->x,
|
ASSERT_COMPARE( output, ctx.len, result_str->x, result_str->len );
|
||||||
ctx.len, result_str->len ) == 0 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
info.buf = rnd_buf->x;
|
info.buf = rnd_buf->x;
|
||||||
@ -167,8 +163,7 @@ void pkcs1_rsassa_pss_sign( int mod, data_t * input_P, data_t * input_Q,
|
|||||||
MBEDTLS_RSA_SALT_LEN_ANY, output ) == result );
|
MBEDTLS_RSA_SALT_LEN_ANY, output ) == result );
|
||||||
if( result == 0 )
|
if( result == 0 )
|
||||||
{
|
{
|
||||||
TEST_ASSERT( mbedtls_test_hexcmp( output, result_str->x,
|
ASSERT_COMPARE( output, ctx.len, result_str->x, result_str->len );
|
||||||
ctx.len, result_str->len ) == 0 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
@ -219,8 +214,7 @@ void pkcs1_rsassa_pss_sign_ext( int mod, data_t * input_P, data_t *input_Q,
|
|||||||
0, hash_result, fixed_salt_length, output ) == result );
|
0, hash_result, fixed_salt_length, output ) == result );
|
||||||
if( result == 0 )
|
if( result == 0 )
|
||||||
{
|
{
|
||||||
TEST_ASSERT( mbedtls_test_hexcmp( output, result_str->x,
|
ASSERT_COMPARE( output, ctx.len, result_str->x, result_str->len );
|
||||||
ctx.len, result_str->len ) == 0 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user