part6
Class RSAPrivateKeyWithAppendix

java.lang.Object
  extended bypart2.SimpleRSAPrivateKey
      extended bypart6.RSAPrivateKeyWithAppendix
All Implemented Interfaces:
RSAPrivateKey

public class RSAPrivateKeyWithAppendix
extends SimpleRSAPrivateKey

A class that implements an RSA private key that can be used for signature generation with a digital signature scheme with appendix.


Constructor Summary
RSAPrivateKeyWithAppendix(java.math.BigInteger n, java.math.BigInteger d)
           
RSAPrivateKeyWithAppendix(SimpleRSAPrivateKey key)
           
 
Method Summary
 java.math.BigInteger sign(java.lang.String str, HashFunction hash)
          A method to sign a string str using the hash function hash.
 
Methods inherited from class part2.SimpleRSAPrivateKey
decrypt, decrypt, modulus, privateExponent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RSAPrivateKeyWithAppendix

public RSAPrivateKeyWithAppendix(java.math.BigInteger n,
                                 java.math.BigInteger d)
                          throws java.lang.Exception

RSAPrivateKeyWithAppendix

public RSAPrivateKeyWithAppendix(SimpleRSAPrivateKey key)
                          throws java.lang.Exception
Method Detail

sign

public java.math.BigInteger sign(java.lang.String str,
                                 HashFunction hash)
                          throws java.lang.Exception
A method to sign a string str using the hash function hash.

Throws:
Exception.
java.lang.Exception