OVERT
← Consultation overview · Markdown source

OVERT draft post-quantum signature and digest profile

1. Status and scope

Informative, unregistered draft for public comment with OVERT 2.0 Release Candidate 1. No Protocol Profile Registry operates. This document supports no OVERT conformance claim above Level 1. A valid signature alone does not establish Level 1. This document makes no statement about any product.

The requirements below specify interoperable signing, signature checking and digest comparison for the stated roles. Base and Extended Envelope schemas, sampling, commitments, the operator/platform key hierarchy, co-epoch measurement, notary quorum, measurement qualification, log proof construction and application transport remain undefined by this draft. It neither adopts nor modifies those constructions in Profile 1.0. A complete Protocol Profile for a claimed scope would have to define them where applicable. A complete OVERT receipt requires more evidence than the receipt signature statement in §4.

2. Identifiers

The profile identifier is overt-pq-example-1. The sole suite identifier is mldsa87-pure+sha384. These working identifiers are placeholders pending the owner's choice. Implementations of this draft SHALL compare their exact ASCII bytes case-sensitively. There is no version negotiation under these strings. A different suite requires a different profile identifier, context and key identifier.

3. Algorithms and encodings

Signers SHALL use FIPS 204 ML-DSA-87, pure mode, Algorithm 2, with hedged signing as specified in §11. Verifiers SHALL use FIPS 204 pure verification, Algorithm 3. HashML-DSA and an application-supplied prehash are outside this suite. Every digest defined here uses FIPS 180-4 SHA-384 with its full 48-byte output. Standardized primitives retain their specified internals, including the SHAKE functions in ML-DSA. A tree specified by RFC 6962 retains that construction's SHA-256 tree hash. A SHA-384 digest of checkpoint bytes in this profile is a separate operation.

In §§4–13, H is a JSON string of exactly 96 lowercase ASCII hexadecimal characters representing 48 octets in order, high nibble first. N is a JSON integer in [0, 9007199254740991]. T is a JSON string giving unsigned Unix nanoseconds in base ten from 0 through 18446744073709551615, with digits only and no leading zero except the single character 0. ID is 1–128 ASCII characters from letters, digits, period, underscore and hyphen. B64 encodes octets in order in groups of 24 bits, most significant bit first, using ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_ for successive six-bit indices. Unused final bits SHALL be zero. There is no padding, whitespace, line break or alternate alphabet. Decode then re-encode and compare for exact equality.

4. Signature roles and statement schemas

Every statement is a closed JSON object. It SHALL contain profile, suite, role (strings) and key_id (H), collectively C. The following table gives every additional field. Each unqualified field is required. The context in the third column is the exact ASCII string. Digests of a referenced external artifact use its complete original octets, with the artifact supplied separately. Recovering or interpreting that artifact belongs to the enclosing evidence protocol.

Role What the signer binds and why the role is distinct Context Statement fields in addition to C
receipt Receipt issuer's attestation hash, counter, epoch, issuance time, flags and any parent reference. An arbiter issuing a provisional receipt uses a dedicated receipt key for this slot (ATT-3.2). overt-pq-example-1/receipt attestation_id H, counter N, epoch N, flags N, issued_at_ns T. Optional parent fields as specified below.
witness Witness's timed observation of a specific receipt and its signature. overt-pq-example-1/witness observed_at_ns T, statement_sha384 H, signature_sha384 H.
notary Individually attributable notary countersignature. The target distinguishes a receipt from the shared qualification record required by OVERT §19.5. overt-pq-example-1/notary target string, issued_at_ns T. For target="receipt", also statement_sha384 H and signature_sha384 H. For target="qualification", also record_sha384 H.
key-cert Certifier's authorization of a role key for a scope and interval. overt-pq-example-1/key-cert subject_key (complete §6 native key object), scope ID, valid_from_ns T, valid_until_ns T.
log-checkpoint A log signer's assertion of the root at a stated size. Root bytes belong to the separately identified tree construction. overt-pq-example-1/log-checkpoint log_id ID, tree_size N, tree_root B64 of 1–128 octets, issued_at_ns T.
arbiter Arbiter's binding of submitted envelope bytes (Annex B.6). Envelope signing has a different target from receipt issuance. overt-pq-example-1/arbiter envelope_sha384 H, issued_at_ns T.
assessor Independent assessor's certification of a qualification record (§19.5) or assessment (§22.8). Its authority is distinct from the producing notary's. overt-pq-example-1/assessor target string, either qualification or assessment, record_sha384 H, issued_at_ns T.
monitor Monitor's observation of a particular signed tree head at a claimed time (§4.7.2). The monitor has a separate key from the log. overt-pq-example-1/monitor statement_sha384 H, signature_sha384 H (target role log-checkpoint), observed_at_ns T.
time-anchor Independent time evidence over a specific signed monitor observation (§§4.7.1 and 21.3). The monitor cannot anchor its own observation. overt-pq-example-1/time-anchor statement_sha384 H, signature_sha384 H (target role monitor), observed_at_ns T.
controller Controller's binding of an exact ControlAction artifact (RES-1.2 and Annex B.1). A control instruction has distinct authority from a receipt. overt-pq-example-1/controller action_sha384 H, issued_at_ns T.
custodian Export custodian's certification of the package, scope, operator identity and time (§21.3(e)). overt-pq-example-1/custodian package_sha384 H, scope ID, custodian_id ID, issued_at_ns T.

