Freigeben über


Cipher.GetOutputSize(Int32) Method

Definition

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).

[Android.Runtime.Register("getOutputSize", "(I)I", "")]
public int GetOutputSize (int inputLen);
[<Android.Runtime.Register("getOutputSize", "(I)I", "")>]
member this.GetOutputSize : int -> int

Parameters

inputLen
Int32

the input length (in bytes)

Returns

the required output buffer size (in bytes)

Attributes

Exceptions

if this cipher instance is in an invalid state.

Remarks

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.

Java documentation for javax.crypto.Cipher.getOutputSize(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to