Adjust COSE tags terminology to match RFC8152

dev
Alberto Restifo 2020-06-18 09:29:29 +02:00
parent 529ec14773
commit d7a11f5b43
1 changed files with 7 additions and 3 deletions

View File

@ -6,9 +6,9 @@ enum CBOR::Tag : UInt32
Decimal Decimal
BigFloat BigFloat
CSOEEnCrypt = 16 COSE_Encrypt0 = 16 # COSE Single Recipient Encrypted Data Object
CSOEMac COSE_Mac0 = 17 # COSE Mac w/o Recipients Object
CSOESign COSE_Sign1 = 18 # COSE Single Signer Data Object
ExpectBase64URL = 21 ExpectBase64URL = 21
ExpectBase64 ExpectBase64
@ -26,5 +26,9 @@ enum CBOR::Tag : UInt32
CBORWebToken = 61 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 SelfDescribeCBOR = 55799
end end