CryptoSys API Library Manual

HASH_DigestLength

Returns the number of bytes in the hash output for the algorithm defined in the current HASH context.

VBA/VB6 Syntax

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

nLen = HASH_DigestLength(hContext)

C/C++ Syntax

long _stdcall HASH_DigestLength(long hContext);

Parameters

hContext
[in] handle to the current HASH context.

Returns (VBA/C)

The number of bytes in the hash output for the algorithm defined in the current HASH context, or a negative error code.

.NET Equivalent

Hash.LengthInBytes Property

Remarks

Example

Dim h As Long
Dim nLen As Long
h = HASH_Init(API_HASH_SHA256)
nLen = HASH_DigestLength(h)
Debug.Print "HASH_DigestLength = " & nLen
HASH_DigestLength = 32

[Contents] [Index]

[PREV: HASH_Bytes...]   [Contents]   [Index]   
   [NEXT: HASH_File...]

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