SE keys: make psa_destroy_key remove the key from storage
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 6041732..4fee3cd 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -1050,7 +1050,7 @@
 #endif /* MBEDTLS_PSA_CRYPTO_SE_C */
 
 #if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
-    if( slot->attr.lifetime == PSA_KEY_LIFETIME_PERSISTENT )
+    if( slot->attr.lifetime != PSA_KEY_LIFETIME_VOLATILE )
     {
         storage_status =
             psa_destroy_persistent_key( slot->attr.id );