CryptoSys API Library Manual

AEAD_AddAAD

Add a chunk of additional authenticated data (in incremental mode).

VBA/VB6 Syntax

Public Declare Function AEAD_AddAAD Lib "diCryptoSys.dll" (ByVal hContext As Long, ByRef lpAAD As Byte, ByVal nAadLen As Long) As Long

nRet = AEAD_AddAAD(hContext, abAAD(0), nAadLen)

C/C++ Syntax

long __stdcall AEAD_AddAAD(long hContext, const unsigned char *lpAAD, long nAadLen);

Parameters

hContext
[in] handle to the AEAD context set up by an earlier call to AEAD_InitKey.
lpAAD
[in] array containing the chunk of Additional Authenticated Data (AAD) to add.
nAadLen
[in] equal to length of the AAD chunk in bytes.

Returns (VBA/C)

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

.NET Equivalent

Aead.AddAAD Method

Remarks

May be repeated to add additional data in chunks. Must eventually be followed by either AEAD_StartEncrypt or AEAD_StartDecrypt. Returns MISUSE_ERROR if called out of sequence.

Example

See the example in AEAD_InitKey.

[Contents] [Index]

[PREV: List of Functions...]   [Contents]   [Index]   
   [NEXT: AEAD_Decrypt...]

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