mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-06 21:54:52 -04:00
Fix secure element key error handling
Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
parent
e44be6a7d3
commit
68a85e24fc
5
ChangeLog.d/fix-secure-element-key-creation.txt
Normal file
5
ChangeLog.d/fix-secure-element-key-creation.txt
Normal file
@ -0,0 +1,5 @@
|
||||
Bugfix
|
||||
* Fix error handling when creating a key in a dynamic secure element
|
||||
(feature enabled by MBEDTLS_PSA_CRYPTO_SE_C). In a low memory condition,
|
||||
the creation could return PSA_SUCCESS but using or destroying the key
|
||||
would not work. Fixes #8537.
|
@ -1710,6 +1710,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user