|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part3.EGKeyPair
A class to generate an ElGamal key-pair.
Constructor Summary | |
EGKeyPair(java.math.BigInteger p,
java.math.BigInteger g,
java.security.SecureRandom rnd)
A constructor that generates an ElGamal key-pair from the prime p
and a generator g for Zp* . |
Method Summary | |
EGPrivateKey |
getPrivate()
A method to return the private key of an ElGamal key-pair. |
EGPublicKey |
getPublic()
A method to return the public key of an ElGamal key-pair. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EGKeyPair(java.math.BigInteger p, java.math.BigInteger g, java.security.SecureRandom rnd) throws java.lang.Exception
p
and a generator g
for Zp*
.
Exception.
java.lang.Exception
Method Detail |
public EGPublicKey getPublic() throws java.lang.Exception
Exception.
java.lang.Exception
public EGPrivateKey getPrivate() throws java.lang.Exception
Exception.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |