Package org.bouncycastle.crypto.general
Class RSA.PSSSignatureParameters
java.lang.Object
org.bouncycastle.crypto.general.GeneralParameters
org.bouncycastle.crypto.general.RSA.SignatureParameters
org.bouncycastle.crypto.general.RSA.PSSSignatureParameters
- All Implemented Interfaces:
Parameters
- Enclosing class:
- RSA
Parameters for RSA PSS digest signatures.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getSalt()
int
int
withDigestAlgorithm
(DigestAlgorithm digestAlgorithm) Specify the digest algorithm to use.withMGFDigest
(DigestAlgorithm mgfDigest) Specify the digest algorithm to use for the MGF.withSalt
(byte[] salt) Specify a fixed salt for the signature.withSaltLength
(int saltLength) Specify the saltLength for the signature.withTrailer
(int trailer) Specify the trailer for the signature.Methods inherited from class org.bouncycastle.crypto.general.RSA.SignatureParameters
getDigestAlgorithm
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithm
-
Method Details
-
withDigestAlgorithm
Specify the digest algorithm to use. This also sets the MGF digest, salt, and the salt length.- Parameters:
digestAlgorithm
- a digest algorithm.- Returns:
- a new parameter set.
-
withMGFDigest
Specify the digest algorithm to use for the MGF.- Parameters:
mgfDigest
- a digest algorithm for the MGF.- Returns:
- a new parameter set.
-
withSaltLength
Specify the saltLength for the signature.- Parameters:
saltLength
- the salt length.- Returns:
- a new parameter set.
-
withTrailer
Specify the trailer for the signature.- Parameters:
trailer
- the trailer for the signature.- Returns:
- a new parameter set.
-
withSalt
Specify a fixed salt for the signature.- Parameters:
salt
- the salt to use.- Returns:
- a new parameter set.
-
getSalt
public byte[] getSalt() -
getSaltLength
public int getSaltLength() -
getMGFDigest
-
getTrailer
public int getTrailer()
-