LoadEncHash

Declaration

Delphi

function LoadEncHash(const HashKey: PAnsiChar): Integer; stdcall;

ActiveX

HRESULT _stdcall LoadEncHash([in] BSTR HashKey, [out, retval] long* Value);

Description

This function loads, decrypts and checks the hash sum of a document, allowing to determine whether the document has been modified since sealing or not.

Parameters

ParametersDescription
HashKeyPath to the public key file, which has to be used to decrypt the stored hash sum


Return values

Return valuesDescription
0Success
1Error
2Wrong hash version (may happen when the document was sealed with a newer software version than the current one)
3Wrong key ID (Public and private keys used for encryption and decryption must match each other by ID)