Continues a multi-part update of the Additional Authentication Data (AAD).
Calls to this method provide AAD to the cipher when operating in
modes such as AEAD (GCM/CCM). If this cipher is operating in
either GCM or CCM mode, all AAD must be supplied before beginning
operations on the ciphertext (via the update and
doFinal methods).
All src.remaining() bytes starting at
src.position() are processed.
Upon return, the input buffer's position will be equal
to its limit; its limit will not have changed.
src | the buffer containing the AAD |
IllegalStateException | if this cipher is in a wrong state
(e.g., has not been initialized), does not accept AAD, or if
operating in either GCM or CCM mode and one of the update
methods has already been called for the active
encryption/decryption operation | |
UnsupportedOperationException | if this method has not been overridden by an implementation |
Diagram: Cipher