Group: Cryptography Reference - Library: advapi32
Retrieves data that governs the operations of a hash object. The actual hash value can be retrieved by using this function.
How to create MD-5 and SHA-1 hash values from a string
BOOL WINAPI CryptGetHashParam(
HCRYPTHASH hHash,
DWORD dwParam,
BYTE* pbData,
DWORD* pdwDataLen,
DWORD dwFlags
); DECLARE INTEGER CryptGetHashParam IN advapi32;
INTEGER hHash,;
LONG dwParam,;
STRING @ pbData,;
LONG @ pdwDataLen,;
LONG dwFlags hHash [in] Handle of the hash object to be queried.
dwParam [in] Query type.
pbData [out] Pointer to a buffer that receives the specified value data.
pdwDataLen [in, out] Pointer to a DWORD value specifying the size, in bytes, of the pbData buffer.
dwFlags [in] Reserved for future use and must be zero.
If the function succeeds, the return value is TRUE.
Parameter pbData can be NULL to determine the memory size required.
Home