Attest: Align attestation service to new COSE library

T_COSE library implementation was updated. Update attestation
service and test suite to be aligned with new t_cose library API.

Change-Id: Iccc73f317c6451f692028bc199e04588fb9b9321
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/secure_fw/services/initial_attestation/attest_token.h b/secure_fw/services/initial_attestation/attest_token.h
index 14c080d..dffee0b 100644
--- a/secure_fw/services/initial_attestation/attest_token.h
+++ b/secure_fw/services/initial_attestation/attest_token.h
@@ -2,6 +2,7 @@
  * attest_token.h
  *
  * Copyright (c) 2018-2019, Laurence Lundblade.
+ * Copyright (c) 2020, Arm Limited.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -78,13 +79,15 @@
     ATTEST_TOKEN_ERR_INSUFFICIENT_MEMORY,
     /** Tampering detected in cryptographic function. */
     ATTEST_TOKEN_ERR_TAMPERING_DETECTED,
+    /** Signing key is not found or of wrong type. */
+    ATTEST_TOKEN_ERR_SIGNING_KEY,
     /** Verification key is not found or of wrong type. */
     ATTEST_TOKEN_ERR_VERIFICATION_KEY,
     /** No token was given or validated */
     ATTEST_TOKEN_ERR_NO_VALID_TOKEN,
     /** Data item with label wasn't found. */
     ATTEST_TOKEN_ERR_NOT_FOUND,
-    /** SW Compoments absence not correctly indicated. */
+    /** SW Components absence not correctly indicated. */
     ATTEST_TOKEN_ERR_SW_COMPONENTS_MISSING
 };
 
@@ -122,10 +125,10 @@
  */
 struct attest_token_ctx {
     /* Private data structure */
-    QCBOREncodeContext      cbor_enc_ctx;
-    uint32_t                opt_flags;
-    int32_t                 key_select;
-    struct t_cose_sign1_ctx signer_ctx;
+    QCBOREncodeContext           cbor_enc_ctx;
+    uint32_t                     opt_flags;
+    int32_t                      key_select;
+    struct t_cose_sign1_sign_ctx signer_ctx;
 };