Initialises the SHA-256 context ready for subsequent calls with
SHA2_AddString
, SHA2_AddBytes
, and SHA2_HexDigest
.
Public Declare Function SHA2_Init Lib "diCryptoSys.dll"
() As Long
Dim hContext As Long
hContext = SHA2_Init()
long __stdcall SHA2_Init(void);
None.
non-zero handle of the SHA-256 context hContext. Returns zero if an error occurs.
It is important to check for a zero context handle and stop if one occurs.
See SHA2_HexDigest
SHA2_AddString
SHA2_AddBytes
SHA2_HexDigest
SHA2_Reset