CryptoSys API Library Manual

CIPHER_StreamUpdate

Encrypts input using current CIPHERSTREAM context

VBA/VB6 Syntax

Public Declare Function CIPHER_StreamUpdate Lib "diCryptoSys.dll" (ByVal hContext As Long, ByRef lpOutput As Byte, ByRef lpData As Byte, ByVal nDataLen As Long) As Long

nRet = CIPHER_StreamUpdate(hContext, lpOutput(0), abData(0), nDataLen)

C/C++ Syntax

long __stdcall CIPHER_StreamUpdate(long hContext, unsigned char *lpOutput, unsigned char *lpData, long nDataLen);

Parameters

hContext
[in] containing the handle to the CIPHERSTREAM context.
lpOutput
[out] array of sufficient length to receive the output (at least as long as the input).
lpData
[in] array containing the input data.
nDataLen
[in] specifying the length of the input data in bytes.

Returns (VBA/C)

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

.NET Equivalent

CipherStream.Update Method

Remarks

Only one CIPERSTREAM context can be active at one time in any thread.

Example

See the example in CIPHER_StreamInit.

See Also

CIPHER_StreamInit CIPHER_StreamFinal

[Contents] [Index]

[PREV: CIPHER_StreamInit...]   [Contents]   [Index]   
   [NEXT: CIPHER_Update...]

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