CRYPT_TIMESTAMP_INFO structure (wincrypt.h)

The CRYPT_TIMESTAMP_INFO structure contains a signed data content type in Cryptographic Message Syntax (CMS) format.

Syntax

typedef struct _CRYPT_TIMESTAMP_INFO {
  DWORD                      dwVersion;
  LPSTR                      pszTSAPolicyId;
  CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm;
  CRYPT_DER_BLOB             HashedMessage;
  CRYPT_INTEGER_BLOB         SerialNumber;
  FILETIME                   ftTime;
  PCRYPT_TIMESTAMP_ACCURACY  pvAccuracy;
  BOOL                       fOrdering;
  CRYPT_DER_BLOB             Nonce;
  CRYPT_DER_BLOB             Tsa;
  DWORD                      cExtension;
  PCERT_EXTENSION            rgExtension;
} CRYPT_TIMESTAMP_INFO, *PCRYPT_TIMESTAMP_INFO;

Members

dwVersion

A DWORD value that specifies the version of the time stamp request.

Value Meaning
TIMESTAMP_VERSION
1
Specifies that this is a version 1 time stamp request.

pszTSAPolicyId

Optional. A pointer to a null-terminated string that specifies the Time Stamping Authority (TSA) policy under which the time stamp token was provided. This value must correspond with the value passed in the CRYPT_TIMESTAMP_REQUEST structure.

HashAlgorithm

A CRYPT_ALGORITHM_IDENTIFIER structure that contains information about the algorithm used to calculate the hash. This value must correspond with the value passed in the CRYPT_TIMESTAMP_REQUEST structure.

HashedMessage

A CRYPT_DER_BLOB structure that specifies the hash values to be time stamped.

SerialNumber

A CRYPT_INTEGER_BLOB structure that contains the serial number assigned by the TSA to each time stamp token.

ftTime

A FILETIME value that specifies the time at which the time stamp token was produced by the TSA.

pvAccuracy

Optional. A pointer to a CRYPT_TIMESTAMP_ACCURACY structure that contains the time deviation around the UTC time at which the time stamp token was created by the TSA.

fOrdering

This member is reserved.

Nonce

Optional. A CRYPT_DER_BLOB structure that contains the nonce value used by the client to verify the timeliness of the response when no local clock is available. This value must correspond with the value passed in the CRYPT_TIMESTAMP_REQUEST structure.

Tsa

Optional. A CRYPT_DER_BLOB structure that contains the subject name of the TSA certificate.

cExtension

The number of elements in the array pointed to by the rgExtension member.

rgExtension

A pointer to an array of CERT_EXTENSION structures that contain extension information returned from the request.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header wincrypt.h