SetFinalDocumentHash

Declaration

Delphi

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

C/C++

SOPAD_API BOOL SOPAD_SetFinalDocumentHash(PBYTE pHash, int nSize);

ActiveX

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

Description

Function sends final document hash to signature device making it possible to retrieve signed document hash after successful execution.


If you want to use emulation mode then you should call

  • Enables emulation  for older devices :
    • SetDriverOptions1Flag (0x80, true);
  • Use emulation even for devices that support internal encryption (naturaSignV3, ColourPad, Mobile, FlawLess, Comfort)
    • SetDriverOptions1Flag (DRIVER_OPTION1_DIGITAL_SIGNATURE_EMULATION_FOR_NEW_DEVICES = 0x800, true);


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.