From d7a11f5b439fcb8e342dc6454d08a98143a6d411 Mon Sep 17 00:00:00 2001 From: Alberto Restifo Date: Thu, 18 Jun 2020 09:29:29 +0200 Subject: [PATCH] Adjust COSE tags terminology to match RFC8152 --- src/cbor/tag.cr | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cbor/tag.cr b/src/cbor/tag.cr index 014200c..f0e8576 100644 --- a/src/cbor/tag.cr +++ b/src/cbor/tag.cr @@ -6,9 +6,9 @@ enum CBOR::Tag : UInt32 Decimal BigFloat - CSOEEnCrypt = 16 - CSOEMac - CSOESign + COSE_Encrypt0 = 16 # COSE Single Recipient Encrypted Data Object + COSE_Mac0 = 17 # COSE Mac w/o Recipients Object + COSE_Sign1 = 18 # COSE Single Signer Data Object ExpectBase64URL = 21 ExpectBase64 @@ -26,5 +26,9 @@ enum CBOR::Tag : UInt32 CBORWebToken = 61 + COSE_Encrypt = 96 # COSE Encrypted Data Object + COSE_Mac = 97 # COSE MACed Data Object + COSE_Sign = 98 # COSE Signed Data Object + SelfDescribeCBOR = 55799 end