Method Nettle.DH_Params()->generate_keypair() Method generate_keypair array(Gmp.mpz) generate_keypair(function(int(0..):string(8bit)) rnd) Description Generate a Diffie-Hellman key pair. Returns Returns the following array: Array Gmp.mpz 0The generated public key. Gmp.mpz 1The corresponding private key.