Method Crypto.DH.Parameters()->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 0

The generated public key.

Gmp.mpz 1

The corresponding private key.