|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part3.EGPrivateKey
A class to implement an ElGamal private key.
Field Summary | |
protected java.math.BigInteger |
_g
|
protected java.math.BigInteger |
_p
|
protected java.math.BigInteger |
_x
|
Constructor Summary | |
EGPrivateKey(java.math.BigInteger p,
java.math.BigInteger g,
java.math.BigInteger x)
A constructor for an ElGamal private key (p,g,x). |
|
EGPrivateKey(EGPrivateKey key)
A copy constructor for an ElGamal private key. |
Method Summary | |
java.lang.String |
decrypt(java.util.AbstractList cipherText)
A method to decrypt the ciphertext cipherText to a string value using this private key. |
java.math.BigInteger |
decrypt(EGCipherText cipherText)
A method to decrypt the ciphertext cipherText to a big integer value using this private key. |
java.lang.String |
toString()
A method to produce a string representation of this private 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 _x
Constructor Detail |
public EGPrivateKey(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger x) throws java.lang.Exception
Exception.
java.lang.Exception
public EGPrivateKey(EGPrivateKey key) throws java.lang.Exception
Exception.
java.lang.Exception
Method Detail |
public java.math.BigInteger decrypt(EGCipherText cipherText) throws java.lang.Exception
cipherText
to a big integer value using this private key.
Exception.
java.lang.Exception
public java.lang.String decrypt(java.util.AbstractList cipherText) throws java.lang.Exception
cipherText
to a string value using this private key.
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 |