Click or drag to resize

GcmNextEncrypt Method

Carries out the GCM encryption operation using the key set up by an earlier call to Gcm.InitKey.

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public byte[] NextEncrypt(
	out byte[] tag,
	byte[] input,
	byte[] iv,
	byte[] aad
)

Parameters

tag  Byte
Tag value, always returned exactly 16 bytes long. You may truncate as desired.
input  Byte
Plain text input data
iv  Byte
Initialization vector: can be any length but 12 bytes is recommended.
aad  Byte
Additional authentication data (optional). Pass null/Nothing to ignore.

Return Value

Byte
Encrypted ciphertext in byte array, or empty array on error
See Also