Sdílet prostřednictvím


MacSpi.EngineInit(IKey, IAlgorithmParameterSpec) Method

Definition

Initializes the MAC with the given (secret) key and algorithm parameters.

[Android.Runtime.Register("engineInit", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "GetEngineInit_Ljava_security_Key_Ljava_security_spec_AlgorithmParameterSpec_Handler")]
protected abstract void EngineInit (Java.Security.IKey? key, Java.Security.Spec.IAlgorithmParameterSpec? params);
[<Android.Runtime.Register("engineInit", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "GetEngineInit_Ljava_security_Key_Ljava_security_spec_AlgorithmParameterSpec_Handler")>]
abstract member EngineInit : Java.Security.IKey * Java.Security.Spec.IAlgorithmParameterSpec -> unit

Parameters

key
IKey

the (secret) key.

params
IAlgorithmParameterSpec

the algorithm parameters.

Attributes

Exceptions

if the specified key cannot be used to initialize this algorithm, or it is null.

if the specified parameters cannot be used to initialize this algorithm.

Remarks

Initializes the MAC with the given (secret) key and algorithm parameters.

Java documentation for javax.crypto.MacSpi.engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec).

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