Partager via


CipherSpi.EngineGetOutputSize(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("engineGetOutputSize", "(I)I", "GetEngineGetOutputSize_IHandler")]
protected abstract int EngineGetOutputSize (int inputLen);
[<Android.Runtime.Register("engineGetOutputSize", "(I)I", "GetEngineGetOutputSize_IHandler")>]
abstract member EngineGetOutputSize : int -> int

Parameters

inputLen
Int32

the input length (in bytes)

Returns

the required output buffer size (in bytes)

Attributes

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.CipherSpi.engineGetOutputSize(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