|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gnu.crypto.sig.BaseSignature
|
+--gnu.crypto.sig.rsa.RSAPKCS1V1_5Signature
The RSA-PKCS1-V1.5 signature scheme is a digital signature scheme with appendix (SSA) combining the RSA algorithm with the EMSA-PKCS1-v1_5 encoding method.
References:
| Field 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 | |
|---|---|
RSAPKCS1V1_5Signature()
Default 0-arguments constructor. |
|
RSAPKCS1V1_5Signature(java.lang.String mdName)
Constructs an instance of this object using the designated message digest algorithm as its underlying hash function. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone copy of this instance. |
protected java.lang.Object |
generateSignature()
|
protected void |
setupForSigning(java.security.PrivateKey k)
|
protected void |
setupForVerification(java.security.PublicKey k)
|
protected boolean |
verifySignature(java.lang.Object sig)
|
| Methods inherited from class gnu.crypto.sig.BaseSignature |
|---|
init, name, nextRandomBytes, setupSign, setupVerify, sign, update, update, verify |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RSAPKCS1V1_5Signature()
public RSAPKCS1V1_5Signature(java.lang.String mdName)
Constructs an instance of this object using the designated message digest algorithm as its underlying hash function.
mdName - the canonical name of the underlying hash function.| Method Detail |
public java.lang.Object clone()
ISignatureReturns a clone copy of this instance.
clone in interface ISignatureclone in class BaseSignature
protected void setupForVerification(java.security.PublicKey k)
throws java.lang.IllegalArgumentException
setupForVerification in class BaseSignaturejava.lang.IllegalArgumentException
protected void setupForSigning(java.security.PrivateKey k)
throws java.lang.IllegalArgumentException
setupForSigning in class BaseSignaturejava.lang.IllegalArgumentException
protected java.lang.Object generateSignature()
throws java.lang.IllegalStateException
generateSignature in class BaseSignaturejava.lang.IllegalStateException
protected boolean verifySignature(java.lang.Object sig)
throws java.lang.IllegalStateException
verifySignature in class BaseSignaturejava.lang.IllegalStateException
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||