Check correct output size in LMOTS export test
@@ -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 );
