This class specifies a parameter spec for RSA-PSS signature scheme, as defined in the PKCS#1 v2.1 standard.
Its ASN.1 definition in PKCS#1 standard is described below:
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 -- } Note: the PSSParameterSpec.DEFAULT uses the following: message digest -- "SHA-1" mask generation function (mgf) -- "MGF1" parameters for mgf -- MGF1ParameterSpec.SHA1 SaltLength -- 20 TrailerField -- 1
This class specifies a parameter spec for RSA-PSS signature scheme, as defined in the PKCS#1 v2.1 standard. Its ASN.1 definition in PKCS#1 standard is described below: 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 -- } Note: the PSSParameterSpec.DEFAULT uses the following: message digest -- "SHA-1" mask generation function (mgf) -- "MGF1" parameters for mgf -- MGF1ParameterSpec.SHA1 SaltLength -- 20 TrailerField -- 1
Static Constant.
The PSS parameter set with all default values.
type: java.security.spec.PSSParameterSpec
Static Constant. The PSS parameter set with all default values. type: java.security.spec.PSSParameterSpec
(->pss-parameter-spec salt-len)
(->pss-parameter-spec md-name mgf-name mgf-spec salt-len trailer-field)
Constructor.
Creates a new PSSParameterSpec as defined in the PKCS #1 standard using the specified message digest, mask generation function, parameters for mask generation function, salt length, and trailer field values.
md-name - the algorithm name of the hash function. - java.lang.String
mgf-name - the algorithm name of the mask generation function. - java.lang.String
mgf-spec - the parameters for the mask generation function. If null is specified, null will be returned by getMGFParameters(). - java.security.spec.AlgorithmParameterSpec
salt-len - the length of salt. - int
trailer-field - the value of the trailer field. - int
throws: java.lang.NullPointerException - if mdName, or mgfName is null.
Constructor. Creates a new PSSParameterSpec as defined in the PKCS #1 standard using the specified message digest, mask generation function, parameters for mask generation function, salt length, and trailer field values. md-name - the algorithm name of the hash function. - `java.lang.String` mgf-name - the algorithm name of the mask generation function. - `java.lang.String` mgf-spec - the parameters for the mask generation function. If null is specified, null will be returned by getMGFParameters(). - `java.security.spec.AlgorithmParameterSpec` salt-len - the length of salt. - `int` trailer-field - the value of the trailer field. - `int` throws: java.lang.NullPointerException - if mdName, or mgfName is null.
(get-digest-algorithm this)
Returns the message digest algorithm name.
returns: the message digest algorithm name. - java.lang.String
Returns the message digest algorithm name. returns: the message digest algorithm name. - `java.lang.String`
(get-mgf-algorithm this)
Returns the mask generation function algorithm name.
returns: the mask generation function algorithm name. - java.lang.String
Returns the mask generation function algorithm name. returns: the mask generation function algorithm name. - `java.lang.String`
(get-mgf-parameters this)
Returns the parameters for the mask generation function.
returns: the parameters for the mask generation function. - java.security.spec.AlgorithmParameterSpec
Returns the parameters for the mask generation function. returns: the parameters for the mask generation function. - `java.security.spec.AlgorithmParameterSpec`
(get-salt-length this)
Returns the salt length in bits.
returns: the salt length. - int
Returns the salt length in bits. returns: the salt length. - `int`
(get-trailer-field this)
Returns the value for the trailer field, i.e. bc in PKCS#1 v2.1.
returns: the value for the trailer field, i.e. bc in PKCS#1 v2.1. - int
Returns the value for the trailer field, i.e. bc in PKCS#1 v2.1. returns: the value for the trailer field, i.e. bc in PKCS#1 v2.1. - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close