| Internet-Draft | COSE Deterministic Encodings | November 2026 |
| Mih & Sokolov | Expires 27 May 2027 | [Page] |
A COSE Hash Envelope signs the digest of a preimage, not the preimage itself. A verifier that holds the content as a decoded value, such as a CBOR data item, rather than the bytes that were hashed has to encode the value again, and nothing in the Hash Envelope says how the producer encoded it. CBOR permits more than one encoding of the same data item, so a digest mismatch cannot tell a modified value from a value encoded another way. This document defines a COSE Hash Envelope protected-header parameter in which the producer states the deterministic encoding it applied. It defines one value, the integer 1, for the Core Deterministic Encoding Requirements of RFC 8949, and no encoding of its own; an application profile can identify another encoding by a URL. A verifier ignores a value that does not identify an encoding it implements.¶
Individual submission, intended for the COSE Working Group (cose@ietf.org).¶
Source for this document, with a reference emitter and verifier and test vectors, is at https://github.com/action-state-group/cose-deterministic-encodings.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 27 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
A COSE Hash Envelope [RFC9995] signs the digest of a preimage. A verifier checks the content binding by hashing the preimage and comparing the result with the payload ([RFC9995] Section 5.3). Often, though, a verifier does not hold the preimage: it holds the content as a decoded value, such as a CBOR data item that arrived inside a larger message or was kept as a database record. To check that value, the verifier has to encode it again and hash the result.¶
Re-encoding reproduces the preimage only if the verifier applies the
encoding the producer applied, and nothing in the Hash Envelope says what
that was. CBOR permits more than one encoding of the same data item
([RFC8949] Section 4.2), and a producer need not apply a deterministic
one: {"x": 1.5} is a1 61 78 f9 3e 00 under the Core Deterministic
Encoding Requirements ([RFC8949] Section 4.2.1) and
a1 61 78 fb 3f f8 00 00 00 00 00 00 when every floating-point value is
written as binary64, and both are valid CBOR. A verifier that re-encodes
the value deterministically and computes a different digest cannot tell
which happened: the value was modified, or the producer encoded it
another way. Nor can it tell beforehand whether re-encoding can succeed,
or whether it has to obtain the bytes that were hashed.¶
The gap is not a missing deterministic encoding: [RFC8949] Section 4.2.1 defines one, and this document defines none. The gap is that the Hash Envelope identifies the hash algorithm (258) and the content type (259) of the preimage, but not whether the producer applied a deterministic encoding to create it. This document fills that gap with one protected-header parameter, in which the producer states the encoding it applied, as it states the hash algorithm in payload-hash-alg (258). For CBOR content the statement is the integer 1: the preimage is the Core Deterministic Encoding of the value, and a verifier that re-encodes the value that way reproduces it unless the value changed. When the parameter is absent, nothing changes: the verifier needs the preimage, as [RFC9995] Section 5.3 describes.¶
Which deterministic encoding was applied matters as well. A deterministic encoding process selects one encoding for each data item, and three such processes are in common use for CBOR. The Core Deterministic Encoding Requirements of [RFC8949] Section 4.2.1 require the preferred serialization of its Section 4.1. Its Section 4.2.3 orders map keys length-first instead, for protocols that need compatibility with an earlier definition of canonical CBOR; this process is used mostly in FIDO [CTAP2], and the Python library cbor2 implements only this one. CBOR/c-42 [I-D.caballero-cbor-cborc42], part of the DAG-CBOR profile [DAG-CBOR] that the IPFS and IPLD ecosystem uses, chooses its own serialization for some data items instead of the preferred serialization of [RFC8949]. Each process yields one encoding per data item, but the three need not yield the same one, so a verifier that re-encodes a value has to know which process the producer applied.¶
[RFC8949] offers the second only for compatibility with that earlier definition, and the third departs from its preferred serialization. This document therefore steers protocols that need a deterministic encoding to the first, unless a legacy deployment favors another: the integer 1 identifies the first (Section 3.1). A text-string value, a URL, is the extension point by which an application profile can identify another encoding (Section 3), so that the parameter need not be redefined to serve it.¶
The COSE Hash Envelope [RFC9995] signs the digest of a preimage and identifies the hash algorithm (258), the content type of the preimage (259), and optionally where the preimage can be retrieved (260). A verifier that holds the preimage can check that the digest of it, produced with the hash algorithm identified by payload-hash-alg (258), matches the payload, as [RFC9995] Section 5.3 describes. That check needs no information from this document, and retaining the preimage is the simplest way to make it possible.¶
The Hash Envelope carries the digest, not the preimage, and payload-location (260) is optional. The content therefore reaches a verifier, if at all, from outside the Hash Envelope, in whatever form its application provides, which can be a structured value rather than the bytes that were hashed. The content can arrive as a data item inside a larger CBOR message, and unless the message wraps that item in a byte string, most CBOR decoders cannot return its encoded bytes ([I-D.ietf-cbor-serialization] Appendices H.1 and J.1). A system can also store the content in another representation -- for example, a software inventory that keeps Concise Software Identification (CoSWID) tags [RFC9393] as records in a database -- rather than keep a second copy of each item as the bytes that were hashed, provided that representation preserves each data item exactly (Section 6). To check such content against its Hash Envelope, the verifier has to encode the value again, the case in which [I-D.ietf-cbor-serialization] Section 5.3.1 says deterministic encoding becomes necessary and notes that designs of this kind are often chosen to reduce data size, preserve privacy, or meet other design constraints. COSE meets the same need for its own Sig_structure, which the signer and the verifier each construct rather than transmit, by fixing how that structure is encoded ([RFC9052] Sections 4.4 and 9). For a Hash Envelope preimage, whose content type the application chooses, COSE fixes no encoding.¶
As Section 1.1 describes, re-encoding reproduces the preimage only if the verifier applies the encoding the producer applied. The preimage-content-type (259) names the type of the content, such as application/swid+cbor, not the encoding applied to it. A verifier that assumes an encoding the producer did not state cannot tell a modified value from one encoded another way. The parameter lets the verifier tell the two apart: when the producer states the encoding, a mismatch means the value the verifier holds is not the value the producer encoded. When it does not, nothing changes: the verifier checks the content binding as [RFC9995] Section 5.3 describes (Section 4.3).¶
This document defines one protected-header parameter,
deterministic-encodings, which identifies that encoding. The integer 1,
the one value this document defines, identifies the Core Deterministic
Encoding Requirements of [RFC8949] Section 4.2.1 (Section 3.1); an
application profile can identify another encoding by a URL
(Section 3). This
document defines no encoding of its own. As with the hash algorithm in
payload-hash-alg (258), the producer states its choice and the verifier
follows it. Naming a canonicalization or a profile by a URI has precedent:
XML Signature names the canonicalization algorithm applied to the signed
content by a URI ([RFC3275] Section 6.1), and the eat_profile claim names
a profile, including the encoding choices it fixes, by a URI or an OID
([RFC9711] Sections 4.3.2 and 6.4). The parameter uses the extension point the Hash
Envelope protected header already provides (Section 4 of [RFC9995]:
* (int / tstr) => any). The encoding is not carried as a media-type
parameter of preimage-content-type (259). The application/cbor media type defines no
parameters ([RFC8949] Section 9.3), so such a parameter would have to be
registered for every media type the encoding applies to, and a CoAP
Content-Format number carries only the parameters fixed in its registry
entry ([RFC7252] Section 12.3), so each pairing of media type and encoding
would also need its own number. A profile that has its own media type, such
as application/vnd.ipld.dag-cbor [DAG-CBOR], is already identified by 259;
content labelled application/cbor, or with an application's own type such as
application/swid+cbor, is not.¶
The scope of this document is structured values, such as CBOR data items, and the deterministic encodings that serialize them. Media encodings, such as those of images, and builds of software from source code are out of scope; such content is checked from its bytes, as [RFC9995] Section 5.3 describes.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
"COSE", "COSE_Sign1", and "protected header" are defined in [RFC9052]; "CDDL" in [RFC8610]; "Hash Envelope" and "preimage" in [RFC9995]. As in [RFC9995], the payload of a Hash Envelope is a digest, and the preimage consists of the bytes that were hashed to produce it. The Hash Envelope labels this document builds on are 258 (payload-hash-alg), 259 (preimage-content-type), and 260 (payload-location).¶
This document also uses the following terms:¶
A value with internal structure, such as a CBOR data item, that a deterministic encoding serializes to create a preimage.¶
A specification of an application or protocol that uses deterministic-encodings and states which encodings its producers apply and its verifiers implement: the one this document identifies by the integer 1, or others, each named by a URL.¶
The correspondence between content a verifier holds -- a preimage, or a structured value -- and the payload of a Hash Envelope. A verifier checks it as [RFC9995] Section 5.3 describes. The check succeeds when the digest of the preimage, held or re-created from a structured value, produced with the hash algorithm identified by payload-hash-alg (258), matches the payload, and the verifier found no inconsistency in the protected header (Section 4.2); otherwise it fails. This document adds no other outcome.¶
deterministic-encodings. The deterministic encoding with which a structured value was serialized to create the bytes that were hashed (preimage) to produce the payload, given as the integer 1 or as a URL.¶
It extends [RFC9995] by adding one optional member to the Hash_Envelope_Protected_Header CDDL of [RFC9995] Section 4, alongside the members for labels 258-260. The extended rule restates the [RFC9995] rule with that member added:¶
Hash_Envelope_Protected_Header_With_Encoding = {
? &(alg: 1) => int,
&(payload_hash_alg: 258) => int,
? &(payload_preimage_content_type: 259) => uint / tstr,
? &(payload_location: 260) => tstr,
? &(deterministic_encodings: TBD_1) => 1 / tstr,
* (int / tstr) => any
}
¶
Label TBD_1 MAY be present in the protected header and MUST NOT be present in the unprotected header, following the placement rule [RFC9995] states for labels 258 through 260. When label TBD_1 is present, preimage-content-type (259) MUST also be present (Section 4.2). A producer MUST NOT list label TBD_1 in the crit header parameter ([RFC9052] Section 3.1), so that a verifier that implements only [RFC9995] can ignore it.¶
The value of deterministic-encodings is either the unsigned integer 1 or a text string holding a URL. The integer 1 identifies the Core Deterministic Encoding Requirements of [RFC8949] Section 4.2.1 (Section 3.1). This document defines no other integer value and creates no registry.¶
A text string value is a URL: a URI ([RFC3986] Section 3) with the "https" scheme ([RFC9110] Section 4.2.2) that links to the part of a specification that defines exactly one deterministic encoding. When the linked document defines more than one encoding, the URL MUST carry a fragment ([RFC9110] Section 4.2.5) that selects the section defining the encoding that was applied. A producer copies the URL of the encoding it applied. A verifier compares the value with the URLs of the encodings it implements, character by character ([RFC3986] Section 6.2.1), and does not dereference it.¶
Which URLs a producer can use, and which a verifier acts on, is decided by the application profile that uses this parameter, not by this document; a profile that names a URL is responsible for the URL, the encoding, and the encoding's Applicable Content Types (Section 4.2). No registry of these URLs is needed, and a value that a verifier does not implement changes no verification outcome: the verifier ignores it (Section 4.3).¶
For CBOR content, this document defines one value: the integer 1. As the value of deterministic-encodings, 1 states that the structured value was encoded according to the Core Deterministic Encoding Requirements of [RFC8949] Section 4.2.1. It does not stand for the other encodings that [RFC8949] describes, such as the length-first map key ordering of its Section 4.2.3. For a CBOR sequence [RFC8742], each data item is encoded according to these requirements. The choices that [RFC8949] Section 4.2.2 leaves to a protocol, including the representation of NaN values, are not part of this encoding (Section 6).¶
A producer that applied this encoding and includes deterministic-encodings MUST set it to the integer 1, not to a URL, so that producers and verifiers use one value for the encoding. The integer takes 1 byte; the URL of that section on the RFC Editor's site would take 59 bytes.¶
An RFC does not change once it is published, so the integer 1 names one fixed text. A later specification that changes deterministic encoding is identified by a URL of its own (Section 3), and Hash Envelopes that carry the integer 1 keep their meaning. For example, [I-D.ietf-cbor-serialization] defines preferred-plus serialization (its Section 4) and deterministic serialization (its Section 5), and its deterministic serialization excludes NaNs other than 0xf97e00. Once published as an RFC, its deterministic serialization could be identified by the URL of the section of that RFC that defines it, with the fragment. Its preferred-plus serialization is not deterministic when the value contains a map (its Section 5.3.2), so it is not an encoding for this parameter.¶
Other encodings, of CBOR or of other content such as JSON, are identified by URLs that the application profiles that use them name (Section 3); this document does not list them. A URL is not the integer 1, even when it links to Section 4.2.1 of [RFC8949]: a verifier compares a URL only with the URLs of the encodings it implements.¶
When a producer creates the preimage by applying a deterministic encoding to a structured value, it SHOULD include deterministic-encodings, so that a verifier holding only the structured value can re-create the preimage. When present, the value MUST identify the encoding actually applied. A producer that serializes a structured value without a deterministic encoding, or whose preimage is not the serialization of a structured value -- for example application/octet-stream content, an image, or an archive -- has no encoding to identify, and the parameter is absent; the content binding can then be checked only from the preimage bytes.¶
The Applicable Content Types of the encoding that the integer 1 identifies (Section 3.1) are application/cbor, application/cbor-seq, application/cose, application/cose-key, application/cose-key-set, application/cose-x509, application/cwt, and application/multipart-core, and media types with the +cbor, +cbor-seq, +cose, +cwt, or +sd-cwt structured syntax suffix. When deterministic-encodings is present, preimage-content-type (259) MUST also be present, and its value MUST match one of the Applicable Content Types of the encoding that deterministic-encodings identifies:¶
A 259 value that is a media-type name matches when its type and subtype -- with any parameters removed, and compared case-insensitively ([RFC6838] Section 4.2) -- equal a listed media type, or when its subtype ends in a listed structured syntax suffix ([RFC6838] Section 4.2.8).¶
A 259 value that is a Content-Format number matches when the CoAP Content-Formats registry ([RFC7252] Section 12.3) assigns that number to a matching media type with no content coding.¶
A producer MUST NOT emit a Hash Envelope that violates these rules -- for example, one pairing the integer 1 with application/json. A verifier that implements the encoding that deterministic-encodings identifies, and finds preimage-content-type (259) absent or with a value that does not match the Applicable Content Types of that encoding, MUST treat the check of the content binding as failed, without attempting recomputation. This check comes first, and takes precedence over Section 4.3. A verifier that does not implement the identified encoding, like one that implements only [RFC9995], ignores the parameter, and its results are unchanged.¶
A verifier that holds the preimage itself -- for example, as retrieved from payload-location (260) -- checks the content binding as [RFC9995] Section 5.3 describes: it checks whether the digest of the preimage, produced with the hash algorithm identified by payload-hash-alg (258), matches the payload. That check needs no encoding information, and applies whether or not deterministic-encodings is present, subject to Section 4.2.¶
A verifier that holds only a structured value -- for example, content it received, stored, or decoded in a form other than the preimage itself -- has to re-create the preimage by encoding that value. When deterministic-encodings identifies an encoding the verifier implements, the verifier MUST encode the value with that encoding, and MUST NOT infer the encoding from preimage-content-type (259) or from the structure of the value. If the digest of the result does not match the payload, the check fails. It also fails if the verifier cannot produce that encoding of the value -- for example, when the value holds a NaN with a payload that its encoder does not support (Section 3.1).¶
When deterministic-encodings is absent, or its value does not identify an encoding the verifier implements -- for example, a URL that the verifier's application profile does not name, an integer other than 1, or a value of another type, such as the floating-point number 1.0 -- the verifier ignores the parameter, and checks the content binding as it would for a Hash Envelope without it, as [RFC9995] Section 5.3 describes. A verifier that holds no preimage then has nothing to hash, and the check fails. This document adds no other outcome.¶
A Hash Envelope produced without this parameter -- including any produced before the parameter was registered -- is not defective: its content binding can still be verified from the preimage bytes. Signature validity is unaffected by the check of the content binding: a verifier that has not established the content binding can still validate the signature of the COSE_Sign1 as specified in [RFC9052].¶
These use Extended Diagnostic Notation ([RFC8610] Appendix G), in the style of [RFC9995] Section 4.1; signature and key material are truncated.¶
The structured value {"b": 2, "a": 1}, a CBOR map, encoded per the Core
Deterministic Encoding Requirements of [RFC8949] Section 4.2.1 (bytewise
key order, placing "a" before "b"), gives the 7-octet preimage
a2616101616202, whose SHA-256 digest is
a0d3af9e86e5517f729bad0657e2c6f3b7d03899894c8d6b33759074c893b5e3:¶
18([ # COSE_Sign1
<<{
/ alg / 1: -7, # ES256
/ hash algorithm / 258: -16, # sha-256
/ preimage type / 259: "application/cbor",
/ deterministic encodings / TBD_1: 1, # RFC 8949, Section 4.2.1
}>>
/ unprotected / {},
/ payload / h'a0d3af9e...c893b5e3', # digest above
/ signature / h'...' # 64 octets, r || s
])
¶
[RFC9393] registers application/swid+cbor for Concise Software Identification (CoSWID) tags but does not require a deterministic encoding of them, so two producers may serialize the same tag as different byte sequences. A producer that applies the Core Deterministic Encoding Requirements before hashing a CoSWID tag sets preimage-content-type (259) to application/swid+cbor and deterministic-encodings to the integer 1 (Section 3.1) -- recording its own choice, not a CoSWID requirement -- so that a verifier holding the decoded tag knows how to re-create the preimage.¶
A Hash Envelope over JSON content can carry deterministic-encodings with the URL of a specification that defines a deterministic encoding of JSON, such as the JSON Canonicalization Scheme [RFC8785], "https://www.rfc-editor.org/rfc/rfc8785", with preimage-content-type "application/json", when the application profile the producer follows names that URL. [RFC8785] defines one encoding, so the URL carries no fragment (Section 3). This document does not name the URL. A verifier that implements that encoding and holds the decoded JSON value re-creates the preimage with it. A verifier that does not implement it ignores the parameter, and checks the content binding as [RFC9995] Section 5.3 describes (Section 4.3).¶
A deterministic encoding fixes the preimage for a given structured value, so decoding a preimage and encoding the result again reproduces the preimage only if decoding preserved that value exactly. Decoding into a programming language's native types can lose distinctions the encoding depends on -- for example, between integer and floating-point numbers, or the presence of a tag. Choices that decide which data item represents a value, such as those [RFC8949] Section 4.2.2 leaves to each protocol for tags and for integer versus floating-point values, belong to the structured value, not to the encoding that deterministic-encodings identifies. A choice that changes only how the same data item is serialized, such as encoding every floating-point value as binary64, is a different encoding, not the one that the integer 1 identifies (Section 3.1). A producer that re-reads stored content before hashing MUST ensure the preimage it hashes is byte-identical to the encoding's own output. A verifier that re-creates a preimage from a structured value (Section 4.3) needs that value exactly as the producer encoded it; otherwise its recomputed digest can differ from the payload, and the check of the content binding then fails.¶
A verifier does not dereference a URL in deterministic-encodings, so the value causes no network access, and a URL whose resource has moved or changed does not change the verifier's result. A value that does not identify an encoding the verifier implements has no effect on the result (Section 4.3).¶
A digest over deterministically encoded content is a stable function of that content, so the payload is linkable wherever the content recurs. If the structured value comes from a low-entropy space, encoding and hashing candidate values can recover it; this risk already exists wherever [RFC9995] is used, and identifying the encoding removes an ambiguity that might have slowed such an attempt.¶
IANA is requested to register the following entry in the "COSE Header Parameters" registry, in the "Integer values from 256 to 65535" range, under the Specification Required policy ([RFC8126] Section 4.6) that governs that range:¶
| Name | Label | Value Type | Value Registry | Description | Reference |
|---|---|---|---|---|---|
| deterministic-encodings | TBD_1 | 1 / tstr | none | Deterministic encoding applied to create the preimage of a Hash Envelope payload | This document |
The suggested value for TBD_1 is 271, the lowest unassigned value in the "Integer values from 256 to 65535" range of the COSE Header Parameters registry as of 2026-11-23.¶
This section is to be removed before publishing as an RFC.¶
Section 1 opens with a Problem Statement (Section 1.1): a verifier that holds a decoded value rather than the hashed bytes has to re-encode it, and nothing in the Hash Envelope says whether the producer applied a deterministic encoding. The gap is that missing statement, not a missing encoding. The abstract opens with the same problem.¶
The text-string (URL) value is presented as the extension point for application profiles; the integer 1 is the one value this document defines. Neither the CDDL nor any processing rule changes.¶
The JSON example names the JSON Canonicalization Scheme [RFC8785] instead of a placeholder URL.¶
Section 1.1 names the three deterministic encoding processes in common use for CBOR (that of [RFC8949] Section 4.2.1, the length-first map key ordering of its Section 4.2.3, and CBOR/c-42) and says why this document steers protocols to the first. This replaces a paragraph on JSON; the JSON example in Section 5 remains.¶
This section is to be removed before publishing as an RFC.¶
The value of deterministic-encodings is the integer 1 or a URL (Section 3). The integer 1 identifies the Core Deterministic Encoding Requirements of [RFC8949] Section 4.2.1, which version 02 identified by the URL of that section; the integer takes 1 byte, the URL 59. Any other encoding is still identified by a URL that an application profile names. This document creates no registry and defines no other integer value.¶
A producer that applied the Core Deterministic Encoding Requirements sets the parameter to the integer 1, not to a URL (Section 3.1). A verifier of this version ignores the URL that version 02 listed (Section 3.1, Section 4.3). Version 00 used the integer 1 for the same encoding, through a registry that version 01 removed.¶
A verifier also ignores an integer other than 1 and a value of another type, such as the floating-point number 1.0 (Section 4.3). The example in Section 5 carries the integer 1.¶
Editorial: the fragment rule cites [RFC9110] Section 4.2.5; the text no longer predicts a section number of [I-D.ietf-cbor-serialization] once it is an RFC; the eat_profile precedent names a profile by a URI or an OID (Section 1).¶
This section is to be removed before publishing as an RFC.¶
The value of deterministic-encodings became a URL, not a token: an "https" URL that links to the section of a specification that defines the encoding (Section 3). Version 01 used the text string "dtrm", the name [I-D.ietf-cbor-serialization] gives to deterministic serialization in its CDDL control operator. A URL needs no registry: the application profile that names a URL is responsible for it.¶
Version 02 listed one URL, for CBOR content: the URL of Section 4.2.1 of [RFC8949], the Core Deterministic Encoding Requirements, with its fragment. A URL for a document that defines more than one encoding, such as [RFC8949] or [I-D.ietf-cbor-serialization], carries a section fragment (Section 3). An RFC does not change, so the URL needs no replacement later. Unlike "dtrm", this encoding does not exclude NaNs other than 0xf97e00: the representation of NaN values is one of the choices that [RFC8949] Section 4.2.2 leaves to a protocol.¶
Other URLs are named by the application profiles that use the parameter, not by this document (Section 2, Section 3). A verifier ignores a URL it does not implement, so an arbitrary URL changes no verification outcome.¶
The outcome "unverified" is removed: the check of a content binding succeeds or fails, as [RFC9995] Section 5.3 describes it. A verifier of version 02 ignored deterministic-encodings when it was absent or its value was not the URL of an encoding the verifier implemented, including the text string "dtrm", and checked the content binding as for a Hash Envelope without it. When a verifier cannot produce the identified encoding of a structured value, the check fails. Only a verifier that implements the identified encoding checks preimage-content-type (259) against it (Section 4.2, Section 4.3).¶
Examples showed the URL and a JSON case with a URL that this document does not list (Section 5); Security Considerations state that the URL is not dereferenced (Section 6).¶
The abstract and the introduction no longer rest on RFC 8949 describing more than one deterministic encoding. The introduction shows instead a value that has two valid CBOR encodings, one of them deterministic, and why stating the encoding lets a verifier tell a modified value from one encoded another way (Section 1).¶
This section is to be removed before publishing as an RFC.¶
The "COSE Deterministic Encodings" registry is removed. This document requests only the registration of the header parameter (Section 8).¶
The value of deterministic-encodings became the text string "dtrm", the name [I-D.ietf-cbor-serialization] gives to its deterministic serialization. Version 00 used the integer 1, the value its registry assigned to core-deterministic. A verifier of version 01 handled the integer 1 as a value it did not recognize.¶
"dtrm" excludes non-trivial NaNs, as [I-D.ietf-cbor-serialization] defines. In version 00, value 1 was [RFC8949] Section 4.2.1 without that exclusion.¶
The Applicable Content Types, which version 00 put in the registry entry, are listed in Section 4.2.¶
In version 01, a verifier that could not produce the identified encoding of a structured value reported the content binding as unverified.¶
The authors thank Amaury Chamayou for a detailed review that aligned this document's terminology, CDDL, and verification rules with [RFC9995], proposed the name core-deterministic, and compared the size of the parameter's values, Henk Birkholz for a review of its scope, motivation, and terminology, Orie Steele for his review, Laurence Lundblade for asking that the document state the problem it solves, and Carsten Bormann for describing the deterministic encoding processes in use for CBOR.¶