cddlc 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/cddlc.gemspec +1 -1
  3. data/data/rfc9781.cddl +47 -0
  4. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2a8aaeed392227b1d7650ddc62d010a577360f06c3bd07f879dd22d6a2e3ce9
4
- data.tar.gz: e0db7efbdb77e5cc3f770e6a586ce710414e82419127f7b08302248943f1e045
3
+ metadata.gz: 95eae361039777040d1a588dbb9ada107b6e747e4a164381be1fe49368b121e0
4
+ data.tar.gz: 53420da6a203324093d55b2a31e2b36f0ad069403ae163369c81899ff0f4780a
5
5
  SHA512:
6
- metadata.gz: 2b95180d14a2cab74e89e76a753a8519f3aa2b17abc7809ed5b9fd1bbbaf20e2dee87a6635c279b35d89cb754b2e9ac4b9051c4eb15a628ac6accb2ad5f3ccb1
7
- data.tar.gz: 1ad97e5fc8ac2b5242dacedb9a8521b4ea376c79f54669370d7a1d1156d10ce6ca2b3d9ce2075844d5991dee8d1fa36e17fd9d5a175317f14516e92314396e89
6
+ metadata.gz: 79e2cb555fce8db52ad7657914c7bc2535683a7190609df6ddee83340e5aecde3122cb5cf1cea9144eb3c9abca3dbaff2abb0553eb9cc9baa71dae35c4eefbb6
7
+ data.tar.gz: dedba1afd3df98b54d1c0ceeb584798c67ffe8a8fd414dbb1b80c516bee161d33f45711c44bf11075bbf85253d90a428312bf9f39d9a5936e55b6d97c28c1b0c
data/cddlc.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cddlc"
3
- s.version = "0.4.2"
3
+ s.version = "0.4.3"
4
4
  s.summary = "CDDL (Concise Data Definition Language) converters and miscellaneous tools"
5
5
  s.description = %q{cddlc implements converters and miscellaneous tools for CDDL, RFC 8610}
6
6
  s.author = "Carsten Bormann"
data/data/rfc9781.cddl ADDED
@@ -0,0 +1,47 @@
1
+ UCCS-Untagged = Claims-Set
2
+ UCCS-Tagged = #6.601(UCCS-Untagged)
3
+
4
+ Claims-Set = {
5
+ * $$Claims-Set-Claims
6
+ * Claim-Label .feature "extended-claims-label" => any
7
+ }
8
+ Claim-Label = CBOR-ONLY<int> / text
9
+ string-or-uri = text
10
+
11
+ $$Claims-Set-Claims //= ( iss-claim-label => string-or-uri )
12
+ $$Claims-Set-Claims //= ( sub-claim-label => string-or-uri )
13
+ $$Claims-Set-Claims //= ( aud-claim-label => string-or-uri )
14
+ $$Claims-Set-Claims //= ( exp-claim-label => ~time )
15
+ $$Claims-Set-Claims //= ( nbf-claim-label => ~time )
16
+ $$Claims-Set-Claims //= ( iat-claim-label => ~time )
17
+ $$Claims-Set-Claims //= ( cti-claim-label => bytes )
18
+
19
+ iss-claim-label = JC<"iss", 1>
20
+ sub-claim-label = JC<"sub", 2>
21
+ aud-claim-label = JC<"aud", 3>
22
+ exp-claim-label = JC<"exp", 4>
23
+ nbf-claim-label = JC<"nbf", 5>
24
+ iat-claim-label = JC<"iat", 6>
25
+ cti-claim-label = CBOR-ONLY<7> ; jti in JWT: different name and text
26
+
27
+ JSON-ONLY<J> = J .feature "json"
28
+ CBOR-ONLY<C> = C .feature "cbor"
29
+ JC<J,C> = JSON-ONLY<J> / CBOR-ONLY<C>
30
+
31
+ ; [RFC8747]
32
+ $$Claims-Set-Claims //= ( 8: CWT-cnf ) ; cnf
33
+ CWT-cnf = {
34
+ (1: CWT-COSE-Key) //
35
+ (2: CWT-Encrypted_COSE_Key) //
36
+ (3: CWT-kid)
37
+ }
38
+
39
+ CWT-COSE-Key = COSE_Key
40
+ CWT-Encrypted_COSE_Key = COSE_Encrypt / COSE_Encrypt0
41
+ CWT-kid = bytes
42
+
43
+ ;;; Insert the required CDDL from RFC 9052 to complete these
44
+ ;;; definitions. This can be done manually or automated by a
45
+ ;;; tool that implements an import directive such as:
46
+ ;# import rfc9052
47
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cddlc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler
@@ -101,6 +101,7 @@ files:
101
101
  - data/rfc9594-sign_info-parameter.cddl
102
102
  - data/rfc9594-sign_info_entry-with-a-gene.cddl
103
103
  - data/rfc9597.cddl
104
+ - data/rfc9781.cddl
104
105
  - lib/cddlc.rb
105
106
  - lib/parser/cddl-util.rb
106
107
  - lib/parser/cddlgrammar.rb
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
132
  requirements: []
132
- rubygems_version: 3.6.2
133
+ rubygems_version: 3.7.2
133
134
  specification_version: 4
134
135
  summary: CDDL (Concise Data Definition Language) converters and miscellaneous tools
135
136
  test_files: []