Javax.Crypto.Mac.DoFinal Method
Computes the digest of this MAC based on the data previously specified in Mac.Update(sbyte) calls and stores the digest in the specified output buffer at offset outOffset.

Syntax

[Android.Runtime.Register("doFinal", "([BI)V", "")]
public void DoFinal (byte[] output, int outOffset)

Parameters

output
the output buffer
outOffset
the offset in the output buffer

Exceptions

TypeReason
Javax.Crypto.ShortBufferExceptionif the specified output buffer is either too small for the digest to be stored, the specified output buffer is null, or the specified offset is negative or past the length of the output buffer.
Java.Lang.IllegalStateExceptionif this MAC is not initialized.

Remarks

Computes the digest of this MAC based on the data previously specified in Mac.Update(sbyte) calls and stores the digest in the specified output buffer at offset outOffset.

This Mac instance is reverted to its initial state and can be used to start the next MAC computation with the same parameters or initialized with different parameters.

[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