Updated to allow psa_key_open to handle vendor defined keys
diff --git a/library/psa_crypto_slot_management.c b/library/psa_crypto_slot_management.c
index b7bff55..7d8f4be 100644
--- a/library/psa_crypto_slot_management.c
+++ b/library/psa_crypto_slot_management.c
@@ -147,6 +147,14 @@
}
else
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
+#if defined (MBEDTLS_PSA_CRYPTO_ACCEL_DRV_C)
+ if (PSA_KEY_LIFETIME_IS_VENDOR_DEFINED(slot->attr.lifetime))
+ {
+ status = psa_import_key_into_slot_vendor( slot, key_data, key_data_length);
+ goto exit;
+ }
+ else
+#endif /* MBEDTLS_PSA_CRYPTO_ACCEL_DRV_C */
{
status = psa_import_key_into_slot( slot, key_data, key_data_length );
}