For receipt, attestation_id is the SHA-384 of the externally specified attested envelope bytes. It is independent of the hedged receipt signature. flags SHALL be exactly 0 (contemporaneous), 1 (DELAYED_NOTARY) or 2 (RECONSTRUCTED). There are no parent fields for a local-only statement. For one cross-boundary parent, parent_reference_status is exactly VALID, UNAVAILABLE, INVALID or TIMEOUT. VALID requires a structurally valid parent_attestation_id string under §10. UNAVAILABLE requires its absence. INVALID and TIMEOUT MAY carry the structurally valid value actually received, if available. Malformed header bytes SHALL be recorded as INVALID with no parent identifier. A parent identifier always requires a status. This minimal signature statement represents at most one parent. No assertion of log inclusion follows from a generation-time status.

The qualification variants bind the identical underlying qualification record octets, with role-specific signature statements. This document supplies no encoding for the underlying record. For a checkpoint, local trust inputs SHALL identify the log's tree construction and required root length before interpreting the checkpoint as evidence of that tree. Each signature's effective scope, actor independence and role authorization require separate appraisal.

5. Signed bytes and worked receipt

Let M be exactly the UTF-8 RFC 8785 JCS encoding of the entire §4 statement, without BOM, newline or enclosing transport. A signer SHALL sign M directly with the context interface. It SHALL pass M and ctx separately. Internally, FIPS 204 Algorithm 2 line 10 constructs M′ = 00 || len(ctx) || ctx || M, where 00 is one zero octet and len(ctx) is one unsigned octet counting the context octets (at most 255). || is direct octet concatenation. A caller that both prepends this prefix and supplies ctx signs different bytes.

The line below is the complete checked M. Its closing brace is its last byte.

{"attestation_id":"9b6bb6dc43d3b999931f58406503cd6074b5ed6832e96d24864e02eefe163498fd1f2ef549ebff3ebfe1edc8f364d65b","counter":1,"epoch":5987520,"flags":0,"issued_at_ns":"1796256000000000000","key_id":"6741d94fefd9fd56203afecfd4f69e46455bc706e00fff8a23d415e44e056c1d3d2d68860181227bafea3faaa35ae238","parent_attestation_id":"sha384:436bc37211837c143a78f50cfcf87e58e213e7c181e8a11d2507a267467438f964229d73b7c475314b0c92e81fb2bd4e","parent_reference_status":"VALID","profile":"overt-pq-example-1","role":"receipt","suite":"mldsa87-pure+sha384"}
Octets of M′ (zero-based inclusive offsets) Value
0 00 (pure mode)
1 1a (26 octets)
2–27 6f766572742d70712d6578616d706c652d312f72656365697074 (ASCII overt-pq-example-1/receipt)
28–569 The 542 octets above, beginning 7b 22 and ending 22 7d. SHA-384(M) = adaa6e92ce905644dbad1b9ee517a232b4df94634ebb6ac94372310fdc3d3a464efc5d67eb1c8951f318f1d801230b14.

