CryptoSys API Library Manual

AEAD_Update

Encrypts or decrypts a chunk of input (in incremental mode).

VBA/VB6 Syntax

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

nRet = AEAD_Update(hContext, lpOutput(0), nOutLen, abData(0), nDataLen)

C/C++ Syntax

long __stdcall AEAD_Update(long hContext, unsigned char *lpOutput, long nOutLen, const unsigned char *lpData, long nDataLen);

Parameters

hContext
[in] handle to the AEAD context set up by an earlier call to AEAD_InitKey.
lpOutput
[out] byte array of sufficient length to receive the output (at least as long as the input).
nOutLen
[in] specifying the length in bytes of the output array.
lpData
[in] byte array containing the input data.
nDataLen
[in] equal to 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

Aead.Update Method

Remarks

This function may be repeated to add input data in chunks. The input data is encrypted or decrypted depending on the start mode set by a preceding call to AEAD_StartEncrypt or AEAD_StartDecrypt, respectively. It must eventually be followed by either AEAD_FinishEncrypt or AEAD_FinishDecrypt, which must match the start mode. Returns MISUSE_ERROR if called out of sequence.

Example

See the example in AEAD_InitKey.

[Contents] [Index]

[PREV: AEAD_StartEncrypt...]   [Contents]   [Index]   
   [NEXT: AES128_B64Mode...]

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