CryptoSys API Library Manual

HASH_Final

Returns the final message digest value from the HASH context.

VBA/VB6 Syntax

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

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

C/C++ Syntax

long __stdcall HASH_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 HASH 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 hashFinal(hContext As Long) As Byte()

.NET Equivalent

Hash.Final Method

C++ (STL) Equivalent

bvec_t crsysapi::Hash::Final ()

Remarks

Computes the result of all HASH_AddBytes calls since HASH_Init. Once called, the context is destroyed.

Example

See HASH_AddBytes.

See Also

HASH_Init HASH_AddBytes

[Contents] [Index]

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

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