buildTimestampRequestForData method

TimestampRequest buildTimestampRequestForData(
  1. Uint8List data, {
  2. String hashAlgorithm = 'SHA256',
  3. String? policyOid,
  4. bool requestCertificate = true,
})

Convenience for the common case: hash data, ask the TSA and return the request to post.

Implementation

TimestampRequest buildTimestampRequestForData(
  Uint8List data, {
  String hashAlgorithm = 'SHA256',
  String? policyOid,
  bool requestCertificate = true,
}) =>
    buildTimestampRequest(
      hash: _digest(data, hashAlgorithm),
      hashAlgorithm: hashAlgorithm,
      policyOid: policyOid,
      requestCertificate: requestCertificate,
    );