feat(rmm-eac4): modify RSI_ATTESTATION_TOKEN commands

Modifies RSI_ATTESTATION_TOKEN_INIT and
RSI_ATTESTATION_TOKEN_CONTINUE commands as per
RMM Specification 1.0-eac4.
Number of 4K pages allocated for attestation
buffer is defined by RMM_ATTEST_BUFFER_PAGES
in CommonConfigs.cmake and set to 1 by default.

Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: Icda7f26e291a19b143ae14a291c03cc7bda0e076
diff --git a/lib/attestation/include/attestation_token.h b/lib/attestation/include/attestation_token.h
index 807d0b5..6093e4f 100644
--- a/lib/attestation/include/attestation_token.h
+++ b/lib/attestation/include/attestation_token.h
@@ -44,7 +44,7 @@
 enum attest_token_gen_state_t {
 	ATTEST_SIGN_NOT_STARTED,
 	ATTEST_SIGN_IN_PROGRESS,
-	ATTEST_SIGN_TOKEN_WRITE_IN_PROGRESS,
+	ATTEST_SIGN_TOKEN_WRITE_IN_PROGRESS
 };
 
 /*
@@ -84,8 +84,13 @@
 	 */
 	enum attest_token_gen_state_t state;
 	struct attest_token_encode_ctx ctx;
-	/* Data saved in the first iteration */
-	unsigned long token_ipa;
+
+	/* Number of CCA token bytes left to copy to the Realm */
+	size_t cca_token_len;
+
+	/* Number of CCA token bytes copied to the Realm */
+	size_t copied_len;
+
 	unsigned char challenge[ATTEST_CHALLENGE_SIZE];
 };