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
8 changes: 5 additions & 3 deletions draft-ietf-cose-hash-envelope.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Hash_Envelope_Protected_Header = {
; (content to be hashed) of the payload
; 50 for application/json,
; See https://datatracker.ietf.org/doc/html/rfc7252#section-12.3
&(payload_preimage_content_type: TBD_2) => int
&(payload_preimage_content_type: TBD_2) => int / tstr

; Location the content of the hashed payload is stored
; For example:
Expand Down Expand Up @@ -207,9 +207,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: int / tstr
SteveLasker marked this conversation as resolved.
Show resolved Hide resolved
SteveLasker marked this conversation as resolved.
Show resolved Hide resolved
- Value registry when `int` is used: https://www.iana.org/assignments/core-parameters/core-parameters.xhtml#content-formats
SteveLasker marked this conversation as resolved.
Show resolved Hide resolved
- Description: The content format associated with the bytes that were hashed to produce the payload.
`int` payload_preimage_content_types SHOULD be registered in the content-formats registry.
SteveLasker marked this conversation as resolved.
Show resolved Hide resolved
`str` values MAY be used when registered values may not yet be registered.
SteveLasker marked this conversation as resolved.
Show resolved Hide resolved

### Payload Location

Expand Down