CryptoSys API Library Manual

SHA3_HexDigest

Returns the final message digest value as a hex string.

VBA/VB6 Syntax

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)

C/C++ Syntax

long _stdcall SHA3_HexDigest(char *szOutput, long nMaxChars, long hContext);

Parameters

szOutput
[out] buffer to receive the final message digest in hexadecimal format.
nMaxChars
[in] maximum number of hex characters to be received.
hContext
[in] handle to the SHA-3 context.

Returns (VBA/C)

If successful, the return value is the number of characters in the output string; otherwise it returns a negative error code.

.NET Equivalent

Sha3.HexDigest Method

Remarks

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.

Example

See SHA3_AddString and SHA3_AddBytes

See Also

SHA3_Init SHA3_AddString SHA3_AddBytes

[Contents] [Index]

[PREV: SHA3_AddString...]   [Contents]   [Index]   
   [NEXT: SHA3_Init...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.