CryptoSys API Library Manual

SHA2_Init

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

VB6/VBA Syntax

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

Dim hContext As Long
hContext = SHA2_Init()

Parameters

None.

C/C++ Syntax

long _stdcall SHA2_Init(void);

Returns (VB6/C)

Long: 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]

[HOME]   [NEXT: SHA2_Reset...]

Copyright © 2001-11 D.I. Management Services Pty Ltd. All rights reserved.