cryptix.provider.elgamal
public class BaseElGamalPrivateKey extends BaseElGamalPublicKey implements ElGamalPrivateKey
References:
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
Since: Cryptix 2.2.2
See Also: ElGamalKey java.security.Cipher java.security.Signature
Field Summary | |
---|---|
protected BigInteger | x |
Constructor Summary | |
---|---|
BaseElGamalPrivateKey(BigInteger p, BigInteger g, BigInteger x, BigInteger y)
Constructs a BaseElGamalPrivateKey with the specified prime
p, base g, private value x, and pre-calculated
public value y = g | |
BaseElGamalPrivateKey(BigInteger p, BigInteger g, BigInteger x)
Constructs a BaseElGamalPrivateKey with the specified prime
p, base g, and private value x.
| |
protected | BaseElGamalPrivateKey(ElGamalParams params, BigInteger x)
Constructs a BaseElGamalPublicKey with a prime and base taken
from an object implementing java.security.interfaces.ElGamalParams,
and the specified private value x.
|
Method Summary | |
---|---|
BigInteger | getX()
Returns the value of x (the private key).
|
Parameters: p the prime as a java.math.BigInteger g the base as a java.math.BigInteger x the value of x as a java.math.BigInteger y the value of y as a java.math.BigInteger
Throws: NullPointerException if p == null || g == null || x == null || y == null
The public value y = g
Parameters: p the prime as a java.math.BigInteger g the base as a java.math.BigInteger x the value of x as a java.math.BigInteger
Throws: NullPointerException if p == null || g == null || x == null
The public value y = g
Parameters: params the parameters for this key x the value of x as a java.math.BigInteger
Throws: NullPointerException if params == null || x == null
See Also: ElGamalParams
Returns: x as a java.math.BigInteger