Javax.Crypto.Cipher.UpdateAAD Method
Continues a multi-part transformation (encryption or decryption) with Authenticated Additional Data (AAD).

Syntax

[Android.Runtime.Register("updateAAD", "([BII)V", "")]
public void UpdateAAD (byte[] p0, int p1, int p2)

Parameters

input
bytes of AAD to use with the cipher
inputOffset
offset within bytes of additional data to add to cipher
inputLen
length of bytes of additional data to add to cipher

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif this cipher instance is not initialized for encryption or decryption.
Java.Lang.IllegalArgumentExceptionif input is null, or if inputOffset and inputLen do not specify a valid chunk in the input buffer.
Java.Lang.UnsupportedOperationExceptionif the cipher does not support AEAD

Remarks

Continues a multi-part transformation (encryption or decryption) with Authenticated Additional Data (AAD). AAD may only be added after the Cipher is initialized and before any data is passed to the instance.

This is only usable with cipher modes that support Authenticated Encryption with Additional Data (AEAD) such as Galois/Counter Mode (GCM).

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1