~arestifo/crystal-cbor

d7a11f5b439fcb8e342dc6454d08a98143a6d411 — Alberto Restifo 2 years ago 529ec14
Adjust COSE tags terminology to match RFC8152
1 files changed, 7 insertions(+), 3 deletions(-)

M src/cbor/tag.cr
M src/cbor/tag.cr => src/cbor/tag.cr +7 -3
@@ 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