Class 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 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
.