SetPreliminaryDocumentHash

Declaration

Delphi

function SetPreliminaryDocumentHash(Hash: Pointer; Size: Byte): Boolean;

C/C++

SOPAD_API BOOL SOPAD_SetPreliminaryDocumentHash(PBYTE pHash, int nSize);

ActiveX

HRESULT SetPreliminaryDocumentHash([in] VARIANT Hash, [out, retval] VARIANT_BOOL* Result);

Description

Function sends preliminary document hash to signature device making it possible to retrieve encrypted AES key after successful execution.

Arguments

Hash

Pointer to binary data block with hash. For ActiveX - single-dimensional array.

Size

Hash size in bytes. Must be equal to 32 bytes.

Return value

True if has has been successfully set, false otherwise.