Attest: Add ARM_CCA attestation token profile
Specification:
https://developer.arm.com/documentation/den0137/latest
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: I5baa8004e72a5c6e8202fbe67c2dc86a7a2a358a
diff --git a/interface/include/tfm_attest_iat_defs.h b/interface/include/tfm_attest_iat_defs.h
index 940de40..e5eebc5 100644
--- a/interface/include/tfm_attest_iat_defs.h
+++ b/interface/include/tfm_attest_iat_defs.h
@@ -49,6 +49,23 @@
#define IAT_SW_COMPONENTS (IAT_ARM_RANGE_BASE + 6)
#define IAT_VERIFICATION_SERVICE (IAT_ARM_RANGE_BASE + 7)
+#elif defined(ATTEST_TOKEN_PROFILE_ARM_CCA)
+
+/* In case of ARM_CCA profile */
+#define IAT_NONCE 10 /* EAT nonce*/
+#define IAT_INSTANCE_ID 256 /* EAT ueid */
+#define IAT_PROFILE_DEFINITION 265 /* EAT eat_profile */
+#define IAT_ARM_RANGE_BASE (2393)
+#define IAT_CLIENT_ID (IAT_ARM_RANGE_BASE + 1)
+#define IAT_SECURITY_LIFECYCLE (IAT_ARM_RANGE_BASE + 2)
+#define IAT_IMPLEMENTATION_ID (IAT_ARM_RANGE_BASE + 3)
+#define IAT_BOOT_SEED (IAT_ARM_RANGE_BASE + 4)
+#define IAT_CERTIFICATION_REFERENCE (IAT_ARM_RANGE_BASE + 5)
+#define IAT_SW_COMPONENTS (IAT_ARM_RANGE_BASE + 6)
+#define IAT_VERIFICATION_SERVICE (IAT_ARM_RANGE_BASE + 7)
+#define IAT_PLATFORM_CONFIG (IAT_ARM_RANGE_BASE + 8)
+#define IAT_PLATFORM_HASH_ALGO_ID (IAT_ARM_RANGE_BASE + 9)
+
#else
#error "Attestation token profile is incorrect"
#endif