aboutsummaryrefslogtreecommitdiff
path: root/secure_fw
diff options
context:
space:
mode:
authorDavid Hu <david.hu@arm.com>2020-01-26 15:28:51 +0800
committerDavid Hu <david.hu@arm.com>2020-06-22 02:33:00 +0000
commitb835f4d199c808265895bb39a32e630c05be8db4 (patch)
treebfda92066d792850039536f522d2446ca325bd9c /secure_fw
parent6d2bc65f3fbc215eae6116228902c9c4e65e5a43 (diff)
downloadtrusted-firmware-m-b835f4d199c808265895bb39a32e630c05be8db4.tar.gz
Test: Enable symmetric Initial Attestation decoding
Enable the token decoding process in symmetric key algorithm based Initial Attestation for test. In build type Debug, the symmetric IAK handle is fetched to verify the tag of the generated token, in secure side. Change-Id: I8e3175e5e3586ad80940d5ee9338f9dfc568a1b7 Signed-off-by: David Hu <david.hu@arm.com>
Diffstat (limited to 'secure_fw')
-rw-r--r--secure_fw/partitions/initial_attestation/attest_token.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/secure_fw/partitions/initial_attestation/attest_token.h b/secure_fw/partitions/initial_attestation/attest_token.h
index 4897c9e971..33c935408c 100644
--- a/secure_fw/partitions/initial_attestation/attest_token.h
+++ b/secure_fw/partitions/initial_attestation/attest_token.h
@@ -72,11 +72,12 @@ enum attest_token_err_t {
/** Integer too large, for example an \c int32_t is required, but
value only fits in \c int64_t */
ATTEST_TOKEN_ERR_INTEGER_VALUE,
- /** Something is wrong with the COSE signing structure, missing
+ /** Something is wrong with the COSE message structure, missing
headers or such. */
- ATTEST_TOKEN_ERR_COSE_SIGN1_FORMAT,
- /** COSE signature is invalid, data is corrupted. */
- ATTEST_TOKEN_ERR_COSE_SIGN1_VALIDATION,
+ ATTEST_TOKEN_ERR_COSE_FORMAT,
+ /** COSE signature or authentication tag is invalid, data
+ is corrupted. */
+ ATTEST_TOKEN_ERR_COSE_VALIDATION,
/** The signing algorithm is not supported. */
ATTEST_TOKEN_ERR_UNSUPPORTED_SIG_ALG,
/** Out of memory. */