KeyGeneratorSpi.EngineInit Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EngineInit(SecureRandom) |
Initializes the key generator. |
EngineInit(IAlgorithmParameterSpec, SecureRandom) |
Initializes the key generator with the specified parameter set and a user-provided source of randomness. |
EngineInit(Int32, SecureRandom) |
Initializes this key generator for a certain keysize, using the given source of randomness. |
EngineInit(SecureRandom)
Initializes the key generator.
[Android.Runtime.Register("engineInit", "(Ljava/security/SecureRandom;)V", "GetEngineInit_Ljava_security_SecureRandom_Handler")]
protected abstract void EngineInit (Java.Security.SecureRandom? random);
[<Android.Runtime.Register("engineInit", "(Ljava/security/SecureRandom;)V", "GetEngineInit_Ljava_security_SecureRandom_Handler")>]
abstract member EngineInit : Java.Security.SecureRandom -> unit
Parameters
- random
- SecureRandom
the source of randomness for this generator
- Attributes
Remarks
Initializes the key generator.
Java documentation for javax.crypto.KeyGeneratorSpi.engineInit(java.security.SecureRandom)
.
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
EngineInit(IAlgorithmParameterSpec, SecureRandom)
Initializes the key generator with the specified parameter set and a user-provided source of randomness.
[Android.Runtime.Register("engineInit", "(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V", "GetEngineInit_Ljava_security_spec_AlgorithmParameterSpec_Ljava_security_SecureRandom_Handler")]
protected abstract void EngineInit (Java.Security.Spec.IAlgorithmParameterSpec? params, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("engineInit", "(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V", "GetEngineInit_Ljava_security_spec_AlgorithmParameterSpec_Ljava_security_SecureRandom_Handler")>]
abstract member EngineInit : Java.Security.Spec.IAlgorithmParameterSpec * Java.Security.SecureRandom -> unit
Parameters
- params
- IAlgorithmParameterSpec
the key generation parameters
- random
- SecureRandom
the source of randomness for this key generator
- Attributes
Exceptions
if the parameters cannot be uses to initialize this key generator algorithm.
Remarks
Initializes the key generator with the specified parameter set and a user-provided source of randomness.
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
EngineInit(Int32, SecureRandom)
Initializes this key generator for a certain keysize, using the given source of randomness.
[Android.Runtime.Register("engineInit", "(ILjava/security/SecureRandom;)V", "GetEngineInit_ILjava_security_SecureRandom_Handler")]
protected abstract void EngineInit (int keysize, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("engineInit", "(ILjava/security/SecureRandom;)V", "GetEngineInit_ILjava_security_SecureRandom_Handler")>]
abstract member EngineInit : int * Java.Security.SecureRandom -> unit
Parameters
- keysize
- Int32
the keysize. This is an algorithm-specific metric, specified in number of bits.
- random
- SecureRandom
the source of randomness for this key generator
- Attributes
Remarks
Initializes this key generator for a certain keysize, using the given source of randomness.
Java documentation for javax.crypto.KeyGeneratorSpi.engineInit(int, java.security.SecureRandom)
.
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.