commit | 593773d9f23f2a494c462f6e02d9fba47b1afd88 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Mon Sep 23 18:17:40 2019 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Tue Sep 24 18:39:03 2019 +0200 |
tree | 9d9f45ea99ea3674c27bb69ad114a90e75c97ee5 | |
parent | 224b0d656a9d64ccf3d131bc41bd9f4052b8923f [diff] |
Consistently abort key derivation operations on input error
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 1494593..07c6261 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -5163,7 +5163,10 @@ 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,