Skip to content

Commit 865aeaa

Browse files
authored
Merge pull request #50 from cose-wg/issue-49
Clarify preimage-content-type must be in the protected header
2 parents 02b2679 + c7ff42d commit 865aeaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

draft-ietf-cose-hash-envelope.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ This document specifies the following new header parameters commonly used alongs
9494
Hash_Envelope_Protected_Header = {
9595
? &(alg: 1) => int,
9696
&(payload_hash_alg: 258) => int
97-
&(payload_preimage_content_type: 259) => uint / tstr
97+
? &(payload_preimage_content_type: 259) => uint / tstr
9898
? &(payload_location: 260) => tstr
9999
* int / tstr => any
100100
}
@@ -115,8 +115,8 @@ Hash_Envelope = #6.18(Hash_Envelope_as_COSE_Sign1)
115115

116116
- Label `1` (alg) Cryptographic algorithm to use
117117
- Label `258` (payload hash alg) MUST be present in the protected header and MUST NOT be present in the unprotected header.
118-
- Label `259` (content type of the preimage of the payload) MAY be present in the protected header or unprotected header.
119-
- Label `260` (payload_location) MAY be added to the protected header and MUST NOT be presented in the unprotected header.
118+
- Label `259` (content type of the preimage of the payload) MAY be present in the protected header and MUST NOT be present in the unprotected header.
119+
- Label `260` (payload_location) MAY be present in the protected header and MUST NOT be present in the unprotected header.
120120
- Label `3` (content_type) MUST NOT be present in the protected or unprotected headers.
121121

122122
Label `3` is easily confused with label `259` payload_preimage_content_type.

0 commit comments

Comments
 (0)