Skip to content

Commit 0912a0c

Browse files
authored
Merge pull request #52 from cose-wg/some-CDDL-polish
Reordering of CDDL Rules and Fixing type-choice in Labels
2 parents 3fb0549 + 6c3d4d5 commit 0912a0c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

draft-ietf-cose-hash-envelope.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,26 +89,26 @@ This document specifies the following new header parameters commonly used alongs
8989
# Hash Envelope CDDL
9090

9191
~~~ cddl
92+
Hash_Envelope = #6.18(Hash_Envelope_as_COSE_Sign1)
93+
94+
Hash_Envelope_as_COSE_Sign1 = [
95+
protected: bstr .cbor Hash_Envelope_Protected_Header,
96+
unprotected: Hash_Envelope_Unprotected_Header,
97+
payload: bstr / nil,
98+
signature: bstr
99+
]
100+
92101
Hash_Envelope_Protected_Header = {
93102
? &(alg: 1) => int,
94103
&(payload_hash_alg: 258) => int
95104
? &(payload_preimage_content_type: 259) => uint / tstr
96105
? &(payload_location: 260) => tstr
97-
* int / tstr => any
106+
* (int / tstr) => any
98107
}
99108

100109
Hash_Envelope_Unprotected_Header = {
101-
* int / tstr => any
110+
* (int / tstr) => any
102111
}
103-
104-
Hash_Envelope_as_COSE_Sign1 = [
105-
protected : bstr .cbor Hash_Envelope_Protected_Header,
106-
unprotected : Hash_Envelope_Unprotected_Header,
107-
payload: bstr / nil,
108-
signature : bstr
109-
]
110-
111-
Hash_Envelope = #6.18(Hash_Envelope_as_COSE_Sign1)
112112
~~~
113113

114114
- Label `1` (alg) Cryptographic algorithm to use

0 commit comments

Comments
 (0)