FIPS 204 key generation with 32 public test seed octets ascending from 00 to 1f gives the receipt public key for the key_id in M. With 32 fixed signing-randomness octets ascending from 40 to 5f, the 4,627 raw signature octets have SHA-384 79a31284075e7e010a5fc2c88feff9dfdc01c4d194136586bbbf3abaf3a9a82ec63e53dc621c1bf5e6969b025f513e98. These digests are checks on the example. Neither digest replaces M in the signature call.

6. Keys, identifiers and authorization

The public key is a closed JCS object with exactly profile, suite, role, key_id and public_key. The first four have the §4 meanings for the key itself. public_key is B64 of the 2,592 raw FIPS 204 public-key octets (3,456 characters). For raw public key pk, compute

key_id = lowerhex(SHA-384(ASCII("overt-pq-example-1/key-id") || 0x00
                         || ASCII(role) || 0x00 || pk))

Each 0x00 is one octet. There is no final terminator. Signers SHALL use different raw keys for different roles, including within one organization. A verifier loading trusted keys SHALL refuse to install one raw key for two roles. Role-dependent identifiers alone cannot detect such reuse unless both keys are available.

A key certificate is a §4 key-cert statement and its detached signature. key_id identifies the issuer, while subject_key.key_id identifies the authorized subject. The verifier SHALL recompute the subject's identifier and require the interval valid_from_ns < valid_until_ns. To use a certificate for authorization, verify it under an independently pinned certifier authorized for its scope. Match the subject's entire native key and exact scope to the intended use and require valid_from_ns ≤ appraisal instant < valid_until_ns, comparing decimal values numerically. This draft defines direct pins and one certificate hop from a direct certifier pin. It defines no delegated certification path, threshold, or key derivation hierarchy. A supplied key or certificate cannot add a trust anchor.

7. Forbidden identifiers

The registered signature name ML-DSA-87, COSE algorithm number -50 and JOSE/COSE key type AKP SHALL NOT occur as identifiers in a profile object. RFC 9964 §5 specifies empty ctx for its ML-DSA suites. RFC 9964 §3 requires alg on every AKP key. This profile authenticates a nonempty role context and uses its own native key representation. It has no alg or kty field and does not interpret JOSE/COSE code points.

8. Verification algorithm

