|
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.Objectgnu.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(String mdName)
Constructs an instance of this object using the designated message digest algorithm as its underlying hash function. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone copy of this instance. |
protected Object |
generateSignature()
|
protected void |
setupForSigning(PrivateKey k)
|
protected void |
setupForVerification(PublicKey k)
|
protected boolean |
verifySignature(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(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 Object clone()
ISignature
Returns a clone copy of this instance.
clone
in interface ISignature
clone
in class BaseSignature
protected void setupForVerification(PublicKey k) throws IllegalArgumentException
setupForVerification
in class BaseSignature
IllegalArgumentException
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException
setupForSigning
in class BaseSignature
IllegalArgumentException
protected Object generateSignature() throws IllegalStateException
generateSignature
in class BaseSignature
IllegalStateException
protected boolean verifySignature(Object sig) throws IllegalStateException
verifySignature
in class BaseSignature
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 |