# Packages
Package timestamptest provides utilities for timestamp testing.
# Functions
NewHTTPTimestamper creates a HTTP-based timestamper with the endpoint provided by the TSA.
NewRequest creates a request based on the given digest and hash algorithm.
NewRequestFromContent creates a request based on the given data and hash algorithm.
ParseSignedToken parses ASN.1 BER-encoded structure to SignedToken without verification.
# Structs
Accuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL }.
MalformedRequestError is used when timestamping request is malformed.
MessageImprint contains the hash of the datum to be time-stamped.
Request is a time-stamping request.
Response is a time-stamping response.
TSTInfo ::= SEQUENCE { version INTEGER { v1(1) }, policy TSAPolicyId, messageImprint MessageImprint, serialNumber INTEGER, genTime GeneralizedTime, accuracy Accuracy OPTIONAL, ordering BOOLEAN DEFAULT FALSE, nonce INTEGER OPTIONAL, tsa [0] GeneralName OPTIONAL, extensions [1] IMPLICIT Extensions OPTIONAL }.
# Interfaces
Timestamper stamps the time.
# Type aliases
SignedToken is a parsed timestamp token with signatures.