|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part7.ECPublicKey
A class to implement a public key for ElGamal using elliptics curves.
Field Summary | |
protected ECPoint |
_b
|
protected Curve |
_c
|
protected ECPoint |
_p
|
Constructor Summary | |
ECPublicKey(Curve c,
ECPoint b,
ECPoint p)
A constructor for an ElGamal public key (c,b,p). |
|
ECPublicKey(ECPublicKey key)
A copy constructor for an ElGamal public key. |
Method Summary | |
ECCipherText |
encrypt(ECPoint m,
java.security.SecureRandom rnd)
A method to encrypt the point m using this public key. |
MVCipherText |
MVEncrypt(java.math.BigInteger x1,
java.math.BigInteger x2,
java.security.SecureRandom rnd)
A method to encrypt the message (x1,x2) using this public key with
Menezes-Vanstone. |
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 Curve _c
protected ECPoint _b
protected ECPoint _p
Constructor Detail |
public ECPublicKey(Curve c, ECPoint b, ECPoint p) throws java.lang.Exception
Exception.
java.lang.Exception
public ECPublicKey(ECPublicKey key) throws java.lang.Exception
Exception.
java.lang.Exception
Method Detail |
public ECCipherText encrypt(ECPoint m, java.security.SecureRandom rnd) throws java.lang.Exception
m
using this public key.
Exception.
java.lang.Exception
public MVCipherText MVEncrypt(java.math.BigInteger x1, java.math.BigInteger x2, java.security.SecureRandom rnd) throws java.lang.Exception
(x1,x2)
using this public key with
Menezes-Vanstone.
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 |