part7
Class ECKeyPair

java.lang.Object
  extended bypart7.ECKeyPair

public class ECKeyPair
extends java.lang.Object

A class to generate a key-pair for ElGamal using elliptics curves.


Constructor Summary
ECKeyPair(Curve c, ECPoint b, java.security.SecureRandom rnd)
          A constructor that generates an ElGamal key-pair from the curce c and base point b.
 
Method Summary
 ECPrivateKey getPrivate()
          A method to return the private key of an ElGamal key-pair.
 ECPublicKey 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

ECKeyPair

public ECKeyPair(Curve c,
                 ECPoint b,
                 java.security.SecureRandom rnd)
          throws java.lang.Exception
A constructor that generates an ElGamal key-pair from the curce c and base point b.

Throws:
Exception.
java.lang.Exception
Method Detail

getPublic

public ECPublicKey getPublic()
                      throws java.lang.Exception
A method to return the public key of an ElGamal key-pair.

Throws:
Exception.
java.lang.Exception

getPrivate

public ECPrivateKey getPrivate()
                        throws java.lang.Exception
A method to return the private key of an ElGamal key-pair.

Throws:
Exception.
java.lang.Exception