Add a chunk of additional authenticated data (in incremental mode).
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)
long __stdcall AEAD_AddAAD(long hContext, const unsigned char *lpAAD, long nAadLen);
AEAD_InitKey
.If successful, the return value is zero; otherwise it returns a nonnegative error code.
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.
See the example in AEAD_InitKey
.