Returns the number of bytes in the output for the algorithm defined in the current MAC context.
Public Declare Function MAC_CodeLength Lib "diCryptoSys.dll" (ByVal hContext As Long) As Long
nLen = MAC_CodeLength(hContext)
long _stdcall MAC_CodeLength(long hContext);
The number of bytes in the hash output for the algorithm defined in the current MAC context, or a negative error code.
Dim hContext As Long
hContext = MAC_Init(lpKey(0), cnvBytesLen(lpKey), API_HMAC_SHA256)
Debug.Print "MAC_CodeLength = " & MAC_CodeLength(hContext)
MAC_CodeLength = 32