part6
Class EGSignatureKey

java.lang.Object
  extended bypart3.EGPrivateKey
      extended bypart6.EGSignatureKey

public class EGSignatureKey
extends EGPrivateKey


Field Summary
 
Fields inherited from class part3.EGPrivateKey
_g, _p, _x
 
Constructor Summary
EGSignatureKey(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger x)
           
EGSignatureKey(EGPrivateKey key)
           
 
Method Summary
 EGSignature sign(java.lang.String str, HashFunction hash, PRNG prng)
          A method to sign a string str using the hash function hash and pseudo-random number generator prng.
 
Methods inherited from class part3.EGPrivateKey
decrypt, decrypt, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EGSignatureKey

public EGSignatureKey(java.math.BigInteger p,
                      java.math.BigInteger g,
                      java.math.BigInteger x)
               throws java.lang.Exception

EGSignatureKey

public EGSignatureKey(EGPrivateKey key)
               throws java.lang.Exception
Method Detail

sign

public EGSignature sign(java.lang.String str,
                        HashFunction hash,
                        PRNG prng)
                 throws java.lang.Exception
A method to sign a string str using the hash function hash and pseudo-random number generator prng.

Throws:
Exception.
java.lang.Exception