CryptoSys API Library Manual

Gcm.NextEncrypt Method

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

Syntax

[C#]
public byte[] NextEncrypt(
	out byte[] tag,
	byte[] input,
	byte[] iv,
	byte[] aad
)
[VB.NET]
Public Function NextEncrypt ( _
	<OutAttribute> ByRef tag As Byte(), _
	input As Byte(), _
	iv As Byte(), _
	aad As Byte() _
) As Byte()

Parameters

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

Return Value

Encrypted ciphertext in byte array, or empty array on error

See Also

VB6/C equivalent: GCM_NextEncrypt

[Contents] [Index]

[PREV: Gcm.NextDecrypt Method...]   [Contents]   [Index]   
   [NEXT: Gcm.NextGmac Method...]

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