Cipher.Update Cipher.Update Method

Definition

Overloads

Update(Byte[]) Update(Byte[])

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

Update(ByteBuffer, ByteBuffer) Update(ByteBuffer, ByteBuffer)

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

Update(Byte[], Int32, Int32) Update(Byte[], Int32, Int32)

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

Update(Byte[], Int32, Int32, Byte[]) Update(Byte[], Int32, Int32, Byte[])

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

Update(Byte[], Int32, Int32, Byte[], Int32) Update(Byte[], Int32, Int32, Byte[], Int32)

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

Update(Byte[]) Update(Byte[])

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

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

Parameters

input
Byte[]

the input bytes to transform.

Returns

Byte[]

Exceptions

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.

Update(ByteBuffer, ByteBuffer) Update(ByteBuffer, ByteBuffer)

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

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

Parameters

input
ByteBuffer ByteBuffer

the input buffer to transform.

output
ByteBuffer ByteBuffer

the output buffer to store the result within.

Returns

Exceptions

if the size of the output buffer is too small.

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

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

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.

Update(Byte[], Int32, Int32) Update(Byte[], Int32, Int32)

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

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

Parameters

input
Byte[]

the input bytes to transform.

inputOffset
Int32 Int32

the offset in the input to start.

inputLen
Int32 Int32

the length of the input to transform.

Returns

Byte[]

Exceptions

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

if input is null, or if inputOffset and inputLen do not specify a 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.

Update(Byte[], Int32, Int32, Byte[]) Update(Byte[], Int32, Int32, Byte[])

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

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

Parameters

input
Byte[]

the input bytes to transform.

inputOffset
Int32 Int32

the offset in the input to start.

inputLen
Int32 Int32

the length of the input to transform.

output
Byte[]

the output buffer.

Returns

Exceptions

if the size of the output buffer is too small.

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

if the input is null, the output is null, or if inputOffset and inputLen do not specify a 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.

Update(Byte[], Int32, Int32, Byte[], Int32) Update(Byte[], Int32, Int32, Byte[], Int32)

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

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

Parameters

input
Byte[]

the input bytes to transform.

inputOffset
Int32 Int32

the offset in the input to start.

inputLen
Int32 Int32

the length of the input to transform.

output
Byte[]

the output buffer.

outputOffset
Int32 Int32

the offset in the output buffer.

Returns

Exceptions

if the size of the output buffer is too small.

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

if the input is null, the output is null, or if inputOffset and inputLen do not specify a 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