mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Update psa_wipe_all_key_slots
This will still wipe the slot regardless of state/readers. Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
@ -143,7 +143,8 @@ void psa_wipe_all_key_slots(void)
|
|||||||
|
|
||||||
for (slot_idx = 0; slot_idx < MBEDTLS_PSA_KEY_SLOT_COUNT; slot_idx++) {
|
for (slot_idx = 0; slot_idx < MBEDTLS_PSA_KEY_SLOT_COUNT; slot_idx++) {
|
||||||
psa_key_slot_t *slot = &global_data.key_slots[slot_idx];
|
psa_key_slot_t *slot = &global_data.key_slots[slot_idx];
|
||||||
slot->lock_count = 1;
|
slot->registered_readers = 1;
|
||||||
|
slot->state = PSA_SLOT_PENDING_DELETION;
|
||||||
(void) psa_wipe_key_slot(slot);
|
(void) psa_wipe_key_slot(slot);
|
||||||
}
|
}
|
||||||
global_data.key_slots_initialized = 0;
|
global_data.key_slots_initialized = 0;
|
||||||
|
Reference in New Issue
Block a user