Summary

  • RFC 9921 defines two different COSE/RFC 3161 constructions: CTT timestamps the COSE signature field, while TTC timestamps the payload before a later COSE signature covers both payload and token.
  • A verifier may not treat a TTC token as evidence that a signature existed before certificate revocation. The mode, the exact hashed bytes, TSA trust and time policy must all survive into the final relying-party decision.

The dashboard had three columns. Cryptography: green. Timestamp: green. Revocation: red. The signer’s certificate had been revoked on Tuesday; the document carried an RFC 3161 token dated Monday. An automated checker took one look at the protected COSE header, verified the token’s CMS signature, confirmed that the later COSE signature covered both token and payload, and stamped the file as a long-term signature.

The conclusion was still wrong.

The token proved the payload existed when the Time Stamping Authority minted it. It proved nothing about when the COSE signature came into being. The signer could have asked a TSA to stamp a payload on Monday, sat on the result until after the certificate was revoked, and only then produced a COSE signature covering the old token and the same payload. Every byte in that review is genuine. The inference about signature time is invented.

That is not an auditor’s fussy distinction. It is the central security warning in RFC 9921, the IETF’s February 2026 Standard for dropping RFC 3161 TimeStampTokens into COSE_Sign and COSE_Sign1. The standard defines two constructions precisely because a timestamp has a scope. A token is not a magic date stapled to an entire business story.

Two orders of operations, two different facts

The first construction is COSE, Then Timestamp — CTT. The producer signs the COSE object first, then hashes the CBOR-encoded signature field of a COSE_Sign1 object (or the signatures field of COSE_Sign) and hands that hash to a Time Stamping Authority. The returned token goes into the 3161-ctt unprotected header parameter.

What matters is the TSA’s input. CTT timestamps the actual signature field, within the encoding scope RFC 9921 specifies. The token works like a TSA countersignature: verify the COSE signature and the associated token under the relevant trust conditions, and you hold evidence that the signature existed by the TSA time. That is the construction RFC 9921 recommends for long-term signatures — especially where a signer might later deny the act, or where the signing certificate has a short life.

The second construction flips the sequence. In Timestamp, Then COSE — TTC — the producer first hashes the COSE payload bytes and asks the TSA to stamp that hash. The payload bytes, not the CBOR byte-string wrapper and not a later signature field, are the RFC 3161 MessageImprint. The producer drops the returned token into the 3161-ttc protected header, then signs over the protected headers and payload.

TTC yields a valuable but different package: it binds an earlier payload timestamp into a subsequently signed COSE object, which is exactly what RFC 9921’s transparency and notarisation scenario wants — an issuer can preserve a token inside the signed statement before registering the material with an append-only transparency service. But “the payload existed” and “the signature existed” are not interchangeable past-tense claims. The first can be true before the signer acts at all. The second requires the signature bytes themselves to sit inside the TSA’s covered material.

RFC 9921 tells validators to make that distinction out loud. A protected-header payload timestamp is not proof of signature-creation time, and treating it as one can wrongly admit a signature created after key revocation. The mode names are not helpful comments. They select different verification algorithms and license different conclusions.

The header location is a control, not decoration

It feels backwards that the long-term-signature token lives in an unprotected header while the payload-first token is protected. The locations simply follow the construction order.

In CTT, a signature cannot cover a timestamp that did not exist yet. The token is fetched after the COSE signature and attached afterward, so it cannot sit inside that earlier signature’s protected headers. RFC 9921 therefore warns that an attacker can remove or replace the 3161-ctt header. The standard’s answer is not to pretend the header was signed; it is to require an adjacent transport-and-storage integrity control over the whole COSE Signed Message.

That is an operating obligation, not a footnote. A CTT verifier needs a record not only of the signature and token validation but of the carrier that preserved their association. Systems should be able to name the artifact hash, the storage or transport protection, the mode, the TSA certificate and policy, the exact signature-field bytes used for the imprint, and the decision that consumed the result. A dashboard that prints “timestamp valid” after silently dropping an unprotected CTT header has lost the very evidence it claims to summarise.

In TTC, the token appears before the COSE signature and is therefore protected by it, so a later party cannot swap the token without breaking the COSE signature. That does not reverse time. Protected placement tells a verifier the signer covered the token; it does not tell the verifier the signer had signed before the TSA issued it.

The difference bites hardest where an organisation makes expensive historical claims. “This payload existed by this time” may be exactly what a provenance, disclosure or transparency workflow needs. “This signature existed while this certificate was valid” is a different claim, with a different construction and a different revocation test. Neither one proves the issuer had authority to sign, that a log actually included the statement, that a recipient received it, or that an operational action ever happened.

A timestamp needs a decision chain, not a checkbox

RFC 3161 is already blunt that a TSA stamps a hash representation rather than inspecting and endorsing the meaning of the datum. A client must check the response status, TSA identity and certificate, requested data imprint, hash algorithm, timeliness evidence, certificate status and policy acceptability. The TSA’s genTime is when it made its token; accuracy, precision, latency and the chosen TSA policy constrain how that time should be read.

RFC 9921 adds the COSE-specific step: the receiver must recompute the embedded token’s MessageImprint over exactly the payload, signature or signatures field the selected mode specifies. “We found a valid token nearby” is not a verification result. The decisive question is: what exact byte sequence did the TSA token cover, and what conclusion is this relying party licensed to draw from that coverage?

For CTT the chain runs: identify 3161-ctt; validate the COSE signature; validate the TSA token and policy; hash the prescribed encoded signature field; compare it to the token’s imprint; protect the assembled object during carriage and retention; then apply a documented historical-certificate policy. The conclusion — subject to those validations and time assumptions — is that the signature was already present by the TSA time.

For TTC the chain diverges: identify 3161-ttc; validate the token; hash the payload bytes exactly; validate the later COSE signature over the protected header and payload; then record that the payload had the timestamped prior existence. Where a transparency service is involved, validate log inclusion and consistency separately, establish whose statement was registered, test revocation chronology, and apply the relying party’s own policy. A time token cannot smuggle those independent facts into existence.

Lu Heng’s running-code principle earns its keep here, because a policy document can name every one of these checks while the deployed validator only verifies CMS. The real control surface is the executable path that chooses CTT or TTC, recomputes the right bytes, fetches the right status evidence, applies a versioned time policy and records the decision. His reality-layer distinction keeps four statements apart: a COSE object parsed; a token verified; a policy accepted a bounded time claim; an accountable system acted. None of them is a decorative synonym for another.

A timestamp is not a verdict — it is one bounded fact, and somebody has to own what the system did with it.

Sources