aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Hu <david.hu@arm.com>2021-07-24 21:14:30 +0800
committerDavid Hu <david.hu@arm.com>2021-08-13 22:32:56 +0800
commit42e77b561fcfe19819ff1e63cb7c0b672ee8ba41 (patch)
tree1c66eaa083056fbcf33e6fefeed23741b9273b83 /lib
parenta17591ac901c5af2bdc18bb7043a96e4119bc1c4 (diff)
downloadtrusted-firmware-m-42e77b561fcfe19819ff1e63cb7c0b672ee8ba41.tar.gz
Crypto: Remove TF-M Crypto service key handle array
TF-M Crypto service allocates a key handle array to map keys and owners. However, this array is redundant since TF-M Crypto eventually relies on Mbed TLS key handle management. Remove TF-M Crypto service key handle array to simplify TF-M Crypto key handling routine and optimize memory footprint. Remove CRYPTO_KEY_ID_ENCODES_OWNER. Enforce MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER to be enabled. Update the test commit ID accordingly. Change-Id: Ic1ecff587ec33a95fbeabcd8dd9fd6430455117b Signed-off-by: David Hu <david.hu@arm.com> Co-authored-by: Summer Qin <summer.qin@arm.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h b/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h
index 68432b73d4..eecf026f6c 100644
--- a/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h
+++ b/lib/ext/mbedcrypto/mbedcrypto_config/tfm_mbedcrypto_config_profile_small.h
@@ -846,7 +846,7 @@
* Note that this option is meant for internal use only and may be removed
* without notice.
*/
-//#define MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
+#define MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
/**
* \def MBEDTLS_MEMORY_DEBUG