Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / TimeStamp.HashDelegate Delegate
The byte array containing the data. If a null reference (Nothing in Visual Basic), streamToHash will be used.
The stream containing the data. If a null reference (Nothing in Visual Basic), dataToHash will be used.
OUT: The data hash value.
OUT: The hash algorithm OID.

In This Topic
    TimeStamp.HashDelegate Delegate
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Delegate Sub TimeStamp.HashDelegate( _
       ByVal dataToHash() As System.Byte, _
       ByVal streamToHash As System.IO.Stream, _
       ByRef hash() As System.Byte, _
       ByRef hashAlgorithmOid As OID _
    ) 
    public delegate void TimeStamp.HashDelegate( 
       System.byte[] dataToHash,
       System.IO.Stream streamToHash,
       out System.byte[] hash,
       out OID hashAlgorithmOid
    )

    Parameters

    dataToHash
    The byte array containing the data. If a null reference (Nothing in Visual Basic), streamToHash will be used.
    streamToHash
    The stream containing the data. If a null reference (Nothing in Visual Basic), dataToHash will be used.
    hash
    OUT: The data hash value.
    hashAlgorithmOid
    OUT: The hash algorithm OID.
    See Also