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 AlgorithmIdstatic final AlgorithmIdstatic final BigIntstatic final BigIntprivate AlgorithmIdprivate AlgorithmIdprivate BigIntprivate PSSParameterSpecprivate BigInt -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddecode(DerInputStream in, byte[] encoded) private voidencode(DerOutputStream out) protected byte[]protected byte[]engineGetEncoded(String format) protected <T extends AlgorithmParameterSpec>
TengineGetParameterSpec(Class<T> paramSpec) protected voidengineInit(byte[] params) protected voidengineInit(byte[] params, String format) protected voidengineInit(AlgorithmParameterSpec paramSpec) protected Stringprivate StringgetSpecAlgName(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:
engineInitin classAlgorithmParametersSpi- Throws:
InvalidParameterSpecException
-
engineGetParameterSpec
protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException - Specified by:
engineGetParameterSpecin classAlgorithmParametersSpi- Throws:
InvalidParameterSpecException
-
engineInit
- Specified by:
engineInitin classAlgorithmParametersSpi- Throws:
IOException
-
engineInit
- Specified by:
engineInitin classAlgorithmParametersSpi- Throws:
IOException
-
engineGetEncoded
- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Throws:
IOException
-
engineGetEncoded
- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Throws:
IOException
-
engineToString
- Specified by:
engineToStringin classAlgorithmParametersSpi
-
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
populateFromSpec
private void populateFromSpec() -
getSpecAlgName
-