Java.Security.Interfaces.IDSAKeyPairGenerator.Initialize Method
Initializes this generator for the specified modulus length.

Syntax

[Android.Runtime.Register("initialize", "(IZLjava/security/SecureRandom;)V", "GetInitialize_IZLjava_security_SecureRandom_Handler:Java.Security.Interfaces.IDSAKeyPairGeneratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Initialize (int modlen, bool genParams, Java.Security.SecureRandom random)

Parameters

modlen
the length of the modulus in bits.
genParams
whether new values should be generated.
random
the source of randomness.

Exceptions

TypeReason
Java.Security.InvalidParameterExceptionif the specified modulus length is not valid, or if there are no pre-calculated values and genParams is false.

Remarks

Initializes this generator for the specified modulus length. Valid values for the modulus length are the multiples of 8 between 512 and 1024.

The parameter genParams specifies whether this method should generate new prime (p), subprime (q), and base (g) values or whether it will use the pre-calculated values for the specified modulus length. Default parameters are available for modulus lengths of 512 and 1024 bits.

[Android Documentation]

Requirements

Namespace: Java.Security.Interfaces
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1