Returns the final message digest value as a hex string.
Public Declare Function SHA3_HexDigest Lib "diCryptoSys.dll"
(ByVal strOutput As String, ByVal nMaxChars As Long, ByVal hContext As Long) As Long
nRet = SHA3_HexDigest(strDigest, nMaxChars, hContext)
long _stdcall SHA3_HexDigest(char *szOutput, long nMaxChars, long hContext);
If successful, the return value is the number of characters in the output string; otherwise it returns a negative error code.
This operation delivers the result of Add operations since the Init operation.
The handle to the context hContext must have been set up with a
prior call to SHA3_Init
.
The final digest value will be truncated to the specified length if nMaxChars is less than the required digest size.
Note that this digest operation is a destructive, read-once operation.
Once it has been performed, the context must be initialized before being used to calculate another digest value.
See SHA3_AddString
and
SHA3_AddBytes
SHA3_Init
SHA3_AddString
SHA3_AddBytes