Android Guides | Samples

Javax.Crypto.Cipher.Update Method

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

Syntax

[Android.Runtime.Register("update", "([BII)[B", "")]
public Byte[] Update (Byte[] input, Int32 inputOffset, Int32 inputLen)

Parameters

input
the input bytes to transform.
inputOffset
the offset in the input to start.
inputLen
the length of the input to transform.

Exceptions

TypeReason
IllegalStateExceptionif this cipher instance is not initialized for encryption or decryption.
IllegalArgumentExceptionif input is null, or if inputOffset and inputLen do not specify a valid chunk in the input buffer.

Remarks

Continues a multi-part transformation (encryption or decryption). The transformed bytes are returned.

[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