SignatureProvider.HashStream Method
Allows a signature provider add-in to create a hash value for the document that you can use to determine if the document contents were tampered with after digital signing.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function HashStream ( _
QueryContinue As Object, _
Stream As Object _
) As Array
'Usage
Dim instance As SignatureProvider
Dim QueryContinue As Object
Dim Stream As Object
Dim returnValue As Array
returnValue = instance.HashStream(QueryContinue, _
Stream)
Array HashStream(
Object QueryContinue,
Object Stream
)
Parameters
QueryContinue
Type: System.ObjectProvides a way to query the host application for permission to continue the hashing process.
Stream
Type: System.ObjectContains the data stream.
Return Value
Type: System.Array
Array
Remarks
The SignatureProvider object is used exclusively in custom signature provider add-ins. This method is called once per signature data stream in a document. The return value is an array of bytes representing the hash value computed using the hash algorithm.