CryptoSys API Library Manual

GCM_NextDecrypt

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

VBA/VB6 Syntax

Public Declare Function GCM_NextDecrypt Lib "diCryptoSys.dll" (ByVal hContext As Long, ByRef lpOutput As Byte, ByVal nOutLen As Long, ByRef lpData As Byte, ByVal nDataLen As Long, ByRef lpIV As Byte, ByVal nIvLen As Long, ByRef lpAAD As Byte, ByVal nAadLen As Long, ByRef lpTag As Byte, ByVal nTagLen As Long) As Long

nRet = GCM_NextDecrypt(hContext, lpOutput(0), nOutLen, abData(0), nDataLen, abIV(0), nIvLen, abAAD(0), nAadLen, abTag(0), nTagLen)

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

Parameters

hContext
[in] handle to the GCM context set up by an earlier call to GCM_InitKey.
lpOutput
[out] array of sufficient length to receive the ciphertext output.
nOutLen
[in] specifying the required length of the output in bytes.
lpData
[in] array containing the input data.
nDataLen
[in] equal to length of the input data in bytes.
lpIV
[in] containing the initialization vector (IV).
nIvLen
[in] equal to length of the IV in bytes.
lpAAD
[in] array containing the Additional Authenticated Data (AAD).
nAadLen
[in] equal to length of the AAD in bytes.
lpTag
[in] array containing the tag.
nTagLen
[in] equal to the length of the tag in bytes.

Returns (VBA/C)

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 AEAD encryption.

Example

See Also

GCM_InitKey GCM_NextDecrypt

[Contents] [Index]

[PREV: GCM_InitKey...]   [Contents]   [Index]   
   [NEXT: GCM_NextEncrypt...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.