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

Syntax

[Android.Runtime.Register("updateAAD", "(Ljava/nio/ByteBuffer;)V", "")]
public void UpdateAAD (Java.Nio.ByteBuffer p0)

Parameters

input
buffer of AAD to be used

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif this cipher instance is not initialized for encryption or decryption.
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