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)
  2. bool generateDsaPrimes(RandomNumberGenerator rng, AlgorithmFactory af, BigInt p_out, BigInt q_out, size_t pbits, size_t qbits, Vector!ubyte seed_c)
    static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
    bool
    generateDsaPrimes
    ()
    (,,,,
    size_t pbits
    ,
    size_t qbits
    ,
    auto const ref 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

seed_c Vector!ubyte

the seed used to generate the parameters

Return Value

Type: bool

true if seed generated a valid DSA parameter set, otherwise false. p_out and q_out are only valid if true was returned.

Meta