mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 12:35:41 +01:00
Note about destroying a key with other open handles
https://github.com/ARMmbed/mbed-crypto/issues/214
This commit is contained in:
parent
caec27821f
commit
9ce31c466d
@ -1052,8 +1052,11 @@ psa_status_t psa_destroy_key( psa_key_handle_t handle )
|
||||
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
|
||||
if( slot->attr.lifetime != PSA_KEY_LIFETIME_VOLATILE )
|
||||
{
|
||||
storage_status =
|
||||
psa_destroy_persistent_key( slot->attr.id );
|
||||
storage_status = psa_destroy_persistent_key( slot->attr.id );
|
||||
/* TODO: other slots may have a copy of the same key. We should
|
||||
* invalidate them.
|
||||
* https://github.com/ARMmbed/mbed-crypto/issues/214
|
||||
*/
|
||||
}
|
||||
#endif /* defined(MBEDTLS_PSA_CRYPTO_STORAGE_C) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user