Initialises the HASH context ready for subsequent calls with
HASH_AddBytes
and HASH_Final
.
Public Declare Function HASH_Init Lib "diCryptoSys.dll" (ByVal nAlg As Long) As Long
Dim hContext As Long
hContext = HASH_Init(nAlg)
long _stdcall HASH_Init(long nAlg);
Non-zero handle of the HASH context, or zero if an error occurs.
bool crsysapi::Hash::Init (Alg alg)
Only the SHA-1, SHA-2 and SHA-3 families of hash algorithms are supported.
While the context handle is valid, add data to be digested in blocks of any length using HASH_AddBytes
.
VBA users can use the wrapper functions hashAddBytes
and hashAddString
.
See HASH_AddBytes
.