Package org.bouncycastle.asn1.pkcs
Class RSASSAPSSparams
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.pkcs.RSASSAPSSparams
- All Implemented Interfaces:
ASN1Encodable
,Encodable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AlgorithmIdentifier
static final AlgorithmIdentifier
static final ASN1Integer
static final ASN1Integer
-
Constructor Summary
ConstructorsConstructorDescriptionThe default versionRSASSAPSSparams
(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, ASN1Integer saltLength, ASN1Integer trailerField) -
Method Summary
Modifier and TypeMethodDescriptionstatic RSASSAPSSparams
getInstance
(Object obj) RSASSA-PSS-params ::= SEQUENCE { hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, maskGenAlgorithm [1] PKCS1MGFAlgorithms DEFAULT mgf1SHA1, saltLength [2] INTEGER DEFAULT 20, trailerField [3] TrailerField DEFAULT trailerFieldBC } OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= { { OID id-sha1 PARAMETERS NULL }| { OID id-sha256 PARAMETERS NULL }| { OID id-sha384 PARAMETERS NULL }| { OID id-sha512 PARAMETERS NULL }, ...Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
DEFAULT_HASH_ALGORITHM
-
DEFAULT_MASK_GEN_FUNCTION
-
DEFAULT_SALT_LENGTH
-
DEFAULT_TRAILER_FIELD
-
-
Constructor Details
-
RSASSAPSSparams
public RSASSAPSSparams()The default version -
RSASSAPSSparams
public RSASSAPSSparams(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, ASN1Integer saltLength, ASN1Integer trailerField)
-
-
Method Details
-
getInstance
-
getHashAlgorithm
-
getMaskGenAlgorithm
-
getSaltLength
-
getTrailerField
-
toASN1Primitive
RSASSA-PSS-params ::= SEQUENCE { hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, maskGenAlgorithm [1] PKCS1MGFAlgorithms DEFAULT mgf1SHA1, saltLength [2] INTEGER DEFAULT 20, trailerField [3] TrailerField DEFAULT trailerFieldBC } OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= { { OID id-sha1 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 -- } TrailerField ::= INTEGER { trailerFieldBC(1) }
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- the asn1 primitive representing the parameters.
-