Start authenticated decryption (in incremental mode).
Public Declare Function AEAD_StartDecrypt Lib "diCryptoSys.dll" (ByVal hContext As Long, ByRef lpTagToCheck As Byte, ByVal nTagLen As Long) As Long
nRet = AEAD_StartDecrypt(hContext, abTagToCheck(0), nTagLen)
long __stdcall AEAD_StartDecrypt(long hContext, const unsigned char *lpTagToCheck, long nTagLen);
AEAD_InitKey
.If successful, the return value is zero; otherwise it returns a nonnegative error code.
May be followed by zero or more calls to AEAD_Update
to decrypt data in chunks.
Must eventually be followed by
AEAD_FinishDecrypt
.
Returns MISUSE_ERROR
if called out of sequence.
Caution: do not trust decrypted data until final authentication.
See the example in AEAD_InitKey
.