Attest: Add IPC compatibility
1. Add IPC implementation for both secure and non-secure Initial
Attestation APIs.
2. Update Initial Attestation Service manifest to support IPC model.
3. Add thread like behaviour to receive and handle requests according
to IPC model.
Change-Id: Ia27a9e9661ed716bc7eb84d6f077252e0319a586
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Co-authored-by: Moran Peker <moran.peker@arm.com>
diff --git a/test/framework/non_secure_suites.c b/test/framework/non_secure_suites.c
index bc8a731..ba37848 100644
--- a/test/framework/non_secure_suites.c
+++ b/test/framework/non_secure_suites.c
@@ -44,6 +44,12 @@
/* Non-secure Crypto test cases */
{®ister_testsuite_ns_crypto_interface, 0, 0, 0},
+ /* Non-secure initial attestation service test cases */
+ {®ister_testsuite_ns_attestation_interface, 0, 0, 0},
+
+ /* Non-secure QCBOR library test cases */
+ {®ister_testsuite_ns_qcbor, 0, 0, 0},
+
#ifndef TFM_PSA_API
/*
* FixMe: skip below test cases temporary since target service is not
@@ -52,11 +58,6 @@
/* Non-secure Audit Logging test cases */
{®ister_testsuite_ns_audit_interface, 0, 0, 0},
- /* Non-secure initial attestation service test cases */
- {®ister_testsuite_ns_attestation_interface, 0, 0, 0},
-
- /* Non-secure QCBOR library test cases */
- {®ister_testsuite_ns_qcbor, 0, 0, 0},
#endif
#ifdef TFM_PARTITION_TEST_CORE
diff --git a/test/framework/secure_suites.c b/test/framework/secure_suites.c
index 80f7ee8..3c86fa2 100644
--- a/test/framework/secure_suites.c
+++ b/test/framework/secure_suites.c
@@ -38,6 +38,9 @@
/* Crypto test cases */
{®ister_testsuite_s_crypto_interface, 0, 0, 0},
+ /* Secure initial attestation service test cases */
+ {®ister_testsuite_s_attestation_interface, 0, 0, 0},
+
#ifndef TFM_PSA_API
/*
* FixMe: since the following partitions haven't implement the IPC model,
@@ -46,8 +49,6 @@
/* Secure Audit Logging test cases */
{®ister_testsuite_s_audit_interface, 0, 0, 0},
- /* Secure initial attestation service test cases */
- {®ister_testsuite_s_attestation_interface, 0, 0, 0},
#endif
#ifdef TFM_PARTITION_TEST_CORE