Attest: Rename claims according to latest spec version

Latest spec:
https://www.ietf.org/archive/id/draft-tschofenig-rats-psa-token-09.html

Rename the following claims and related code (functions and variables, etc):
 - UEID -> Instance ID
 - Origination -> Verification Service Indicator
 - Hardware Version -> Certification Reference
 - Challenge -> Nonce

Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: I4342d18893f81f4cd9163fca5e9ea9a08f1b8b6e
diff --git a/platform/ext/common/provisioning.c b/platform/ext/common/provisioning.c
index 0232e88..11ff800 100644
--- a/platform/ext/common/provisioning.c
+++ b/platform/ext/common/provisioning.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -32,7 +32,7 @@
 
     uint8_t boot_seed[32];
     uint8_t implementation_id[32];
-    uint8_t hw_version[32];
+    uint8_t cert_ref[32];
     uint8_t verification_service_url[32];
     uint8_t profile_definition[32];
 
@@ -85,8 +85,8 @@
         0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC,
         0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
     },
-    /* hw version */
-    "0604565272829100",
+    /* certification reference */
+    "0604565272829",
     /* verification_service_url */
     "www.trustedfirmware.org",
     /* attestation_profile_definition */
@@ -204,9 +204,9 @@
     if (err != TFM_PLAT_ERR_SUCCESS) {
         return err;
     }
-    err = tfm_plat_otp_write(PLAT_OTP_ID_HW_VERSION,
-                             sizeof(psa_rot_prov_data.hw_version),
-                             psa_rot_prov_data.hw_version);
+    err = tfm_plat_otp_write(PLAT_OTP_ID_CERT_REF,
+                             sizeof(psa_rot_prov_data.cert_ref),
+                             psa_rot_prov_data.cert_ref);
     if (err != TFM_PLAT_ERR_SUCCESS) {
         return err;
     }