Class RSAPSSAlgorithmParameters
java.lang.Object
java.security.AlgorithmParametersSpi
org.mozilla.jss.provider.java.security.RSAPSSAlgorithmParameters
A RSAPSSAlgorithmParameter implements the trandcoding between a
PSSAlgorithmSpec instance and the DER-encoded form.
RSASSA-PSS-params ::= SEQUENCE {
hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1,
maskGenAlgorithm [1] PKCS1MGFAlgorithms DEFAULT mgf1SHA1,
saltLength [2] INTEGER DEFAULT 20,
trailerField [3] INTEGER DEFAULT 1
}
where
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 },
... -- Allows for future expansion --
}
PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= {
{ OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms },
... -- Allows for future expansion --
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AlgorithmId
static final AlgorithmId
static final BigInt
static final BigInt
private AlgorithmId
private AlgorithmId
private BigInt
private PSSParameterSpec
private BigInt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
decode
(DerInputStream in, byte[] encoded) private void
encode
(DerOutputStream out) protected byte[]
protected byte[]
engineGetEncoded
(String format) protected <T extends AlgorithmParameterSpec>
TengineGetParameterSpec
(Class<T> paramSpec) protected void
engineInit
(byte[] params) protected void
engineInit
(byte[] params, String format) protected void
engineInit
(AlgorithmParameterSpec paramSpec) protected String
private String
getSpecAlgName
(String algName) private void
-
Field Details
-
defaultHashAlg
-
defaultMaskGenFunc
-
defaultSaltLen
-
defaultTrailerField
-
spec
-
hashAlg
-
maskGenFunc
-
saltLen
-
trailerField
-
-
Constructor Details
-
RSAPSSAlgorithmParameters
public RSAPSSAlgorithmParameters()
-
-
Method Details
-
engineInit
- Specified by:
engineInit
in classAlgorithmParametersSpi
- Throws:
InvalidParameterSpecException
-
engineGetParameterSpec
protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException - Specified by:
engineGetParameterSpec
in classAlgorithmParametersSpi
- Throws:
InvalidParameterSpecException
-
engineInit
- Specified by:
engineInit
in classAlgorithmParametersSpi
- Throws:
IOException
-
engineInit
- Specified by:
engineInit
in classAlgorithmParametersSpi
- Throws:
IOException
-
engineGetEncoded
- Specified by:
engineGetEncoded
in classAlgorithmParametersSpi
- Throws:
IOException
-
engineGetEncoded
- Specified by:
engineGetEncoded
in classAlgorithmParametersSpi
- Throws:
IOException
-
engineToString
- Specified by:
engineToString
in classAlgorithmParametersSpi
-
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
populateFromSpec
private void populateFromSpec() -
getSpecAlgName
-