mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Fix error handling for secure element keys in psa_start_key_creation
Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
@ -1841,6 +1841,9 @@ static psa_status_t psa_start_key_creation(
|
|||||||
|
|
||||||
status = psa_copy_key_material_into_slot(
|
status = psa_copy_key_material_into_slot(
|
||||||
slot, (uint8_t *) (&slot_number), sizeof(slot_number));
|
slot, (uint8_t *) (&slot_number), sizeof(slot_number));
|
||||||
|
if (status != PSA_SUCCESS) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*p_drv == NULL && method == PSA_KEY_CREATION_REGISTER) {
|
if (*p_drv == NULL && method == PSA_KEY_CREATION_REGISTER) {
|
||||||
|
Reference in New Issue
Block a user