1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Merge pull request #8544 from Ryan-Everett-arm/8537-2.28

Backport 2.28: Fix error handling for secure element keys in `psa_start_key_creation`
This commit is contained in:
Gilles Peskine
2024-05-02 16:06:11 +00:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@ -1831,6 +1831,9 @@ static psa_status_t psa_start_key_creation(
status = psa_copy_key_material_into_slot(
slot, (uint8_t *) (&slot_number), sizeof(slot_number));
if (status != PSA_SUCCESS) {
return status;
}
}
if (*p_drv == NULL && method == PSA_KEY_CREATION_REGISTER) {