public class RSAPKCS1V1_5Signature extends BaseSignature
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:
md, privateKey, publicKey, schemeName
SIGNER_KEY, SOURCE_OF_RANDOMNESS, VERIFIER_KEY
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
clearData, clearData, init, name, nextRandomBytes, setupSign, setupVerify, sign, update, update, verify
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.public java.lang.Object clone()
ISignature
Returns a clone copy of this instance.
clone
in interface ISignature
clone
in class BaseSignature
protected void setupForVerification(java.security.PublicKey k) throws java.lang.IllegalArgumentException
setupForVerification
in class BaseSignature
java.lang.IllegalArgumentException
protected void setupForSigning(java.security.PrivateKey k) throws java.lang.IllegalArgumentException
setupForSigning
in class BaseSignature
java.lang.IllegalArgumentException
protected java.lang.Object generateSignature() throws java.lang.IllegalStateException
generateSignature
in class BaseSignature
java.lang.IllegalStateException
protected boolean verifySignature(java.lang.Object sig) throws java.lang.IllegalStateException
verifySignature
in class BaseSignature
java.lang.IllegalStateException
Copyright © 2025. All rights reserved.