part6
Class RSAPrivateKeyWithRecovery
java.lang.Object
part2.SimpleRSAPrivateKey
part6.RSAPrivateKeyWithRecovery
- All Implemented Interfaces:
- RSAPrivateKey
- public class RSAPrivateKeyWithRecovery
- extends SimpleRSAPrivateKey
A class that implements an RSA private key that can be used for signature generation with a digital signature scheme with message recovery.
Method Summary |
java.math.BigInteger |
sign(java.math.BigInteger x,
Redundancy redundancy)
A method to sign a big integer x using the redundancy object redundancy . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RSAPrivateKeyWithRecovery
public RSAPrivateKeyWithRecovery(java.math.BigInteger n,
java.math.BigInteger d)
throws java.lang.Exception
RSAPrivateKeyWithRecovery
public RSAPrivateKeyWithRecovery(SimpleRSAPrivateKey key)
throws java.lang.Exception
sign
public java.math.BigInteger sign(java.math.BigInteger x,
Redundancy redundancy)
throws java.lang.Exception
- A method to sign a big integer
x
using the redundancy object redundancy
.
- Throws:
Exception.
java.lang.Exception