Initialises the SHA-3 context ready for subsequent calls with
SHA3_AddString
, SHA3_AddBytes
, and SHA3_HexDigest
.
Public Declare Function SHA3_Init Lib "diCryptoSys.dll"
(ByVal nHashBitLen As Long) As Long
Dim hContext As Long
hContext = SHA3_Init(nHashBitLen)
long _stdcall SHA3_Init(long nHashBitLen);
Non-zero handle of the SHA-3 context hContext. Returns zero if an error occurs.
It is important to check for a zero context handle and stop if one occurs. An error can occur, for example, if an invalid value for nHashBitLen is passed.
See SHA3_HexDigest
SHA3_AddString
SHA3_AddBytes
SHA3_HexDigest