|
Préférences
Moteurs de recherche
|
|||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.crypto.spec
|
Constructor Summary | |
---|---|
DHParameterSpec(BigInteger p,
BigInteger g)
Constructs a parameter set for Diffie-Hellman, using a prime modulus p and a base generator g . |
|
DHParameterSpec(BigInteger p,
BigInteger g,
int l)
Constructs a parameter set for Diffie-Hellman, using a prime modulus p , a base generator g ,
and the size in bits, l , of the random exponent
(private value). |
Method Summary | |
---|---|
BigInteger |
getG()
Returns the base generator g . |
int |
getL()
Returns the size in bits, l , of the random exponent
(private value). |
BigInteger |
getP()
Returns the prime modulus p . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DHParameterSpec(BigInteger p, BigInteger g)
p
and a base generator g
.
p
- the prime modulusg
- the base generatorpublic DHParameterSpec(BigInteger p, BigInteger g, int l)
p
, a base generator g
,
and the size in bits, l
, of the random exponent
(private value).
p
- the prime modulusg
- the base generatorl
- the size in bits of the random exponent (private value)Method Detail |
---|
public BigInteger getP()
p
.
p
public BigInteger getG()
g
.
g
public int getL()
l
, of the random exponent
(private value).
l
, of the random exponent
(private value), or 0 if this size has not been set