|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part3.EGPublicKey
A class to implement an ElGamal public key.
Field Summary | |
protected java.math.BigInteger |
_g
|
protected java.math.BigInteger |
_p
|
protected java.math.BigInteger |
_y
|
Constructor Summary | |
EGPublicKey(java.math.BigInteger p,
java.math.BigInteger g,
java.math.BigInteger y)
A constructor for an ElGamal public key (p,g,y). |
|
EGPublicKey(EGPublicKey key)
A copy constructor for an ElGamal public key. |
Method Summary | |
EGCipherText |
encrypt(java.math.BigInteger m,
java.security.SecureRandom rnd)
A method to encrypt the big integer m using this public key. |
java.util.AbstractList |
encrypt(java.lang.String s,
java.security.SecureRandom rnd)
A method to encrypt the string s using this public key. |
java.lang.String |
toString()
A method to produce a string representation of this public EG key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.math.BigInteger _p
protected java.math.BigInteger _g
protected java.math.BigInteger _y
Constructor Detail |
public EGPublicKey(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger y) throws java.lang.Exception
Exception.
java.lang.Exception
public EGPublicKey(EGPublicKey key) throws java.lang.Exception
Exception.
java.lang.Exception
Method Detail |
public EGCipherText encrypt(java.math.BigInteger m, java.security.SecureRandom rnd) throws java.lang.Exception
m
using this public key.
Exception.
java.lang.Exception
public java.util.AbstractList encrypt(java.lang.String s, java.security.SecureRandom rnd) throws java.lang.Exception
s
using this public key.
EGCipherText
objects.
Exception.
java.lang.Exception
public java.lang.String toString()
Exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |