Closed as not planned
Description
Description
Consider psa_destroy_key
on a key which is located in a secure element. The normal process is:
- Create a transaction file.
- Call the driver to destroy the key in the secure element.
- Destroy the key metadata in internal storage.
- Remove the transaction file.
If an error occurs, we normally do as much as we can anyway. But if creating the transaction file fails, we do nothing. This is undesirable because psa_destroy_key
should make the best effort to destroy all key material.
In particular, it's currently impossible to destroy a key if the storage is full, because creating the transaction file fails.
Issue request type
[ ] Question
[x] Enhancement
[ ] Bug