Add output check to export too-big buffer tests
Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
parent
1d88ea870f
commit
33f7d66304
2 changed files with 4 additions and 0 deletions
|
@ -184,6 +184,8 @@ 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 );
|
||||
ASSERT_COMPARE( pub_key->x, pub_key->len,
|
||||
exported_pub_key, exported_pub_key_size );
|
||||
mbedtls_free(exported_pub_key);
|
||||
exported_pub_key = NULL;
|
||||
}
|
||||
|
|
|
@ -186,6 +186,8 @@ void lms_import_export_test ( data_t * pub_key, int expected_import_rc )
|
|||
TEST_EQUAL( mbedtls_lms_export_public_key( &ctx, exported_pub_key,
|
||||
exported_pub_key_buf_size, NULL ),
|
||||
0 );
|
||||
ASSERT_COMPARE( pub_key->x, pub_key->len,
|
||||
exported_pub_key, exported_pub_key_size );
|
||||
mbedtls_free(exported_pub_key);
|
||||
exported_pub_key = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue