~arestifo/crystal-cbor

ref: d7a11f5b439fcb8e342dc6454d08a98143a6d411 crystal-cbor/src/cbor/tag.cr -rw-r--r-- 656 bytes
d7a11f5bAlberto Restifo Adjust COSE tags terminology to match RFC8152 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
enum CBOR::Tag : UInt32
  RFC3339Time
  EpochTime
  PositiveBigNum
  NegativeBigNum
  Decimal
  BigFloat

  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
  ExpectBase16
  CBORDataItem

  URI               = 32
  Base64URL
  Base64
  RegularExpression
  MimeMessage
  UUID
  Language
  Identifier

  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