Package org.bouncycastle.crypto.general
Class RSA.ISO9796d2PSSSignatureParameters
- java.lang.Object
-
- org.bouncycastle.crypto.general.GeneralParameters
-
- org.bouncycastle.crypto.general.RSA.SignatureParameters<RSA.ISO9796d2PSSSignatureParameters>
-
- org.bouncycastle.crypto.general.RSA.ISO9796d2PSSSignatureParameters
-
- All Implemented Interfaces:
Parameters
- Enclosing class:
- RSA
public static final class RSA.ISO9796d2PSSSignatureParameters extends RSA.SignatureParameters<RSA.ISO9796d2PSSSignatureParameters>
Parameters for ISO 9796-2 PSS signature algorithms.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getSalt()
int
getSaltLength()
RSA.ISO9796d2PSSSignatureParameters
withDigestAlgorithm(DigestAlgorithm digestAlgorithm)
Return a new parameter set with for the passed in digest algorithm.RSA.ISO9796d2PSSSignatureParameters
withSalt(byte[] salt)
Specify a fixed salt for the signature.RSA.ISO9796d2PSSSignatureParameters
withSaltLength(int saltLength)
Specify the saltLength 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 Detail
-
withDigestAlgorithm
public RSA.ISO9796d2PSSSignatureParameters withDigestAlgorithm(DigestAlgorithm digestAlgorithm)
Return a new parameter set with for the passed in digest algorithm.- Parameters:
digestAlgorithm
- the digest to use for signature generation.- Returns:
- a new parameter for signature generation.
-
withSaltLength
public RSA.ISO9796d2PSSSignatureParameters withSaltLength(int saltLength)
Specify the saltLength for the signature.- Parameters:
saltLength
- the salt length.- Returns:
- a new parameter set.
-
withSalt
public RSA.ISO9796d2PSSSignatureParameters 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()
-
-