xjava.security.interfaces
Interface ElGamalKey
- ElGamalPrivateKey, ElGamalPublicKey
- BaseElGamalPrivateKey, BaseElGamalPublicKey
public interface ElGamalKey
The interface to an ElGamal public or private key.
References
Bruce Schneier,
"Section 19.6 ElGamal,"
Applied Cryptography,
Wiley 2nd Ed, 1996.
$Revision: 1.2 $
ElGamalParams
, java.security.Key
, java.security.Cipher
, java.security.Signature
BigInteger | getG() - Returns the base, g.
|
BigInteger | getP() - Returns the prime, p.
|
BigInteger | getY() - Returns the value of y = g^x mod p (where x is
the private key).
|
getG
public BigInteger getG()
Returns the base, g.
- the base as a java.math.BigInteger
getP
public BigInteger getP()
Returns the prime, p.
- the prime as a java.math.BigInteger
getY
public BigInteger getY()
Returns the value of y = g^x mod p (where x is
the private key).
- y as a java.math.BigInteger