CryptoSys API Library Manual

SHA3_Init

Initialises the SHA-3 context ready for subsequent calls with SHA3_AddString, SHA3_AddBytes, and SHA3_HexDigest.

VBA/VB6 Syntax

Public Declare Function SHA3_Init Lib "diCryptoSys.dll" (ByVal nHashBitLen As Long) As Long

Dim hContext As Long
hContext = SHA3_Init(nHashBitLen)

C/C++ Syntax

long _stdcall SHA3_Init(long nHashBitLen);

Parameters

nHashBitLen
[in] specifying the number of bits in the hash output. This must be one of 224, 256, 384 or 512.

Returns (VBA/C)

Non-zero handle of the SHA-3 context hContext. Returns zero if an error occurs.

.NET Equivalent

Sha3.Init Method

Remarks

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.

Example

See SHA3_HexDigest

See Also

SHA3_AddString SHA3_AddBytes SHA3_HexDigest

[Contents] [Index]

[PREV: SHA3_HexDigest...]   [Contents]   [Index]   
   [NEXT: SHA3_LengthInBytes...]

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