CryptoSys API Library Manual

MAC_CodeLength

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

VBA/VB6 Syntax

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

nLen = MAC_CodeLength(hContext)

C/C++ Syntax

long _stdcall MAC_CodeLength(long hContext);

Parameters

hContext
[in] handle to the current MAC context.

Returns (VBA/C)

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

.NET Equivalent

Remarks

Example

Dim hContext As Long
hContext = MAC_Init(lpKey(0), cnvBytesLen(lpKey), API_HMAC_SHA256)
Debug.Print "MAC_CodeLength = " & MAC_CodeLength(hContext)
MAC_CodeLength = 32

[Contents] [Index]

[PREV: MAC_Bytes...]   [Contents]   [Index]   
   [NEXT: MAC_Final...]

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