CryptoSys API Library Manual

SHA1_Init

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

VBA/VB6 Syntax

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

Dim hContext As Long
hContext = SHA1_Init()

C/C++ Syntax

long __stdcall SHA1_Init(void);

Parameters

None.

Returns (VBA/C)

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]

[PREV: SHA1_HmacHex...]   [Contents]   [Index]   
   [NEXT: SHA1_Reset...]

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