Network Working Group V. Jones Internet-Draft Entercation Info Inc. Intended status: Informational 1 December 2026 Expires: 4 June 2027 Reproduction of SHA-384 and SHA-512 Merkle Tree Vectors for COSE Receipts draft-jones-taylor-cose-merkle-reproduction-00 Abstract This document reports reproduction of the Merkle tree test vectors in Appendix A of draft-taylor-cose-receipts-rfc9162-sha384-sha512-00. It identifies the bytes supplied to the hash, the comparison order, and a CBOR size calculation for the same proof paths. It defines no protocol behavior. Status of This Memo 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 4 June 2027. Copyright Notice 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. Jones Expires 4 June 2027 [Page 1] Internet-Draft COSE Merkle Vector Reproduction December 2026 Table of Contents 1. Reproduction Method . . . . . . . . . . . . . . . . . . . . . 2 2. Observed Results . . . . . . . . . . . . . . . . . . . . . . 2 3. Encoded Proof Sizes . . . . . . . . . . . . . . . . . . . . . 3 4. Security Considerations . . . . . . . . . . . . . . . . . . . 3 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 3 6. Informative References . . . . . . . . . . . . . . . . . . . 3 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 3 1. Reproduction Method The inputs are the seven ASCII strings leaf-0 through leaf-6, in numeric order. Each is six octets with no terminator. For each hash algorithm, apply RFC 9162 Section 2.1 with that hash substituted for SHA-256 as specified by Taylor. Hash the empty string for the empty tree, prefix leaf inputs with the octet 0x00, and prefix pairs of raw child digests with 0x01. Use the largest power of two strictly below the subtree size as the split point. See [RFC9162] and [TAYLOR]. Compare the empty-tree hash, size-three and size-seven roots, hash of the leaf at zero-based index three, the three ordered inclusion-path nodes for index three at size seven, and the four ordered consistency-path nodes from size three to size seven. The two hash algorithms give 11 comparisons each. Use the inclusion and consistency generation algorithms in RFC 9162 Sections 2.1.3.1 and 2.1.4.1. 2. Observed Results The Entercation checker matched all 22 published values in each of 89 fresh Python processes. All 89 runs emitted identical output. The 1,958 comparisons are repeated measurements of the same 22 fields. A separate AI-assisted reviewer reported deriving the 22 values from the input description and RFC 9162 before opening the detailed expected values or the Entercation kit. The reviewer reported 22 matches and identical output across 89 processes. The reviewer had already seen the test counts and a description of the first checker. Both checkers use the RFC recursion. This is evidence of agreement between two separately written checkers, with the second result based on the reviewer's report. Jones Expires 4 June 2027 [Page 2] Internet-Draft COSE Merkle Vector Reproduction December 2026 3. Encoded Proof Sizes For the examples in Taylor Appendix A, the proof content is a three- element CBOR array containing two one-octet unsigned integers and a proof path array. In shortest definite-length CBOR, the two array headers each occupy one octet. Each digest has a two-octet byte- string header. For k nodes of d octets, the inner content length is 4 + k * (2 + d). The inclusion proof for tree size seven and leaf index three has three nodes. The wrapped proof occupies 156 octets for SHA-384 and 204 for SHA-512. The consistency proof from size three to seven has four nodes. The wrapped proof occupies 206 octets for SHA-384 and 271 for SHA-512. The SHA-512 consistency proof content is 268 octets, so its outer byte-string header occupies three octets. The SHA-384 content is 204 octets and its outer header occupies two. These figures describe the proof object alone. 4. Security Considerations These synthetic results cover root and proof-path generation. The size calculation covers the specified proof object encoding. Receipt parsing, proof consumption, signature verification, credential policy, and interoperability remain unassessed. A proof path reproduced from public leaves does not establish that a production log signed or published a tree head. A separate fixture can bind proof bytes to a reconstructed root and verify a signature over that detached root under a fixed synthetic key. 5. IANA Considerations This document has no IANA actions. 6. Informative References [RFC9162] Laurie, B., Messeri, E., and R. Stradling, "Certificate Transparency Version 2.0", RFC 9162, December 2021, . [TAYLOR] Taylor, D. W., "SHA-384 and SHA-512 Binary Merkle Tree Verifiable Data Structures for COSE Receipts", Work in Progress, Internet-Draft, draft-taylor-cose-receipts- rfc9162-sha384-sha512-00, November 2026, . Author's Address Jones Expires 4 June 2027 [Page 3] Internet-Draft COSE Merkle Vector Reproduction December 2026 Vince Jones Entercation Info Inc. Email: vince@entercation.info Jones Expires 4 June 2027 [Page 4]