public class ElGamalPrivateKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec
Modifier and Type | Field and Description |
---|---|
protected java.math.BigInteger |
g |
protected java.math.BigInteger |
p |
protected java.math.BigInteger |
x |
Constructor and Description |
---|
ElGamalPrivateKeySpec(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger g)
Creates a ElGamal private key specification based on given private value x,
prime modulus p and base generator g.
|
protected java.math.BigInteger x
protected java.math.BigInteger p
protected java.math.BigInteger g
public ElGamalPrivateKeySpec(java.math.BigInteger x, java.math.BigInteger p, java.math.BigInteger g)
x
- the private valuep
- the prime modulusg
- the base generatorpublic java.math.BigInteger getX()
public java.math.BigInteger getP()
public java.math.BigInteger getG()