Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tstr support for pre_image_content_type #28

Merged
merged 9 commits into from
Dec 6, 2024
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 @@ -189,9 +189,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
Loading