Its ASN.1 definition in the PKCS #1 standard is described below:
RSASSA-PSS-params ::= SEQUENCE { hashAlgorithm [0] HashAlgorithm DEFAULT sha1, maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1, saltLength [2] INTEGER DEFAULT 20, trailerField [3] TrailerField DEFAULT trailerFieldBC(1) }where
HashAlgorithm ::= AlgorithmIdentifier { {OAEP-PSSDigestAlgorithms} } MaskGenAlgorithm ::= AlgorithmIdentifier { {PKCS1MGFAlgorithms} } TrailerField ::= INTEGER { trailerFieldBC(1) } OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= { { OID id-sha1 PARAMETERS NULL }| { OID id-sha224 PARAMETERS NULL }| { OID id-sha256 PARAMETERS NULL }| { OID id-sha384 PARAMETERS NULL }| { OID id-sha512 PARAMETERS NULL }| { OID id-sha512-224 PARAMETERS NULL }| { OID id-sha512-256 PARAMETERS NULL }, ... -- Allows for future expansion -- } PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= { { OID id-mgf1 PARAMETERS HashAlgorithm }, ... -- Allows for future expansion -- }
MGF1ParameterSpec
, AlgorithmParameterSpec
, java.security.Signature
Modifier and Type | Field and Description |
---|---|
public static final PSSParameterSpec | DEFAULT
Deprecated
since 19. This field uses the default values defined in the PKCS #1
standard.
The PSS parameter set with all default values.
|
private final String | |
private final String | |
private final AlgorithmParameterSpec | |
private final int | |
public static final int | TRAILER_FIELD_BC
The |
private final int |
Access | Constructor and Description |
---|---|
public | PSSParameterSpec(String
the algorithm name of the hash function mdName, String the algorithm name of the mask generation function mgfName, AlgorithmParameterSpec the parameters for the mask generation function.
If null is specified, null will be returned by
getMGFParameters(). mgfSpec, int the length of salt in bytes saltLen, int the value of the trailer field trailerField)Creates a new |
public | PSSParameterSpec(int
the length of salt in bytes saltLen)
Deprecated
since 19. This constructor uses the default values defined in
the PKCS #1 standard except for the salt length.
Creates a new |
Modifier and Type | Method and Description |
---|---|
public String | Returns: the message digest algorithm nameReturns the message digest algorithm name. |
public String | Returns: the mask generation function algorithm nameReturns the mask generation function algorithm name. |
public AlgorithmParameterSpec | Returns: the parameters for the mask generation functionReturns the parameters for the mask generation function. |
public int | |
public int | |
public String |
DEFAULT | back to summary |
---|---|
public static final PSSParameterSpec DEFAULT
Deprecated since 19. This field uses the default values defined in the PKCS #1
standard. Some of these defaults are no longer recommended due
to advances in cryptanalysis -- see the
PKCS#1 v2.2
standard for more details. Thus, it is recommended to create
a new The PSS parameter set with all default values.
|
mdName | back to summary |
---|---|
private final String mdName |
mgfName | back to summary |
---|---|
private final String mgfName |
mgfSpec | back to summary |
---|---|
private final AlgorithmParameterSpec mgfSpec |
saltLen | back to summary |
---|---|
private final int saltLen |
TRAILER_FIELD_BC | back to summary |
---|---|
public static final int TRAILER_FIELD_BC The
|
trailerField | back to summary |
---|---|
private final int trailerField |
PSSParameterSpec | back to summary |
---|---|
public PSSParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField) Creates a new
|
PSSParameterSpec | back to summary |
---|---|
public PSSParameterSpec(int saltLen)
Deprecated since 19. This constructor uses the default values defined in
the PKCS #1 standard except for the salt length. Some of these
defaults are no longer recommended due to advances in
cryptanalysis -- see the
PKCS#1 v2.2
standard for more details. Thus, it is recommended to explicitly
specify all desired parameter values with the
Creates a new
|
getDigestAlgorithm | back to summary |
---|---|
public String getDigestAlgorithm() Returns the message digest algorithm name.
|
getMGFAlgorithm | back to summary |
---|---|
public String getMGFAlgorithm() Returns the mask generation function algorithm name.
|
getMGFParameters | back to summary |
---|---|
public AlgorithmParameterSpec getMGFParameters() Returns the parameters for the mask generation function.
|
getSaltLength | back to summary |
---|---|
public int getSaltLength() Returns the salt length in bytes.
|
getTrailerField | back to summary |
---|---|
public int getTrailerField() Returns the value for the trailer field.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- |