Javax.Crypto.Cipher.DoFinal Method
Finishes a multi-part transformation (encryption or decryption).

Syntax

[Android.Runtime.Register("doFinal", "([BI)I", "")]
public int DoFinal (byte[] output, int outputOffset)

Parameters

output
the output buffer.
outputOffset
the offset in the output buffer.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Javax.Crypto.IllegalBlockSizeExceptionif the size of the resulting bytes is not a multiple of the cipher block size.
Javax.Crypto.ShortBufferExceptionif the size of the output buffer is too small.
Javax.Crypto.BadPaddingExceptionif the padding of the data does not match the padding scheme.
Java.Lang.IllegalStateExceptionif this cipher instance is not initialized for encryption or decryption.

Remarks

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

Processes any bytes that may have been buffered in previous update calls.

The final transformed bytes are stored in 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