ICipherGetMaxOutputSize Method

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.

Definition

Namespace: Org.BouncyCastle.Crypto
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
int GetMaxOutputSize(
	int inputLen
)

Parameters

inputLen  Int32
The length of the expected input.

Return Value

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

See Also