1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Consistently abort key derivation operations on input error

This commit is contained in:
Gilles Peskine
2019-09-23 18:17:40 +02:00
parent 224b0d656a
commit 593773d9f2
2 changed files with 4 additions and 1 deletions

View File

@ -5163,7 +5163,10 @@ psa_status_t psa_key_derivation_input_key(
PSA_KEY_USAGE_DERIVE,
operation->alg );
if( status != PSA_SUCCESS )
{
psa_key_derivation_abort( operation );
return( status );
}
return( psa_key_derivation_input_internal( operation,
step, slot->attr.type,
slot->data.raw.data,