in src/main/java/org/apache/commons/crypto/cipher/OpenSslCipher.java [273:289]
public void updateAAD(final ByteBuffer aad) throws IllegalArgumentException,
IllegalStateException, UnsupportedOperationException {
if (aad == null) {
throw new IllegalArgumentException("aad buffer is null");
}
if (!initialized) {
throw new IllegalStateException("Cipher not initialized");
}
final int aadLen = aad.limit() - aad.position();
if (aadLen == 0) {
return;
}
final byte[] aadBytes = new byte[aadLen];
aad.get(aadBytes);
openSslEngine.updateAAD(aadBytes);
}