mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Check correct output size in LMOTS export test
Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
parent
ed0e4591dc
commit
493724e3c2
@ -162,7 +162,7 @@ void lmots_import_export_test ( data_t * pub_key, int expected_import_rc )
|
||||
exported_pub_key_buf_size,
|
||||
&exported_pub_key_size ), 0 );
|
||||
|
||||
TEST_EQUAL( exported_pub_key_buf_size,
|
||||
TEST_EQUAL( exported_pub_key_size,
|
||||
MBEDTLS_LMOTS_PUBLIC_KEY_LEN(MBEDTLS_LMOTS_SHA256_N32_W8) );
|
||||
ASSERT_COMPARE( pub_key->x, pub_key->len,
|
||||
exported_pub_key, exported_pub_key_size );
|
||||
@ -184,7 +184,7 @@ void lmots_import_export_test ( data_t * pub_key, int expected_import_rc )
|
||||
TEST_EQUAL( mbedtls_lmots_export_public_key( &ctx, exported_pub_key,
|
||||
exported_pub_key_buf_size, NULL ),
|
||||
0 );
|
||||
TEST_EQUAL( exported_pub_key_buf_size,
|
||||
TEST_EQUAL( exported_pub_key_size,
|
||||
MBEDTLS_LMOTS_PUBLIC_KEY_LEN(MBEDTLS_LMOTS_SHA256_N32_W8) );
|
||||
ASSERT_COMPARE( pub_key->x, pub_key->len,
|
||||
exported_pub_key, exported_pub_key_size );
|
||||
|
Loading…
x
Reference in New Issue
Block a user