CryptoSys API Library Manual

Gcm.Decrypt Method

Decrypt input using AES-GCM in one-off operation

Syntax

[C#]
public static byte[] Decrypt(
	byte[] input,
	byte[] key,
	byte[] iv,
	byte[] aad,
	byte[] tag
)
[VB.NET]
Public Shared Function Decrypt ( _
	input As Byte(), _
	key As Byte(), _
	iv As Byte(), _
	aad As Byte(), _
	tag As Byte() _
) As Byte()

Parameters

input
Cipher text input data
key
Key: must be exactly 16, 24 or 32 bytes long.
iv
Initialization vector.
aad
Additional authentication data (optional). Pass null/Nothing to ignore.
tag
Tag value (required)

Return Value

Decrypted plaintext in byte array, or empty array on error

Remarks

Use General.ErrorCode to find the code of the last error.

See Also

VB6/C equivalent: GCM_Decrypt

[Contents] [Index]

[PREV: Des.Update Method (String)...]   [Contents]   [Index]   
   [NEXT: Gcm.Dispose Method...]

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