aboutsummaryrefslogtreecommitdiff
path: root/platform/ext
diff options
context:
space:
mode:
authorSummer Qin <summer.qin@arm.com>2021-07-02 17:53:21 +0800
committerKen Liu <ken.liu@arm.com>2021-07-21 09:21:44 +0200
commited503e125fd3f6fcb7b7d2f820b7b6b064f61ebe (patch)
tree582ab41b96b2ae4c99bced91887118eef3904e9d /platform/ext
parentaaf994d929fe368f93fc128545a1af0431614757 (diff)
downloadtrusted-firmware-m-ed503e125fd3f6fcb7b7d2f820b7b6b064f61ebe.tar.gz
Crypto: Align PSA Crypto API to 1.0 version
Some functions and macros are deprecated in PSA Crypto spec 1.0. Align them with the spec definition. Change-Id: Icc2a8c6fe245873ea76b3e0a1bdf32a87fd016ad Signed-off-by: Summer Qin <summer.qin@arm.com>
Diffstat (limited to 'platform/ext')
-rw-r--r--platform/ext/common/template/tfm_initial_attest_pub_key.c2
-rw-r--r--platform/ext/common/template/tfm_initial_attestation_key_material.c2
-rw-r--r--platform/ext/target/nxp/common/plat_attestation_key.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/platform/ext/common/template/tfm_initial_attest_pub_key.c b/platform/ext/common/template/tfm_initial_attest_pub_key.c
index 6a664aeddf..05cc4c426e 100644
--- a/platform/ext/common/template/tfm_initial_attest_pub_key.c
+++ b/platform/ext/common/template/tfm_initial_attest_pub_key.c
@@ -21,7 +21,7 @@
*/
/* Type of the EC curve which the key belongs to, in PSA curve ID form */
-const psa_ecc_family_t initial_attest_curve_type = PSA_ECC_CURVE_SECP256R1;
+const psa_ecc_family_t initial_attest_curve_type = PSA_ECC_FAMILY_SECP_R1;
/*
* Initial attestation public key in raw format, without any encoding.
diff --git a/platform/ext/common/template/tfm_initial_attestation_key_material.c b/platform/ext/common/template/tfm_initial_attestation_key_material.c
index b171e5a865..436ec25755 100644
--- a/platform/ext/common/template/tfm_initial_attestation_key_material.c
+++ b/platform/ext/common/template/tfm_initial_attestation_key_material.c
@@ -60,7 +60,7 @@ const char *initial_attestation_kid = "kid@trustedfirmware.example";
/* Type of the EC curve which the key belongs to, in PSA curve ID form */
TFM_LINK_SET_RO_IN_PARTITION_SECTION("TFM_SP_INITIAL_ATTESTATION", "PSA-ROT")
-const psa_ecc_family_t initial_attestation_curve_type = PSA_ECC_CURVE_SECP256R1;
+const psa_ecc_family_t initial_attestation_curve_type = PSA_ECC_FAMILY_SECP_R1;
/* Initial attestation private key in raw format, without any encoding.
* It belongs to the ECDSA P-256 curve.
diff --git a/platform/ext/target/nxp/common/plat_attestation_key.c b/platform/ext/target/nxp/common/plat_attestation_key.c
index 643cb2e04e..976e5cdffa 100644
--- a/platform/ext/target/nxp/common/plat_attestation_key.c
+++ b/platform/ext/target/nxp/common/plat_attestation_key.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2020 Arm Limited. All rights reserved.
+ * Copyright (c) 2017-2021 Arm Limited. All rights reserved.
* Copyright 2020 NXP. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -54,7 +54,7 @@ const uint8_t initial_attestation_private_key[] =
/* Type of the EC curve which the key belongs to, in PSA curve ID form */
#ifndef TFM_ATTESTATION_KEY_TYPE
-#define TFM_ATTESTATION_KEY_TYPE PSA_ECC_CURVE_SECP256R1
+#define TFM_ATTESTATION_KEY_TYPE PSA_ECC_FAMILY_SECP_R1
#endif
/**