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
Modifier and TypeMethodDescriptionbyte[]
getSalt()
int
withDigestAlgorithm
(DigestAlgorithm digestAlgorithm) Return a new parameter set with for the passed in digest algorithm.withSalt
(byte[] salt) Specify a fixed salt for the signature.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 Details
-
withDigestAlgorithm
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
Specify the saltLength for the signature.- Parameters:
saltLength
- the salt length.- 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()
-