CryptoSys API Library Manual

MAC_Final

Returns the final message digest value from the MAC context.

VBA/VB6 Syntax

Public Declare Function MAC_Final Lib "diCryptoSys.dll" (ByRef lpOutput As Byte, ByVal nOutLen As Long, ByVal hContext As Long) As Long

nRet = MAC_Final(lpOutput(0), nOutLen, hContext)

C/C++ Syntax

long __stdcall MAC_Final(unsigned char *lpOutput, long nOutLen, long hContext);

Parameters

lpOutput
[out] array to receive message digest.
nOutLen
[in] length in bytes of the output array.
hContext
[in] handle to the current MAC context.

Returns (VBA/C)

If successful, the return value is the number of bytes in the output array; otherwise it returns a negative error code.

VBA Wrapper Syntax

Public Function macFinal(hContext As Long) As Byte()

.NET Equivalent

Mac.Final Method

C++ (STL) Equivalent

bvec_t crsysapi::Mac::Final ()

Remarks

Computes the result of all MAC_AddBytes calls since MAC_Init. Once called, the context is destroyed.

Example

See MAC_AddBytes.

See Also

MAC_Init MAC_AddBytes

[Contents] [Index]

[PREV: MAC_CodeLength...]   [Contents]   [Index]   
   [NEXT: MAC_HexFromBytes...]

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