Finishes the authenticated encryption (in incremental mode) .
Public Declare Function AEAD_FinishEncrypt Lib "diCryptoSys.dll" (ByVal hContext As Long, ByRef lpTagOut As Byte, ByVal nTagLen As Long) As Long
nRet = AEAD_FinishEncrypt(hContext, abTagOut(0), nTagLen)
long __stdcall AEAD_FinishEncrypt(long hContext, unsigned char *lpTagOut, long nTagLen);
AEAD_InitKey
.If successful, the return value is zero; otherwise it returns a nonnegative error code.
Must be preceded by
AEAD_StartEncrypt
and zero or more calls to AEAD_Update
.
May be followed by
AEAD_SetNonce
to begin processing another packet with the same key and algorithm;
otherwise should be followed by
AEAD_Destroy
.
Returns MISUSE_ERROR
if called out of sequence.
See the example in AEAD_InitKey
.