Method Nettle.rsa_generate_keypair()
- Method
rsa_generate_keypair
array(Gmp.mpz) rsa_generate_keypair(intbits,inte,function(int(0..):string(8bit))rnd)- Description
Generates an RSA key pair with a
bitssized modulus (n), using the provided value foreand random functionrnd.- Returns
Array Gmp.mpz0The value n, the modulo.
Gmp.mpz1The value d, the private exponent.
Gmp.mpz2The value p, a prime.
Gmp.mpz3The value q, a prime.