We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21728cf commit b4d8848Copy full SHA for b4d8848
library/psa_crypto_slot_management.c
@@ -532,11 +532,7 @@ psa_status_t psa_validate_key_persistence(psa_key_lifetime_t lifetime)
532
} else {
533
/* Persistent keys require storage support */
534
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C) || defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
535
- if (PSA_KEY_LIFETIME_IS_READ_ONLY(lifetime)) {
536
- return PSA_ERROR_INVALID_ARGUMENT;
537
- } else {
538
- return PSA_SUCCESS;
539
- }
+ return PSA_SUCCESS;
540
#else /* MBEDTLS_PSA_CRYPTO_STORAGE_C */
541
return PSA_ERROR_NOT_SUPPORTED;
542
#endif /* !MBEDTLS_PSA_CRYPTO_STORAGE_C */
0 commit comments