Do export sanity checks in import_export as well

This is not useful to validate the implementation when importing
canonical input, which is the case for most import/export test cases,
but it helps validate the sanity checks themselves.
This commit is contained in:
Gilles Peskine 2018-08-11 01:24:55 +02:00 committed by Jaeden Amero
parent dd2f95b855
commit 8f609239d5

View file

@ -1001,6 +1001,9 @@ void import_export( data_t *data,
goto destroy;
}
if( ! exercise_export_key( slot, usage_arg ) )
goto exit;
if( canonical_input )
{
TEST_ASSERT( exported_length == data->len );