- Renamed 'GetFileSHA1' function to 'GetFileHash'.
- function prototype changes.
- Added support for SHA512(SHA-2) hash algorithm to both functions (GetFileHash, CheckFileHash).
Code:
const
DCP_MD5 = 1;
DCP_SHA1 = 2;
DCP_SHA256 = 4; // SHA-2
DCP_SHA512 = 8; //SHA-2
Code:
function GetFileHash(const Filename: PAnsichar; const DCP_Hash: integer): PAnsichar; external 'GetFileHash@files:Isab.dll stdcall delayload';