CryptoSys API Library Manual

SHA1_Reset

Resets the context.

VBA/VB6 Syntax

Public Declare Function SHA1_Reset Lib "diCryptoSys.dll" (ByVal hContext As Long) As Long

nRet = SHA1_Reset(hContext)

C/C++ Syntax

long __stdcall SHA1_Reset(long hContext);

Parameters

hContext
[in] handle to the SHA-1 context.

Returns (VBA/C)

If successful, the return value is 0; otherwise it returns a non-zero error code.

.NET Equivalent

Sha1.Reset Method

Remarks

Destroys the existing context. The results of any part-messages added to the context will be lost.

Example

This trivial example creates a context handle and then destroys it.

    Dim nRet As Long
    Dim hContext As Long

    hContext = SHA1_Init()
    nRet = SHA1_Reset(hContext)

See Also

SHA1_Init SHA1_AddString SHA1_AddBytes SHA1_HexDigest

[Contents] [Index]

[PREV: SHA1_Init...]   [Contents]   [Index]   
   [NEXT: SHA1_StringHexHash...]

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