Skip to content

Commit

Permalink
Merge pull request #40 from ietf-scitt/artart-36
Browse files Browse the repository at this point in the history
slight reflow of §3.1
  • Loading branch information
henkbirkholz authored Jan 9, 2025
2 parents 48121c6 + d3c0361 commit f2d4571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions draft-birkholz-cose-tsa-tst-header-parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ To minimize dependencies, the hash algorithm used for signing the COSE message S

The `3161-ctt` COSE _unprotected_ header parameter MUST be used for the mode described in {{sec-cose-then-timestamp}}.

The MessageImprint sent in the request to the TSA MUST be:
The `3161-ctt` unprotected header parameter contains a DER-encoded RFC3161 TimeStampToken wrapped in a CBOR byte string (Major type 2).

The message imprint sent in the request to the TSA MUST be either:

* the hash of the signature field of the `COSE_Sign1` message, or
* the hash of the signatures field of the `COSE_Sign` message.

In either case, to minimize dependencies, the hash algorithm SHOULD be the same as the algorithm used for signing the COSE message.
This may not be possible if the timestamp token has been obtained outside the processing context in which the COSE object is assembled.

The `3161-ctt` unprotected header parameter contains a DER-encoded RFC3161 TimeStampToken wrapped in a CBOR byte string (Major type 2).

# Timestamp Processing

RFC 3161 timestamp tokens use CMS as signature envelope format.
Expand Down

0 comments on commit f2d4571

Please sign in to comment.