Mac.Reset Method

Definition

Resets this Mac object.

[Android.Runtime.Register("reset", "()V", "")]
public void Reset ();
[<Android.Runtime.Register("reset", "()V", "")>]
member this.Reset : unit -> unit
Attributes

Remarks

Resets this Mac object.

A call to this method resets this Mac object to the state it was in when previously initialized via a call to init(Key) or init(Key, AlgorithmParameterSpec). That is, the object is reset and available to generate another MAC from the same key, if desired, via new calls to update and doFinal. (In order to reuse this Mac object with a different key, it must be reinitialized via a call to init(Key) or init(Key, AlgorithmParameterSpec).

Java documentation for javax.crypto.Mac.reset().

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