Android Guides | Samples

Javax.Crypto.Cipher.UpdateAAD Method

Continues a multi-part transformation (encryption or decryption) with Authenticated Additional Data (AAD).

Syntax

[Android.Runtime.Register("updateAAD", "([B)V", "")]
public Void UpdateAAD (Byte[] p0)

Parameters

input
bytes of AAD to use with the cipher

Exceptions

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