The detached signature-check operation has three wire inputs: exact M octets, exact native public-key JSON octets and the ASCII B64 signature text without JSON quotes. A caller MAY carry these separately or in a transport that preserves each input exactly. Its trusted inputs are an allowed profile and suite, a role selected by the caller's verification slot and a previously authorized native public key for that slot. Verify a certificate as its own key-cert operation before installing a certified subject. No context, key pin, suite choice or slot is obtained from the message. Apply the following steps in order and return the first applicable code. For checks on two JSON inputs, inspect M first, then the key. Both must pass each numbered step before advancing. Codes denote detached verification outcomes unless stated otherwise.

  1. LIMIT. Reject M longer than 16,384 octets, a key document longer than 8,192 octets, or signature text longer than 16,384 octets. A streaming decoder SHALL bound nesting to four object/array levels, counting the root as one. Encountering a fifth opening delimiter while parsing is LIMIT.
  2. JSON. Parse strict UTF-8 JSON, with no BOM, malformed UTF-8, unpaired surrogate, trailing non-whitespace data or invalid JSON number. Collect member names before constructing maps. Reject syntactically invalid inputs. A numeric value outside the safe integer range, or a fractional numeric value, is JSON. Do not round a fractional lexeme to a safe integer. For example, 9007199254740991.1 is out of domain.
  3. DUPLICATE. Reject a repeated decoded member name at any level, including repetitions expressed using different JSON escapes.
  4. NONCANONICAL. Compare each complete original document byte for byte with its RFC 8785 JCS serialization. Reject any difference, including added whitespace, an escaped alternative spelling, reordered keys, exponent notation, negative zero and trailing newline. Do not normalize received bytes before comparing.
  5. FORBIDDEN_ID. Anywhere in either object reject a member name or complete string value exactly ML-DSA-87, -50 or AKP, or the integer value −50. This also rejects a forbidden identifier in an unrecognized field.
  6. SCHEMA. Require two objects, each with all four C fields of JSON string type. Require the key's precise closed field set and a string public_key. Defer role-specific fields and the spelling of the key identifier to subsequent checks.
  7. PROFILE, SUITE, ROLE. In this order, require (a) the locally allowed profile and both objects' profile to equal §2, (b) the locally allowed suite and both objects' suite to equal §2, (c) the caller's slot to be named in §4 and both objects' role to equal that slot.
  8. BASE64, KEY_LENGTH, SIG_LENGTH. Decode public_key, then the detached signature text, using the strict §3 B64 rules. A malformed encoding in either yields BASE64. Require exactly 2,592 key bytes, then exactly 4,627 signature bytes (6,170 B64 characters). A legacy 64-byte signature in this transport yields SIG_LENGTH.
  9. KEY_ID, KEY_PIN. Compute §6 with the selected slot and exact raw key. Both key_id strings SHALL equal the resulting lowercase hex. Then compare the entire candidate native key with the independently authorized native key for the slot. Missing or mismatched pin yields KEY_PIN.
  10. SCHEMA. Require all and only the fields for the selected role, with the types, enumerations, ranges and field relationships in §§3–4 and 6. For subject_key, require the closed §6 schema, this profile and suite, a §4 role, strict B64 with the specified key length and a recomputed matching identifier. A nested subject inconsistency at this step is SCHEMA. A certificate giving a different role to the issuer's own raw key is SCHEMA. A syntactically or semantically invalid parent status or field-presence combination is SCHEMA; check the syntax of each present tagged link only after these checks, with the codes in §10.
  11. SIGNATURE_INVALID. Derive ctx by concatenating ASCII of the locally allowed profile, one slash octet (2f) and ASCII of the caller's slot. Invoke FIPS 204 pure verify once on the exact raw key, original M, raw signature and ctx. A rejected encoding of a signature of the correct length, or a false verification result, yields this code. Never retry under another mode, key, suite, context or legacy signature format.
  12. Return ACCEPT/OK only when all checks pass. This result is limited to the signature under the supplied trust inputs. Record any target binding, key validity at the relevant time, independent observation, log consistency, application semantics and full OVERT conformance separately. Missing referenced artifacts leave the corresponding evidence property unverified.

9. Witness and notary countersignatures

For receipt M and its raw 4,627-octet signature S, the target fields SHALL be statement_sha384 = lowerhex(SHA-384(M)) and signature_sha384 = lowerhex(SHA-384(S)). Each signer constructs its own §4 statement and signs that statement's JCS with its own native key and context. A witness uses observed_at_ns. A receipt notary uses target="receipt" and issued_at_ns. One receipt may have multiple valid hedged signatures. A countersignature for one signature does not authenticate another.

To check a countersignature binding, first require valid signatures on both supplied statements in their independently selected slots. Compare the target roles and both digest fields against the supplied target M and S. For notary and assessor qualification statements require the expected target and compare record_sha384 against the same complete qualification record bytes. Report a wrong target, substitute signature or unequal digest as TARGET_MISMATCH for the binding operation. Monitor and time-anchor pairs follow the same two-digest procedure using the target slots in §4. Appraise the identity, independence, time source and required quorum under externally established policy.

  1. Obtain the upstream provisional receipt's attestation_id, the attested envelope digest under the upstream suite. Use the serialized identifier that will be published in the upstream log. For a SHA-384 upstream it represents 48 octets.
  2. Require the upstream suite's specified length of lowercase hexadecimal ASCII. A SHA-384 upstream gives exactly 96 ASCII octets. An upstream suite using a 32-byte hash gives 64 ASCII octets. In the separate link check, a wrong length or any other character in this upstream input yields UPSTREAM_ID. The verifier obtains the expected upstream length from trusted upstream suite metadata.
  3. Compute SHA-384 over those ASCII octets, in order, with no delimiter or terminator. Do not decode the upstream hexadecimal to binary before hashing.
  4. The upstream egress arbiter SHALL set the HTTP field value of OVERT-Parent-Attestation-Id to ASCII sha384: followed by the 96 lowercase hex characters of step 3. The downstream arbiter SHALL record the structurally valid value verbatim in parent_attestation_id within its receipt M and assign the §4.8.7 generation-time status.
  5. The only allowed tag here is sha384:. Check the exact prefix first (LINK_TAG for unknown tag or untagged input), the remainder's length in UTF-8 octets second (LINK_LENGTH), and membership of every remaining character in ASCII 0123456789abcdef third (LINK_FORMAT). Consume the complete value including any trailing octets. For the separate link check, perform steps 1–2, these three structural checks and then compare with step 3 (LINK_MISMATCH for inequality, otherwise ACCEPT/OK). During full DAG appraisal locate the authenticated upstream record in its log, recompute the value and apply all four OVERT §4.8.6 checks. Absence of log evidence leaves inclusion unverified.

