|
For the latest news and information visit The GNU Crypto project | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectgnu.crypto.sig.BaseSignaturegnu.crypto.sig.rsa.RSAPKCS1V1_5Signaturepublic class RSAPKCS1V1_5Signatureextends BaseSignatureField Summary |
Fields inherited from class gnu.crypto.sig.BaseSignature | |
md, privateKey, publicKey, schemeName | |
Fields inherited from interface gnu.crypto.sig.ISignature | |
SIGNER_KEY, SOURCE_OF_RANDOMNESS, VERIFIER_KEY | |
Constructor Summary | |
| |
| |
Method Summary | |
Object |
|
protected Object | |
protected void |
|
protected void |
|
protected boolean |
|
Methods inherited from class gnu.crypto.sig.BaseSignature | |
clone, generateSignature, init, name, nextRandomBytes, setupForSigning, setupForVerification, setupSign, setupVerify, sign, update, update, verify, verifySignature | |
public RSAPKCS1V1_5Signature()
Default 0-arguments constructor. Uses SHA-1 as the default hash.
public RSAPKCS1V1_5Signature(String mdName)
Constructs an instance of this object using the designated message digest algorithm as its underlying hash function.
- Parameters:
mdName- the canonical name of the underlying hash function.
public Object clone()
Returns a clone copy of this instance.
- Specified by:
- clone in interface ISignature
- Overrides:
- clone in interface BaseSignature
- Returns:
- a clone copy of this instance.
protected Object generateSignature()
throws IllegalStateException
- Overrides:
- generateSignature in interface BaseSignature
protected void setupForSigning(PrivateKey k)
throws IllegalArgumentException
- Overrides:
- setupForSigning in interface BaseSignature
protected void setupForVerification(PublicKey k)
throws IllegalArgumentException
- Overrides:
- setupForVerification in interface BaseSignature
protected boolean verifySignature(Object sig)
throws IllegalStateException
- Overrides:
- verifySignature in interface BaseSignature