CryptoSys API Library Manual

SHA3_LengthInBytes

Returns the number of bytes in the hash output for the algorithm defined in the current SHA-3 context.

VBA/VB6 Syntax

Public Declare Function SHA3_LengthInBytes Lib "diCryptoSys.dll" (ByVal hContext As Long) As Long

nLen = SHA3_LengthInBytes(hContext)

C/C++ Syntax

long _stdcall SHA3_LengthInBytes(long hContext);

Parameters

hContext
[in] handle to the current SHA-3 context.

Returns (VBA/C)

the number of bytes in the hash output for the algorithm defined in the current SHA-3 context, or a negative error code.

.NET Equivalent

Sha3.LengthInBytes Property

Remarks

Example

Dim h As Long
Dim nLen As Long
h = SHA3_Init(256)
nLen = SHA3_LengthInBytes(h)
Debug.Print "SHA3_LengthInBytes = " & nLen
SHA3_LengthInBytes = 32

[Contents] [Index]

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

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