The checked upstream wire ID is 6f12088bdbc592d12fabd0ef21fbb2bff29075a469566df478b5146a20d35d18eb555c3d7d87bfcd167216875ce4ff46. Hashing its 96 ASCII octets gives the 103-character field value sha384:436bc37211837c143a78f50cfcf87e58e213e7c181e8a11d2507a267467438f964229d73b7c475314b0c92e81fb2bd4e in §5. This draft defines no exception for an untagged legacy header. An upstream 64-character ID hashed and tagged by this profile remains distinguishable from an untagged incoming header.

11. Signing randomness

Each production signing call SHALL obtain a fresh 32-octet rnd from an approved random bit generator under FIPS 204. A signer SHALL fail the signing operation when its generator cannot supply randomness and SHALL NOT switch to deterministic signing. Fixed randomness is permitted only to generate reproducible test vectors. Implementations SHALL be able to identify the generator and show that the production context-aware signing call consumes fresh output and fails on generator error. A detached signature does not reveal whether its randomness was fresh, fixed or securely generated. Generator and custody evidence must be appraised separately.

12. Later-suite renewal and historical appraisal

Before the old suite or affected key ceases to be trusted, preserve original M, raw signature, native signer key and certificate, each countersignature's exact signed bytes/signature and supporting keys, log checkpoint and proofs, profile and suite identifiers, available authority/revocation records, original covered data or commitments, and independent timing evidence. A successor SHALL bind these original octets under its own digest, using its specified unambiguous encoding, with identifiers and an inventory stating which bytes were available and which were missing. Hashing only the old digest would preserve dependence on the old function. Obtain independent time evidence for that successor commitment while the original suite remains trustworthy. This draft assigns no successor suite or renewal wire format.

The relying party's authenticated policy supplies role-specific issuance cutoffs, authorized keys, periods of suspected compromise and historical trust inputs. New issuance at or after a role's cutoff fails authorized-issuance appraisal. For retained evidence distinguish scheduled retirement from suspected compromise, use the appropriate independent anchor and apply OVERT §§4.7.1 and 21.3. An unanchored signer-stated time cannot establish pre-cutoff existence. Without the needed anchor report that historical property unverified and quarantine affected evidence when §4.7.1 applies. Rehearse successor issuance, rejected fallback and independent verification of pre-cutover exports before claiming a transition.

13. Interoperability vector file

One UTF-8 JSON object contains the following members. Vector file indentation and field order carry no meaning. Exact cryptographic input bytes use B64 or the explicitly specified hex encoding. Names are unique within each array, case-sensitive IDs. The file only contains public fixtures.

