All Packages Class Hierarchy This Package Previous Next Index
Interface java.security.interfaces.ElGamalKey
- 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.1.1.1 $
- Author:
- David Hopwood
- See Also:
- ElGamalParams, Key, Cipher, Signature
-
getG()
- Returns the base, g.
-
getP()
- Returns the prime, p.
-
getY()
- Returns the value of y = g^x mod p (where x is
the private key).
getP
public abstract BigInteger getP()
- Returns the prime, p.
- Returns:
- the prime as a java.math.BigInteger
getG
public abstract BigInteger getG()
- Returns the base, g.
- Returns:
- the base as a java.math.BigInteger
getY
public abstract BigInteger getY()
- Returns the value of y = g^x mod p (where x is
the private key).
- Returns:
- y as a java.math.BigInteger
All Packages Class Hierarchy This Package Previous Next Index