T
- the parameters type for the output cipher.public interface OutputCipher<T extends Parameters>
Modifier and Type | Method and Description |
---|---|
int |
getMaxOutputSize(int inputLen)
Return the size of the output buffer required for a write() plus a
close() with the write() being passed inputLen bytes.
|
T |
getParameters()
Return the parameters for this cipher.
|
int |
getUpdateOutputSize(int inputLen)
Return the size of the output buffer required for a write() with the write() being
passed inputLen bytes and just updating the cipher output.
|
T getParameters()
int getMaxOutputSize(int inputLen)
The returned size may be dependent on the initialisation of this cipher and may not be accurate once subsequent input data is processed as the cipher may add, add or remove padding, as it sees fit.
inputLen
- the length of the input.int getUpdateOutputSize(int inputLen)
The returned size may be dependent on the state of this cipher.
inputLen
- the length of the input.