Skip to content

Commit

Permalink
Merge pull request #28 from cose-wg/steve/ctyp-str
Browse files Browse the repository at this point in the history
add tstr support for pre_image_content_type
  • Loading branch information
SteveLasker authored Dec 6, 2024
2 parents adf6380 + b16c685 commit 65087df
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions draft-ietf-cose-hash-envelope.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ TBD_3:
~~~ cddl
Hash_Envelope_Protected_Header = {
? &(alg: 1) => int,
? &(typ: 16) => int / tstr
? &(typ: 16) => uint / tstr
&(payload_hash_alg: TBD_1) => int
&(payload_preimage_content_type: TBD_2) => int / tstr
&(payload_preimage_content_type: TBD_2) => uint / tstr
? &(payload_location: TBD_3) => tstr
* int / tstr => any
}
Expand Down Expand Up @@ -187,9 +187,11 @@ IANA is requested to add the following entries to the [COSE Header Algorithm Par

- Name: payload_preimage_content_type
- Label: TBD_2
- Value type: int
- Value registry: https://www.iana.org/assignments/core-parameters/core-parameters.xhtml#content-formats
- Value type: uint / tstr
- Value registry when `uint` is used: https://www.iana.org/assignments/core-parameters/core-parameters.xhtml#content-formats
- Description: The content format associated with the bytes that were hashed to produce the payload.
`uint` payload_preimage_content_types SHOULD be registered in the content-formats registry.
`tstr` values MAY be used when registered values may not yet be registered.

### Payload Location

Expand Down

0 comments on commit 65087df

Please sign in to comment.