diff options
author | Tamas Ban <tamas.ban@arm.com> | 2020-01-15 11:25:24 +0000 |
---|---|---|
committer | Tamas Ban <tamas.ban@arm.com> | 2020-01-23 13:33:03 +0000 |
commit | e66b2316c9ae4eeed24943f4c050acb5d0a95a7f (patch) | |
tree | 310686ccd0d3c59908b24fcd3dd0fc1803ba47da /platform/include/tfm_plat_crypto_keys.h | |
parent | c163053e6ad06fa296eed376b8ba8f7cee506560 (diff) | |
download | trusted-firmware-m-e66b2316c9ae4eeed24943f4c050acb5d0a95a7f.tar.gz |
Attest: Add attest key id to the COSE header
Key id is part of the unprotected COSE header and
it is an optional field. Make key id inclusion optional
with a compile time define.
Change-Id: I5458c1f74c36015d433b5922e2a5038fb0ea31b7
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Diffstat (limited to 'platform/include/tfm_plat_crypto_keys.h')
-rw-r--r-- | platform/include/tfm_plat_crypto_keys.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/platform/include/tfm_plat_crypto_keys.h b/platform/include/tfm_plat_crypto_keys.h index 82202f0ca2..7ee9570fc9 100644 --- a/platform/include/tfm_plat_crypto_keys.h +++ b/platform/include/tfm_plat_crypto_keys.h @@ -22,20 +22,6 @@ extern "C" { #endif /** - * Elliptic curve key type identifiers according to RFC8152 (COSE encoding) - * https://www.iana.org/assignments/cose/cose.xhtml#elliptic-curves - */ -enum cose_ecc_curve_t { - P_256 = 1, /* NIST P-256 also known as secp256r1 */ - P_384 = 2, /* NIST P-384 also known as secp384r1 */ - P_521 = 3, /* NIST P-521 also known as secp521r1 */ - X25519 = 4, /* X25519 for use with ECDH only */ - X448 = 5, /* X448 for use with ECDH only */ - ED25519 = 6, /* Ed25519 for use with EdDSA only */ - ED448 = 7, /* Ed448 for use with EdDSA only */ -}; - -/** * Structure definition to carry pointer and size information about an Elliptic * curve key which is stored in a buffer(key_buf) in raw format (without * encoding): |