Package org.bouncycastle.crypto.fips
Class FipsRSA.PSSSignatureParameters
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsParameters
-
- org.bouncycastle.crypto.fips.FipsRSA.SignatureParameters
-
- org.bouncycastle.crypto.fips.FipsRSA.PSSSignatureParameters
-
- All Implemented Interfaces:
Parameters
- Enclosing class:
- FipsRSA
public static final class FipsRSA.PSSSignatureParameters extends FipsRSA.SignatureParameters
Parameters for RSA PSS digest signatures.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FipsDigestAlgorithm
getMGFDigest()
byte[]
getSalt()
int
getSaltLength()
int
getTrailer()
FipsRSA.PSSSignatureParameters
withDigestAlgorithm(FipsDigestAlgorithm digestAlgorithm)
Specify the digest algorithm to use.FipsRSA.PSSSignatureParameters
withMGFDigest(FipsDigestAlgorithm mgfDigest)
Specify the digest algorithm to use for the MGF.FipsRSA.PSSSignatureParameters
withSalt(byte[] salt)
Specify a fixed salt for the signature.FipsRSA.PSSSignatureParameters
withSaltLength(int saltLength)
Specify the saltLength for the signature.FipsRSA.PSSSignatureParameters
withTrailer(int trailer)
Specify the trailer for the signature.-
Methods inherited from class org.bouncycastle.crypto.fips.FipsRSA.SignatureParameters
getDigestAlgorithm
-
Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
-
-
-
-
Method Detail
-
withDigestAlgorithm
public FipsRSA.PSSSignatureParameters withDigestAlgorithm(FipsDigestAlgorithm digestAlgorithm)
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
public FipsRSA.PSSSignatureParameters withMGFDigest(FipsDigestAlgorithm mgfDigest)
Specify the digest algorithm to use for the MGF.- Parameters:
mgfDigest
- a digest algorithm for the MGF.- Returns:
- a new parameter set.
-
withSaltLength
public FipsRSA.PSSSignatureParameters withSaltLength(int saltLength)
Specify the saltLength for the signature.- Parameters:
saltLength
- the salt length.- Returns:
- a new parameter set.
-
withTrailer
public FipsRSA.PSSSignatureParameters withTrailer(int trailer)
Specify the trailer for the signature.- Parameters:
trailer
- the trailer for the signature.- Returns:
- a new parameter set.
-
withSalt
public FipsRSA.PSSSignatureParameters withSalt(byte[] salt)
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
public FipsDigestAlgorithm getMGFDigest()
-
getTrailer
public int getTrailer()
-
-