Platform: Fix certification reference default value
Certification reference is 13 + 5 digit number, where
the EAN13 number and the version number is seperated
by a dash.
Search for "Certificate Number:"
- https://www.psacertified.org/products/musca-b1-tf-m/
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: I717662a8334b3d3798c4052690e126970db6c18e
diff --git a/platform/ext/common/provisioning.c b/platform/ext/common/provisioning.c
index 619cef8..8d2c93a 100644
--- a/platform/ext/common/provisioning.c
+++ b/platform/ext/common/provisioning.c
@@ -86,7 +86,7 @@
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
},
/* certification reference */
- "0604565272829",
+ "0604565272829-10010",
/* verification_service_url */
"www.trustedfirmware.org",
/* attestation_profile_definition */
diff --git a/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json b/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json
index 956d0d6..cb04288 100644
--- a/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json
+++ b/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json
@@ -218,7 +218,7 @@
{
"verification_service_url": "www.trustedfirmware.org",
"attestation_profile_definition": "PSA_IOT_PROFILE_1",
- "hw_version": "060456527282910010",
+ "hw_version": "0604565272829-10010",
"implementation_id": [170, 170, 170, 170, 170, 170, 170, 170, 187, 187, 187, 187, 187, 187, 187, 187,
204, 204, 204, 204, 204, 204, 204, 204, 221, 221, 221, 221, 221, 221, 221, 221]
},
diff --git a/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm_dev_certs.json b/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm_dev_certs.json
index 11ece5b..4be05fc 100755
--- a/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm_dev_certs.json
+++ b/platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm_dev_certs.json
@@ -218,7 +218,7 @@
{
"verification_service_url": "www.trustedfirmware.org",
"attestation_profile_definition": "PSA_IOT_PROFILE_1",
- "hw_version": "060456527282910010",
+ "hw_version": "0604565272829-10010",
"implementation_id": [170, 170, 170, 170, 170, 170, 170, 170, 187, 187, 187, 187, 187, 187, 187, 187,
204, 204, 204, 204, 204, 204, 204, 204, 221, 221, 221, 221, 221, 221, 221, 221]
},
diff --git a/platform/include/tfm_plat_device_id.h b/platform/include/tfm_plat_device_id.h
index 4002082..d2f5a19 100644
--- a/platform/include/tfm_plat_device_id.h
+++ b/platform/include/tfm_plat_device_id.h
@@ -48,10 +48,10 @@
*
* \brief Maximum size of hardware version in bytes
*
- * Recommended to use the European Article Number format: EAN-13
+ * Recommended to use the European Article Number format: EAN-13 + '-' + 5
* https://www.ietf.org/archive/id/draft-tschofenig-rats-psa-token-09.html#name-certification-reference
*/
-#define CERTIFICATION_REF_MAX_SIZE (18u)
+#define CERTIFICATION_REF_MAX_SIZE (19u)
/**
* \brief Get the Implementation ID of the device.