Added argument to determine when to store key to memory
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index c812ff4..850a6dc 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -1929,7 +1929,7 @@
#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, data, data_length);
+ status = psa_import_key_into_slot_vendor( slot, data, data_length, true);
goto exit;
}
else
diff --git a/library/psa_crypto_slot_management.c b/library/psa_crypto_slot_management.c
index 7d8f4be..08ba9ea 100644
--- a/library/psa_crypto_slot_management.c
+++ b/library/psa_crypto_slot_management.c
@@ -150,7 +150,7 @@
#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);
+ status = psa_import_key_into_slot_vendor( slot, key_data, key_data_length, false);
goto exit;
}
else