Carries out the GCM encryption operation using the key set up by an earlier call to
Gcm.InitKey.
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic byte[] NextEncrypt(
out byte[] tag,
byte[] input,
byte[] iv,
byte[] aad
)
Public Function NextEncrypt (
<OutAttribute> ByRef tag As Byte(),
input As Byte(),
iv As Byte(),
aad As Byte()
) As Byte()
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
ByteEncrypted ciphertext in byte array, or empty array on error
See Also