Cipher dofinal in java

Cipher. Do Final Method

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

DoFinal()

Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.

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

Returns

the new buffer with the result

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.

Applies to

DoFinal(Byte[])

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

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

Parameters

Returns

the new buffer with the result

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.

Applies to

DoFinal(ByteBuffer, ByteBuffer)

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

[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

Returns

the number of bytes stored in output

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.

Applies to

DoFinal(Byte[], Int32)

Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.

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

Parameters

the buffer for the result

the offset in output where the result is stored

Returns

the number of bytes stored in output

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.

Applies to

DoFinal(Byte[], Int32, Int32)

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

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

Parameters

the offset in input where the input starts

Returns

the new buffer with the result

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.

Applies to

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

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

[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

the offset in input where the input starts

the buffer for the result

Returns

the number of bytes stored in output

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

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

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

[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

the offset in input where the input starts

the buffer for the result

the offset in output where the result is stored

Returns

the number of bytes stored in output

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.

Источник

Читайте также:  background-repeat
Оцените статью