part6
Class EGVerificationKey

java.lang.Object
  extended bypart3.EGPublicKey
      extended bypart6.EGVerificationKey

public class EGVerificationKey
extends EGPublicKey


Field Summary
 
Fields inherited from class part3.EGPublicKey
_g, _p, _y
 
Constructor Summary
EGVerificationKey(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger y)
           
EGVerificationKey(EGPublicKey key)
           
 
Method Summary
 boolean verify(EGSignature s, java.lang.String str, HashFunction hash)
          A method to validate the signature s of a string str using the hash function hash.
 
Methods inherited from class part3.EGPublicKey
encrypt, encrypt, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EGVerificationKey

public EGVerificationKey(java.math.BigInteger p,
                         java.math.BigInteger g,
                         java.math.BigInteger y)
                  throws java.lang.Exception

EGVerificationKey

public EGVerificationKey(EGPublicKey key)
                  throws java.lang.Exception
Method Detail

verify

public boolean verify(EGSignature s,
                      java.lang.String str,
                      HashFunction hash)
               throws java.lang.Exception
A method to validate the signature s of a string str using the hash function hash.

Throws:
Exception.
java.lang.Exception