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, schemeNameSIGNER_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, verifypublic 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()
ISignatureReturns a clone copy of this instance.
clone in interface ISignatureclone in class BaseSignatureprotected void setupForVerification(java.security.PublicKey k)
throws java.lang.IllegalArgumentException
setupForVerification in class BaseSignaturejava.lang.IllegalArgumentExceptionprotected void setupForSigning(java.security.PrivateKey k)
throws java.lang.IllegalArgumentException
setupForSigning in class BaseSignaturejava.lang.IllegalArgumentExceptionprotected java.lang.Object generateSignature()
throws java.lang.IllegalStateException
generateSignature in class BaseSignaturejava.lang.IllegalStateExceptionprotected boolean verifySignature(java.lang.Object sig)
throws java.lang.IllegalStateException
verifySignature in class BaseSignaturejava.lang.IllegalStateExceptionCopyright © 2025. All rights reserved.