public class PssParameters extends Object
Constructor and Description |
---|
PssParameters()
Construct default RSASSA-PSS parameters according to PKCS #1 definition of default value.
|
PssParameters(String hashAlgorithm)
Construct RSASSA-PSS parameters using default trailer and the same digest algorithm for both hash and mgf1.
|
PssParameters(String hashAlgorithm,
int saltLength)
Construct RSASSA-PSS parameters using default trailer and the same digest algorithm for both hash and mgf1.
|
PssParameters(String hashAlgorithm,
String maskGenAlgorithm,
int saltLength)
Construct RSASSA-PSS parameters using custom parameters.
|
PssParameters(String hashAlgorithm,
String maskGenAlgorithm,
int saltLength,
int trailerField)
Construct RSASSA-PSS parameters using custom parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getHashAlgorithm() |
String |
getMaskGenAlgorithm() |
int |
getSaltLength() |
byte |
getTrailerByte() |
int |
getTrailerField() |
public PssParameters()
public PssParameters(String hashAlgorithm)
hashAlgorithm
- digest algorithm to use for hash and mgf1.public PssParameters(String hashAlgorithm, int saltLength)
hashAlgorithm
- digest algorithm to use for hash and mgf1.saltLength
- size of salt in bytes.public PssParameters(String hashAlgorithm, String maskGenAlgorithm, int saltLength)
hashAlgorithm
- digest algorithm to use for hash.maskGenAlgorithm
- digest algorithm to use for mgf1.saltLength
- size of salt in bytes, -1 means use the digest size.public PssParameters(String hashAlgorithm, String maskGenAlgorithm, int saltLength, int trailerField)
hashAlgorithm
- digest algorithm to use for hash.maskGenAlgorithm
- digest algorithm to use for mgf1.saltLength
- size of salt in bytes, -1 means use the digest size.trailerField
- trailer selection, only valid value is 1.public String getHashAlgorithm()
public String getMaskGenAlgorithm()
public int getSaltLength()
public int getTrailerField()
public byte getTrailerByte()
Copyright © 2004–2022 XWiki. All rights reserved.