Method Nettle.dsa_generate_keypair()
- Method
dsa_generate_keypair
array(Gmp.mpz) dsa_generate_keypair(intp_bits,intq_bits,function(int(0..):string(8bit))rnd)- Description
Generates a DSA key pair with
p_bitsnumber of bits (sometimes referred to as L) for p, andq_bitsnumber of bits (sometimes referred to as N) for q, using the random functionrnd.Valid combinations as per FIPS 186-3 are
p_bits q_bits 1024 160 2048 224 (rejected by some versions of Hogweed) 2048 256 3072 256
- Returns
Array Gmp.mpz0The value p, the modulo.
Gmp.mpz1The value q, the group order.
Gmp.mpz2The value g, the generator.
Gmp.mpz3The value y, the public value.
Gmp.mpz4The value x, the private value.