public final int getOutputSize (int inputLen)

Returns the length in bytes that an output buffer would need to be in order to hold the result of the next update or doFinal operation, given the input length inputLen (in bytes).

This call takes into account any unprocessed (buffered) data from a previous update call, padding, and AEAD tagging.

The actual output length of the next update or doFinal call may be smaller than the length returned by this method.

Parameters:
inputLen    the input length (in bytes)

Returns:  the required output buffer size (in bytes)

Exceptions:
IllegalStateException    if this cipher is in a wrong state (e.g., has not yet been initialized)