CryptoSys API Library Manual

SHA1_Init

SHA1_Init initialises the SHA-1 context ready for subsequent calls with SHA1_AddString, SHA1_AddBytes, and SHA1_HexDigest.

VB6/VBA Syntax

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

Dim hContext As Long
hContext = SHA1_Init()

Parameters

None.

C/C++ Syntax

long _stdcall SHA1_Init(void);

Returns (VB6/C)

Long: non-zero handle of the SHA-1 context hContext. Returns zero if an error occurs.

.NET Equivalent

Sha1.Init Method

Remarks

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

Example

See SHA1_HexDigest

See Also

SHA1_AddString SHA1_AddBytes SHA1_HexDigest SHA1_Reset

[Contents] [Index]

[HOME]   [NEXT: SHA1_Reset...]

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