part7
Class ECPrivateKey

java.lang.Object
  extended bypart7.ECPrivateKey

public class ECPrivateKey
extends java.lang.Object

A class to implement a private key for ElGamal using elliptics curves.


Field Summary
protected  ECPoint _b
           
protected  Curve _c
           
protected  java.math.BigInteger _x
           
 
Constructor Summary
ECPrivateKey(Curve c, ECPoint b, java.math.BigInteger x)
          A constructor for an ElGamal private key (c,b,x).
ECPrivateKey(ECPrivateKey key)
          A copy constructor for an ElGamal private key.
 
Method Summary
 ECPoint decrypt(ECCipherText cipherText)
          A method to decrypt the ciphertext cipherText using this private key.
 java.util.AbstractList MVDecrypt(MVCipherText c)
          A method to decrypt the ciphertext c using this private key with Menezes-Vanstone.
 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

_c

protected Curve _c

_b

protected ECPoint _b

_x

protected java.math.BigInteger _x
Constructor Detail

ECPrivateKey

public ECPrivateKey(Curve c,
                    ECPoint b,
                    java.math.BigInteger x)
             throws java.lang.Exception
A constructor for an ElGamal private key (c,b,x).

Throws:
Exception.
java.lang.Exception

ECPrivateKey

public ECPrivateKey(ECPrivateKey key)
             throws java.lang.Exception
A copy constructor for an ElGamal private key.

Throws:
Exception.
java.lang.Exception
Method Detail

decrypt

public ECPoint decrypt(ECCipherText cipherText)
                throws java.lang.Exception
A method to decrypt the ciphertext cipherText using this private key.

Throws:
Exception.
java.lang.Exception

MVDecrypt

public java.util.AbstractList MVDecrypt(MVCipherText c)
                                 throws java.lang.Exception
A method to decrypt the ciphertext c using this private key with Menezes-Vanstone.

Returns:
A list containing the two values x1 and x2.
Throws:
Exception.
java.lang.Exception

toString

public java.lang.String toString()
A method to produce a string representation of this private EG key.

Throws:
Exception.