Member Type and contents
format, profile, suite Strings. Exactly overt-pq-vectors-1 and the two §2 constants, respectively.
keys Array of objects with name ID, seed_hex string of 64 lowercase hex characters encoding the 32 seed octets in order, and key §6 object. Generate pk using FIPS 204 ML-DSA-87 KeyGen_internal on the seed; apply §6 with the indicated role. Derive private material only in memory.
signatures Array of objects with name ID, key_name ID referencing keys, message_b64 B64 of exact M, context_hex lowercase hex of the exact context octets (empty string for the empty-context control), rnd_hex 64 lowercase hex characters encoding the 32 fixed signing octets or JSON null for hedged accept-only samples, and signature_b64 B64 of the raw signature. Feed specified rnd through a fixed test generator to the context-aware signing API. Compare generation byte for byte only when rnd is specified.
cases Array of detached-verification objects with name ID, slot string chosen by the caller, pin_name ID referencing a §6 trusted fixture in keys, key_jcs_b64 B64 of the exact candidate key document, message_b64 B64 of the exact candidate M, and signature_text_b64 B64 of the exact candidate signature text octets. The outer B64 preserves even malformed input. expected_verdict string is ACCEPT or REJECT; expected_code string is the §8 result. The harness configures §2 as its sole allowed suite/profile and does not change its slot to match the message.
links Array of objects with name ID, upstream_id string of candidate upstream wire characters, upstream_hex_length N giving the upstream suite's trusted length in hex characters, tagged_link string of candidate downstream wire characters, and expected_verdict, expected_code strings as in §10. Inputs include bad ASCII spellings and trailing newline.

The receipt seed is 32 octets 00 through 1f; the witness seed is 20 through 3f; fixed rnd is 40 through 5f, all in ascending order. The checked witness key identifier is c988d2e7e65322ba01659003262dd6f93046cceaf0fc37561f6bf3faa0d8d59de398b0a1ec7ae8be1174cbcbed143a90. Its context hex is 6f766572742d70712d6578616d706c652d312f7769746e657373. A fixture author supplies and records any additional role-specific seeds.

Verification coverage SHALL include the checked receipt and witness, a valid statement for each supported role, independently hedged accept-only signatures, a fixed-rnd signature with empty ctx that fails in the receipt slot, receipt/witness slot swaps in both directions, and a valid signature made with the wrong key. Negative cases SHALL cover changed M and changed signature, 4,626- and 4,628-octet signatures, a 64-octet legacy signature, wrong key length, wrong pin, incorrect key identifier, unknown profile, disallowed suite, wrong role, each forbidden identifier, missing or extra fields, incorrect type or enum, decimal range, unexpected parent fields, oversize, excess nesting, invalid UTF-8, duplicate names, noncanonical JSON and noncanonical B64 (including padding and nonzero unused bits). Choose valid alternative field values when testing arithmetic so earlier schema checks pass. Compare actual verdict and first rejection code for every case.

Link coverage SHALL include §10's checked case, 0123456789abcdef repeated four times with trusted upstream width 64 and a SHA-384 link, wrong upstream width, a sha384: tag with 64 hex digits, an untagged value, uppercase, trailing newline, unknown tag, and a well-formed but unequal digest. Independent semantic tests should additionally substitute a second valid signature on the same receipt beneath its original countersignature, substitute an assessor's target record, exercise certificate scope and half-open validity endpoints, reject reuse of a role key, and appraise both anchored and unanchored historical evidence. These tests require the corresponding referenced evidence and appraisal inputs; a detached signature result cannot replace them.

14. Open questions for comment

  1. Which permanent profile identifier and suite identifier should replace the working strings?
  2. Should a separate migration profile accept untagged OVERT 1.1 links, and how would it authenticate the upstream suite?
  3. Which complete receipt and evidence schemas, including multiple-parent receipts and qualification records, should be paired with these signature statements?
  4. Are the input caps, direct-certifier trust path and signed role/target choices sufficient for independent implementations?

15. OVERT §22.6.2 submission mapping

Requirement Status for this draft
1. Normative coverage Not met. §§1 and 4 define a signature/digest subset. Full applicable envelopes, sampling, commitments, key hierarchy, authorities and verification policy are outstanding.
2. Published test vectors Not met. §§5, 10 and 13 specify checked examples and a vector format. A complete, published vector corpus for every operation remains a submission requirement.
3. Deterministic verification Not met for registration. §§8–13 define deterministic checks, fixed randomness, independently generated outputs and historical appraisal limits. Transition vectors and a successor profile remain outstanding. Hybrid component vectors are inapplicable to this pure suite.
4. Public specification Not met at drafting. §1 identifies the text intended for public comment. Public availability requires publication of the actual specification.
5. Patent disclosure Not met. §1 identifies draft status. A submitter's disclosure remains outstanding.
6. Public conformance test suite Not met. §13 defines interoperation fixtures. A public suite covering a complete submission remains outstanding.