Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions inc/teep/teep_message_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,14 @@ typedef enum teep_cose_algs {
TEEP_COSE_MAC_HMAC256 = 5, // cose-alg-hmac-256-256
TEEP_COSE_SIGN_ES256 = -7, // cose-alg-es256
TEEP_COSE_SIGN_EDDSA = -8, // cose-alg-eddsa
TEEP_COSE_SIGN_ESP256 = -9, // cose-alg-esp256
TEEP_COSE_SIGN_ED25519 = -19, // cose-alg-ed25519
TEEP_COSE_SIGN_HSS_LMS = -46, // cose-alg-hss-lms

/* key_exchange algorithms */
TEEP_COSE_A128KW = -3, // cose-alg-aeskw-128
TEEP_COSE_ECDHES_HKDF256 = -25, // cose-alg-ecdh-es-hkdf-256
TEEP_COSE_ECDHES_A128KW = -29, // cose-alg-ecdh-es-a128kw

/* encryption algorithms */
TEEP_COSE_ENCRYPT_A128_GCM = 1, // cose-alg-aes-gcm-128
Expand Down
6 changes: 6 additions & 0 deletions src/teep_message_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,12 @@ char *teep_cose_algs_key_to_str(int64_t cose_algs_key)
return "HMAC-256";
case TEEP_COSE_SIGN_ES256:
return "ES256";
case TEEP_COSE_SIGN_ESP256:
return "ESP256";
case TEEP_COSE_SIGN_EDDSA:
return "EdDSA";
case TEEP_COSE_SIGN_ED25519:
return "Ed25519";
case TEEP_COSE_SIGN_HSS_LMS:
return "HSS-LMS";

Expand All @@ -238,6 +242,8 @@ char *teep_cose_algs_key_to_str(int64_t cose_algs_key)
return "A128KW";
case TEEP_COSE_ECDHES_HKDF256:
return "ECDH-ES+HKDF-256";
case TEEP_COSE_ECDHES_A128KW:
return "ECDH-ES+A128KW";

/* encryption algorithms */
case TEEP_COSE_ENCRYPT_A128_GCM:
Expand Down