We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f62cee commit 4054a5bCopy full SHA for 4054a5b
library/psa_crypto.c
@@ -1573,7 +1573,11 @@ static psa_status_t psa_validate_key_attributes(
1573
return PSA_ERROR_INVALID_ARGUMENT;
1574
}
1575
} else {
1576
+#ifdef MBEDTLS_PSA_CRYPTO_SE_C
1577
+ if (!psa_is_valid_key_id(psa_get_key_id(attributes), 1)) {
1578
+#else
1579
if (!psa_is_valid_key_id(psa_get_key_id(attributes), 0)) {
1580
+#endif
1581
1582
1583
0 commit comments