Cipher.DoFinal Cipher.DoFinal Method

Definition

Overloads

DoFinal() DoFinal()

Finishes a multi-part transformation (encryption or decryption).

DoFinal(Byte[]) DoFinal(Byte[])

Finishes a multi-part transformation (encryption or decryption).

DoFinal(ByteBuffer, ByteBuffer) DoFinal(ByteBuffer, ByteBuffer)

Finishes a multi-part transformation (encryption or decryption).

DoFinal(Byte[], Int32) DoFinal(Byte[], Int32)

Finishes a multi-part transformation (encryption or decryption).

DoFinal(Byte[], Int32, Int32) DoFinal(Byte[], Int32, Int32)

Finishes a multi-part transformation (encryption or decryption).

DoFinal(Byte[], Int32, Int32, Byte[]) DoFinal(Byte[], Int32, Int32, Byte[])

Finishes a multi-part transformation (encryption or decryption).

DoFinal(Byte[], Int32, Int32, Byte[], Int32) DoFinal(Byte[], Int32, Int32, Byte[], Int32)

Finishes a multi-part transformation (encryption or decryption).

DoFinal() DoFinal()

Finishes a multi-part transformation (encryption or decryption).

[Android.Runtime.Register("doFinal", "()[B", "")]
public byte[] DoFinal ();
member this.DoFinal : unit -> byte[]

Returns

Byte[]

Exceptions

if the size of the resulting bytes is not a multiple of the cipher block size.

if the padding of the data does not match the padding scheme.

if this cipher instance is not initialized for encryption or decryption.

Remarks

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.

DoFinal(Byte[]) DoFinal(Byte[])

Finishes a multi-part transformation (encryption or decryption).

[Android.Runtime.Register("doFinal", "([B)[B", "")]
public byte[] DoFinal (byte[] input);
member this.DoFinal : byte[] -> byte[]

Parameters

input
Byte[]

the input buffer.

Returns

Byte[]

Exceptions

if the size of the resulting bytes is not a multiple of the cipher block size.

if the padding of the data does not match the padding scheme.

if this cipher instance is not initialized for encryption or decryption.

Remarks

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.

DoFinal(ByteBuffer, ByteBuffer) DoFinal(ByteBuffer, ByteBuffer)

Finishes a multi-part transformation (encryption or decryption).

[Android.Runtime.Register("doFinal", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I", "")]
public int DoFinal (Java.Nio.ByteBuffer input, Java.Nio.ByteBuffer output);
member this.DoFinal : Java.Nio.ByteBuffer * Java.Nio.ByteBuffer -> int

Parameters

input
ByteBuffer ByteBuffer

the input buffer.

output
ByteBuffer ByteBuffer

the output buffer.

Returns

Exceptions

if the size of the output buffer is too small.

if the size of the resulting bytes is not a multiple of the cipher block size.

if the padding of the data does not match the padding scheme.

if the input buffer and the output buffer are the same object.

if this cipher instance is not initialized for encryption or decryption.

Remarks

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.

DoFinal(Byte[], Int32) DoFinal(Byte[], Int32)

Finishes a multi-part transformation (encryption or decryption).

[Android.Runtime.Register("doFinal", "([BI)I", "")]
public int DoFinal (byte[] output, int outputOffset);
member this.DoFinal : byte[] * int -> int

Parameters

output
Byte[]

the output buffer.

outputOffset
Int32 Int32

the offset in the output buffer.

Returns

Exceptions

if the size of the resulting bytes is not a multiple of the cipher block size.

if the size of the output buffer is too small.

if the padding of the data does not match the padding scheme.

if this cipher instance is not initialized for encryption or decryption.

Remarks

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.

DoFinal(Byte[], Int32, Int32) DoFinal(Byte[], Int32, Int32)

Finishes a multi-part transformation (encryption or decryption).

[Android.Runtime.Register("doFinal", "([BII)[B", "")]
public byte[] DoFinal (byte[] input, int inputOffset, int inputLen);
member this.DoFinal : byte[] * int * int -> byte[]

Parameters

input
Byte[]

the input buffer.

inputOffset
Int32 Int32

the offset in the input buffer.

inputLen
Int32 Int32

the length of the input

Returns

Byte[]

Exceptions

if the size of the resulting bytes is not a multiple of the cipher block size.

if the padding of the data does not match the padding scheme.

if this cipher instance is not initialized for encryption or decryption.

if inputOffset and inputLen do not specify an valid chunk in the input buffer.

Remarks

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.

DoFinal(Byte[], Int32, Int32, Byte[]) DoFinal(Byte[], Int32, Int32, Byte[])

Finishes a multi-part transformation (encryption or decryption).

[Android.Runtime.Register("doFinal", "([BII[B)I", "")]
public int DoFinal (byte[] input, int inputOffset, int inputLen, byte[] output);
member this.DoFinal : byte[] * int * int * byte[] -> int

Parameters

input
Byte[]

the input buffer.

inputOffset
Int32 Int32

the offset in the input buffer.

inputLen
Int32 Int32

the length of the input.

output
Byte[]

the output buffer for the transformed bytes.

Returns

Exceptions

if the size of the output buffer is too small.

if the size of the resulting bytes is not a multiple of the cipher block size.

if the padding of the data does not match the padding scheme.

if this cipher instance is not initialized for encryption or decryption.

if inputOffset and inputLen do not specify an valid chunk in the input buffer.

Remarks

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.

DoFinal(Byte[], Int32, Int32, Byte[], Int32) DoFinal(Byte[], Int32, Int32, Byte[], Int32)

Finishes a multi-part transformation (encryption or decryption).

[Android.Runtime.Register("doFinal", "([BII[BI)I", "")]
public int DoFinal (byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset);
member this.DoFinal : byte[] * int * int * byte[] * int -> int

Parameters

input
Byte[]

the input buffer.

inputOffset
Int32 Int32

the offset in the input buffer.

inputLen
Int32 Int32

the length of the input.

output
Byte[]

the output buffer for the transformed bytes.

outputOffset
Int32 Int32

the offset in the output buffer.

Returns

Exceptions

if the size of the output buffer is too small.

if the size of the resulting bytes is not a multiple of the cipher block size.

if the padding of the data does not match the padding scheme.

if this cipher instance is not initialized for encryption or decryption.

if inputOffset and inputLen do not specify an valid chunk in the input buffer.

Remarks

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