CryptoSys API Library Manual

SHA2_Init

Initialises the SHA-256 context ready for subsequent calls with SHA2_AddString, SHA2_AddBytes, and SHA2_HexDigest.

VBA/VB6 Syntax

Public Declare Function SHA2_Init Lib "diCryptoSys.dll" () As Long

Dim hContext As Long
hContext = SHA2_Init()

C/C++ Syntax

long __stdcall SHA2_Init(void);

Parameters

None.

Returns (VBA/C)

non-zero handle of the SHA-256 context hContext. Returns zero if an error occurs.

.NET Equivalent

Sha256.Init Method

Remarks

It is important to check for a zero context handle and stop if one occurs.

Example

See SHA2_HexDigest

See Also

SHA2_AddString SHA2_AddBytes SHA2_HexDigest SHA2_Reset

[Contents] [Index]

[PREV: SHA2_HmacHex...]   [Contents]   [Index]   
   [NEXT: SHA2_Reset...]

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