Top Description Methods
org.bouncycastle.crypto

public Interface OutputCipher<T extends Parameters>

Known Direct Subinterfaces
org.bouncycastle.crypto.OutputDecryptor, org.bouncycastle.crypto.OutputEncryptor
Type Parameters
<T>
the parameters type for the output cipher.

Base interface for a cipher which produces encrypted/decrypted output.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the space required to accommodate a call to processBytes and doFinal with inputLen bytes of input.
getMaxOutputSize
(int
the length of the input.
inputLen
)

Return the size of the output buffer required for a write() plus a close() with the write() being passed inputLen bytes.

public T

Returns:

the cipher's parameters.
getParameters
()

Return the parameters for this cipher.

public int

Returns:

the space required to accommodate a call to processBytes with inputLen bytes of input.
getUpdateOutputSize
(int
the length of the input.
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.

Method Detail

getMaxOutputSizeback to summary
public 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.

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.

Parameters
inputLen:int

the length of the input.

Returns:int

the space required to accommodate a call to processBytes and doFinal with inputLen bytes of input.

getParametersback to summary
public T getParameters()

Return the parameters for this cipher.

Returns:T

the cipher's parameters.

getUpdateOutputSizeback to summary
public 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.

The returned size may be dependent on the state of this cipher.

Parameters
inputLen:int

the length of the input.

Returns:int

the space required to accommodate a call to processBytes with inputLen bytes of input.