Pike v8.0 release 1738

Class Crypto.DH.Parameters

Inheritance graph
Nettle.DH_Params Crypto.DH.Parameters
Description

Diffie-Hellman parameters.


Variable g

Gmp.mpz Crypto.DH.Parameters.g

Description

Generator.


Inherit DH_Params

inherit Nettle.DH_Params : DH_Params


Variable order

__deprecated__ Gmp.mpz Crypto.DH.Parameters.order

Description

Alias for q.

Deprecated

Replaced by q.


Variable p

Gmp.mpz Crypto.DH.Parameters.p

Description

Prime.


Variable q

Gmp.mpz Crypto.DH.Parameters.q

Description

Subgroup size.


Method create

Crypto.DH.Parameters Crypto.DH.Parameters(Gmp.mpz|int p, Gmp.mpz|int|void g, Gmp.mpz|int|void q)

Description

Initialize the set of Diffie-Hellman parameters.

Parameter p

The prime for the group.

Parameter g

The generator for the group. Defaults to 2.

Parameter q

The order of the group. Defaults to (p-1)/2.