diff --git a/draft-ietf-cose-hash-envelope.html b/draft-ietf-cose-hash-envelope.html index 36907e8..6ccddca 100644 --- a/draft-ietf-cose-hash-envelope.html +++ b/draft-ietf-cose-hash-envelope.html @@ -1350,11 +1350,10 @@

2.2. Protected Header

-

Label 16 (typ), label TBD_1 (payload hash alg) and label TBD_2 (content type of the preimage of the payload) MUST be present in the protected header and MUST NOT be present in the unprotected header.

-

Label TBD_3 (payload_location) MAY be added to the protected header and MUST NOT be presented in the unprotected header.

-

Label 3 (content_type) MUST NOT be used as it is easily confused with label TBD_2 payload_preimage_content_type).

-

For example:

-
+

16 (typ), TBD_1 (payload hash alg) and TBD_2 (content type of the preimage of the payload) MUST be present in the protected header and MUST NOT be present in the unprotected header. +TBD_3 (payload_location) MAY be added to the protected header and MUST NOT be presented in the unprotected header.

+

For example:

+
 {
   / alg : ES384 / 1: -35,
@@ -1364,7 +1363,7 @@ 

/ payload_preimage_content_type / TBD_2: application/jwk+json / payload_location / TBD_3 : storage.example/244f...9c19 } -

+
@@ -1375,7 +1374,7 @@

3. Encrypted Hashes

-

The cose headers defined in this document SHOULD NOT be used in unprotected or protected headers associated with COSE_Encrypt.

+

Should we define this?

diff --git a/draft-ietf-cose-hash-envelope.txt b/draft-ietf-cose-hash-envelope.txt index 18959f5..1c6a22d 100644 --- a/draft-ietf-cose-hash-envelope.txt +++ b/draft-ietf-cose-hash-envelope.txt @@ -203,15 +203,11 @@ Table of Contents 2.2. Protected Header - Label 16 (typ), label TBD_1 (payload hash alg) and label TBD_2 - (content type of the preimage of the payload) MUST be present in the - protected header and MUST NOT be present in the unprotected header. - - Label TBD_3 (payload_location) MAY be added to the protected header - and MUST NOT be presented in the unprotected header. - - Label 3 (content_type) MUST NOT be used as it is easily confused with - label TBD_2 payload_preimage_content_type). + 16 (typ), TBD_1 (payload hash alg) and TBD_2 (content type of the + preimage of the payload) MUST be present in the protected header and + MUST NOT be present in the unprotected header. TBD_3 + (payload_location) MAY be added to the protected header and MUST NOT + be presented in the unprotected header. For example: @@ -226,8 +222,7 @@ Table of Contents 3. Encrypted Hashes - The cose headers defined in this document SHOULD NOT be used in - unprotected or protected headers associated with COSE_Encrypt. + Should we define this? 4. Security Considerations