DLGroup.this

Create a new group randomly.

Parameters

rng RandomNumberGenerator

the random number generator to use

type PrimeType

specifies how the creation of primes p and q shall be performed. If type=Strong, then p will be determined as a safe prime, and q will be chosen as (p-1)/2. If type=Prime_Subgroup and qbits = 0, then the size of q will be determined according to the estimated difficulty of the DL problem. If type=DSA_Kosherizer, DSA primes will be created.

pbits size_t

the number of bits of p

qbits size_t

the number of bits of q. Leave it as 0 to have the value determined according to pbits.

Meta