GCM_NextDecrypt carries out the GCM authenticated decryption operation using the key
set up by an earlier call to GCM_InitKey.
Public Declare Function GCM_NextDecrypt Lib "diCryptoSys.dll" (ByVal hContext As Long, ByRef abOutput As Byte, ByVal nOutLen As Long,
ByRef abData As Byte, ByVal nDataLen As Long, ByRef abIV As Byte, ByVal nIvLen As Long, ByRef abAAD As Byte, ByVal nAadLen As Long,
ByRef abTag As Byte, ByVal nTagLen As Long) As Long
nRet = GCM_NextDecrypt(hContext, abOutput(0), nOutLen, abData(0), nDataLen,
abIV(0), nIvLen, abAAD(0), nAadLen, abTag(0), nTagLen)
Byte array of sufficient length to receive the ciphertext output.Long specifying the required length of the output in bytes.Byte array containing the input data.Long equal to length of the input data in bytes.Byte containing the initialization vector (IV).Long equal to length of the IV in bytes.Byte array containing the Additional Authenticated Data (AAD).Long equal to length of the AAD in bytes.Byte array containing the tag.Long equal to the length of the tag in bytes.
long _stdcall GCM_NextDecrypt(long hContext, unsigned char *lpOutput, long nOutLen, const unsigned char *lpData, long nDataLen,
const unsigned char *lpIV, long nIvLen, const unsigned char *lpAAD, long nAadLen, const unsigned char *lpTag, long nTagLen);
Long: If successful, the return value is 0;
otherwise it returns a non-zero error code.
See the remarks for GCM_Decrypt and the
Security considerations for GCM.