Continues a multi-part update of the Additional Authentication Data (AAD), using a subset of the provided buffer.
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).
src | the buffer containing the AAD | |
offset | the offset in src where the AAD input starts | |
len | the number of AAD bytes |
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