This class specifies the set of parameters used for generating Diffie-Hellman (system) parameters for use in Diffie-Hellman key agreement. This is typically done by a central authority.
The central authority, after computing the parameters, must send this information to the parties looking to agree on a secret key.
This class specifies the set of parameters used for generating Diffie-Hellman (system) parameters for use in Diffie-Hellman key agreement. This is typically done by a central authority. The central authority, after computing the parameters, must send this information to the parties looking to agree on a secret key.
(->dh-gen-parameter-spec prime-size exponent-size)
Constructor.
Constructs a parameter set for the generation of Diffie-Hellman (system) parameters. The constructed parameter set can be used to initialize an AlgorithmParameterGenerator object for the generation of Diffie-Hellman parameters.
prime-size - the size (in bits) of the prime modulus. - int
exponent-size - the size (in bits) of the random exponent. - int
Constructor. Constructs a parameter set for the generation of Diffie-Hellman (system) parameters. The constructed parameter set can be used to initialize an AlgorithmParameterGenerator object for the generation of Diffie-Hellman parameters. prime-size - the size (in bits) of the prime modulus. - `int` exponent-size - the size (in bits) of the random exponent. - `int`
(get-exponent-size this)
Returns the size in bits of the random exponent (private value).
returns: the size in bits of the random exponent (private value) - int
Returns the size in bits of the random exponent (private value). returns: the size in bits of the random exponent (private value) - `int`
(get-prime-size this)
Returns the size in bits of the prime modulus.
returns: the size in bits of the prime modulus - int
Returns the size in bits of the prime modulus. returns: the size in bits of the prime modulus - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close