public class ElGamalPublicKeySpec
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 |
y_ |
Constructor and Description |
---|
ElGamalPublicKeySpec(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger g)
Creates a ElGamal public key specification based on given public value y, prime modulus p
and base generator g.
|
protected java.math.BigInteger y_
protected java.math.BigInteger p_
protected java.math.BigInteger g_
public ElGamalPublicKeySpec(java.math.BigInteger y, java.math.BigInteger p, java.math.BigInteger g)
y
- the public valuep
- the prime modulusg
- the base generatorpublic java.math.BigInteger getY()
public java.math.BigInteger getP()
public java.math.BigInteger getG()