[]
        
(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: GcDocs.Pdf.dll
Syntax
public delegate void TimeStamp.HashDelegate(byte[] dataToHash, Stream streamToHash, out byte[] hash, out OID hashAlgorithmOid)
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.

Constructors

Name Description
HashDelegate(object, IntPtr)

Methods

Name Description
BeginInvoke(byte[], Stream, out byte[], out OID, AsyncCallback, object)
EndInvoke(out byte[], out OID, IAsyncResult)
Invoke(byte[], Stream, out byte[], out OID)