Finishes the authenticated decryption (in incremental mode) .
Public Declare Function AEAD_FinishDecrypt Lib "diCryptoSys.dll" (ByVal hContext As Long) As Long
nRet = AEAD_FinishDecrypt(hContext)
long __stdcall AEAD_FinishDecrypt(long hContext);
AEAD_InitKey
.If successful, the return value is zero; otherwise it returns a nonnegative error code.
Returns the nonzero error code AUTH_FAILED_ERROR
(-40) if the inputs are not authentic.
Must be preceded by
AEAD_StartDecrypt
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
.