mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03: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:
@ -6673,9 +6673,10 @@ psa_status_t psa_key_derivation_input_key(
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Passing a key object as a SECRET input unlocks the permission
|
/* Passing a key object as a SECRET or PASSWORD input unlocks the
|
||||||
* to output to a key object. */
|
* permission to output to a key object. */
|
||||||
if (step == PSA_KEY_DERIVATION_INPUT_SECRET) {
|
if (step == PSA_KEY_DERIVATION_INPUT_SECRET ||
|
||||||
|
step == PSA_KEY_DERIVATION_INPUT_PASSWORD) {
|
||||||
operation->can_output_key = 1;
|
operation->can_output_key = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user