generateDsaPrimes

Generate DSA parameters using the FIPS 186 kosherizer

  1. Vector!ubyte generateDsaPrimes(RandomNumberGenerator rng, AlgorithmFactory af, BigInt p_out, BigInt q_out, size_t pbits, size_t qbits)
    static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
    Vector!ubyte
    generateDsaPrimes
  2. bool generateDsaPrimes(RandomNumberGenerator rng, AlgorithmFactory af, BigInt p_out, BigInt q_out, size_t pbits, size_t qbits, Vector!ubyte seed_c)

Parameters

rng RandomNumberGenerator

a random number generator

af AlgorithmFactory

an algorithm factory

p_out BigInt

where the prime p will be stored

q_out BigInt

where the prime q will be stored

pbits size_t

how long p will be in bits

qbits size_t

how long q will be in bits

Return Value

Type: Vector!ubyte

random seed used to generate this parameter set

Meta