[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TimeStamp.HashDelegate

TimeStamp.HashDelegate Delegate

Represents a delegate used to calculate the hash over data. The data can be represented by an array of bytes or by a Stream.

Outputs the hash value and the hash algorithm OID.

Namespace: GrapeCity.Documents.Pdf
Assembly: DS.Documents.Pdf.dll
Syntax
public delegate void TimeStamp.HashDelegate(byte[] dataToHash, Stream streamToHash, out byte[] hash, out OID hashAlgorithmOid)
Public Delegate Sub TimeStamp.HashDelegate(dataToHash As Byte(), streamToHash As Stream, hash As Byte(), hashAlgorithmOid As OID)
Parameters
Type Name Description
byte[] dataToHash

The byte array containing the data. If null, streamToHash will be used.

Stream streamToHash

The stream containing the data. If null, dataToHash will be used.

byte[] hash

OUT: The data hash value.

OID hashAlgorithmOid

OUT: The hash algorithm OID.