mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Enable can_output_key with PSA_KEY_DERIVATION_INPUT_PASSWORD
Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com>
This commit is contained in:
parent
24b3895dee
commit
3128c5d9ce
|
|
@ -6673,9 +6673,10 @@ psa_status_t psa_key_derivation_input_key(
|
|||
return status;
|
||||
}
|
||||
|
||||
/* Passing a key object as a SECRET input unlocks the permission
|
||||
* to output to a key object. */
|
||||
if (step == PSA_KEY_DERIVATION_INPUT_SECRET) {
|
||||
/* Passing a key object as a SECRET or PASSWORD input unlocks the
|
||||
* permission to output to a key object. */
|
||||
if (step == PSA_KEY_DERIVATION_INPUT_SECRET ||
|
||||
step == PSA_KEY_DERIVATION_INPUT_PASSWORD) {
|
||||
operation->can_output_key = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue