CryptoSys API Library Manual

GCM_NextDecrypt

GCM_NextDecrypt carries out the GCM authenticated decryption operation using the key set up by an earlier call to GCM_InitKey.

VB6/VBA Syntax

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)

Parameters

abOutput
[out] Byte array of sufficient length to receive the ciphertext output.
nOutLen
[in] Long specifying the required length of the output in bytes.
abData
[in] Byte array containing the input data.
nDataLen
[in] Long equal to length of the input data in bytes.
abIV
[in] Byte containing the initialization vector (IV).
nIvLen
[in] Long equal to length of the IV in bytes.
abAAD
[in] Byte array containing the Additional Authenticated Data (AAD).
nAadLen
[in] Long equal to length of the AAD in bytes.
abTag
[in] Byte array containing the tag.
nTagLen
[in] Long equal to the length of the tag in bytes.

C/C++ Syntax

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);

Returns (VB6/C)

Long: If successful, the return value is 0; otherwise it returns a non-zero error code.

.NET Equivalent

Gcm.NextDecrypt Method

Remarks

See the remarks for GCM_Decrypt and the Security considerations for GCM.

Example

See Also

GCM_InitKey GCM_NextDecrypt

[Contents] [Index]

[HOME]   [NEXT: GCM_NextEncrypt...]

Copyright © 2001-9 D.I. Management Services Pty Ltd. All rights reserved.