public class RSAPSSSignature extends BaseSignature
The RSA-PSS signature scheme is a public-key encryption scheme combining the RSA algorithm with the Probabilistic Signature Scheme (PSS) encoding method.
The inventors of RSA are Ronald L. Rivest, Adi Shamir, and Leonard Adleman, while the inventors of the PSS encoding method are Mihir Bellare and Phillip Rogaway. During efforts to adopt RSA-PSS into the P1363a standards effort, certain adaptations to the original version of RSA-PSS were made by Mihir Bellare and Phillip Rogaway and also by Burt Kaliski (the editor of IEEE P1363a) to facilitate implementation and integration into existing protocols.
References:
md, privateKey, publicKey, schemeNameSIGNER_KEY, SOURCE_OF_RANDOMNESS, VERIFIER_KEY| Constructor and Description |
|---|
RSAPSSSignature()
Default 0-arguments constructor.
|
RSAPSSSignature(java.lang.String mdName)
Constructs an instance of this object using the designated message
digest algorithm as its underlying hash function, and having 0-octet
salt.
|
RSAPSSSignature(java.lang.String mdName,
int sLen)
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 RSAPSSSignature()
public RSAPSSSignature(java.lang.String mdName)
Constructs an instance of this object using the designated message digest algorithm as its underlying hash function, and having 0-octet salt.
mdName - the canonical name of the underlying hash function.public RSAPSSSignature(java.lang.String mdName,
int sLen)
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.sLen - the desired length in octets of the salt to use for encoding /
decoding signatures.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.