Javax.Crypto.Cipher.Update Method
Continues a multi-part transformation (encryption or decryption).

Syntax

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

Parameters

input
the input buffer to transform.
output
the output buffer to store the result within.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Javax.Crypto.ShortBufferExceptionif the size of the output buffer is too small.
Java.Lang.IllegalStateExceptionif this cipher instance is not initialized for encryption or decryption.
Java.Lang.IllegalArgumentExceptionif the input buffer and the output buffer are the identical object.

Remarks

Continues a multi-part transformation (encryption or decryption). The input.remaining() bytes starting at input.position() are transformed and stored in the output buffer.

If the output.remaining() is too small to hold the transformed bytes a ShortBufferException is thrown. Use Cipher.GetOutputSize(int) to check for the size of the output buffer.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1