part6
Class RSAPrivateKeyWithAppendix
java.lang.Object
part2.SimpleRSAPrivateKey
part6.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RSAPrivateKeyWithAppendix
public RSAPrivateKeyWithAppendix(java.math.BigInteger n,
java.math.BigInteger d)
throws java.lang.Exception
RSAPrivateKeyWithAppendix
public RSAPrivateKeyWithAppendix(SimpleRSAPrivateKey key)
throws java.lang.Exception
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