Android Guides | Samples

Javax.Crypto.Cipher.GetOutputSize Method

Returns the length in bytes an output buffer needs to be when this cipher is updated with inputLen bytes.

Syntax

[Android.Runtime.Register("getOutputSize", "(I)I", "")]
public Int32 GetOutputSize (Int32 inputLen)

Parameters

inputLen
the number of bytes of the input.

Exceptions

TypeReason
IllegalStateExceptionif this cipher instance is in an invalid state.

Remarks

Returns the length in bytes an output buffer needs to be when this cipher is updated with inputLen bytes.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1