CryptoSys API Library Manual
aeadAddAAD
Add a chunk of additional authenticated data (in incremental mode).
Syntax
[VBA]
Public Function aeadAddAAD ( _
hContext As Long, _
lpAAD() As Byte _
) As Long
Parameters
- hContext
- Handle to the AEAD context set up by an earlier call to aeadInitKey.
- lpAAD
- Chunk of Additional Authenticated Data (AAD) to add.
Return Value
Long: Zero (0) on success, or a nonzero error code (use
apiErrorLookup to check).
Remarks
May be repeated to add additional data in chunks.
Must eventually be followed by either
aeadStartEncrypt or
aeadStartDecrypt.
Returns
MISUSE_ERROR
if called out of sequence.