mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 19:35:39 +01:00
Remove a redundant export step in import_export
exercise_export_key() exports the key and does sanity checks on the result. Here we've already just exported the key, so just run the sanity checks. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
c18e25f6df
commit
ea38a926c1
@ -1607,7 +1607,11 @@ void import_export( data_t *data,
|
|||||||
goto destroy;
|
goto destroy;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ! exercise_export_key( key, usage_arg ) )
|
/* Run sanity checks on the exported key. For non-canonical inputs,
|
||||||
|
* this validates the canonical representations. For canonical inputs,
|
||||||
|
* this doesn't directly validate the implementation, but it still helps
|
||||||
|
* by cross-validating the test data with the sanity check code. */
|
||||||
|
if( ! mbedtls_test_psa_exercise_key( key, usage_arg, 0 ) )
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
if( canonical_input )
|
if( canonical_input )
|
||||||
|
Loading…
Reference in New Issue
Block a user