[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TimeStamp.HashDelegate

Delegate TimeStamp.HashDelegate

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

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

Outputs the hash value and the hash algorithm OID.

public delegate void TimeStamp.HashDelegate(byte[] dataToHash, Stream streamToHash, out byte[] hash, out OID hashAlgorithmOid)

Parameters

dataToHash byte[]

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

streamToHash System.IO.Stream

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

hash byte[]

OUT: The data hash value.

hashAlgorithmOid OID

OUT: The hash algorithm OID.

Constructors

HashDelegate(object, IntPtr)

public HashDelegate(object @object, IntPtr method)

Parameters

object object
method System.IntPtr

Methods

BeginInvoke(byte[], Stream, out byte[], out OID, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(byte[] dataToHash, Stream streamToHash, out byte[] hash, out OID hashAlgorithmOid, AsyncCallback callback, object @object)

Parameters

dataToHash byte[]
streamToHash System.IO.Stream
hash byte[]
hashAlgorithmOid OID
callback System.AsyncCallback
object object

Returns

System.IAsyncResult

EndInvoke(out byte[], out OID, IAsyncResult)

public virtual void EndInvoke(out byte[] hash, out OID hashAlgorithmOid, IAsyncResult result)

Parameters

hash byte[]
hashAlgorithmOid OID
result System.IAsyncResult

Invoke(byte[], Stream, out byte[], out OID)

public virtual void Invoke(byte[] dataToHash, Stream streamToHash, out byte[] hash, out OID hashAlgorithmOid)

Parameters

dataToHash byte[]
streamToHash System.IO.Stream
hash byte[]
hashAlgorithmOid OID