- java.lang.Object
-
- java.security.spec.MGF1ParameterSpec
-
- All Implemented Interfaces:
- AlgorithmParameterSpec
public class MGF1ParameterSpec extends Object implements AlgorithmParameterSpec
This class specifies the set of parameters used with mask generation function MGF1 in OAEP Padding and RSA-PSS signature scheme, as defined in the PKCS #1 v2.1 standard.Its ASN.1 definition in PKCS#1 standard is described below:
MGF1Parameters ::= OAEP-PSSDigestAlgorthms
whereOAEP-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 -- }
- Since:
- 1.5
- See Also:
PSSParameterSpec
,OAEPParameterSpec
-
-
Field Summary
Fields Modifier and Type Field and Description static MGF1ParameterSpec
SHA1
The MGF1ParameterSpec which uses "SHA-1" message digest.static MGF1ParameterSpec
SHA256
The MGF1ParameterSpec which uses "SHA-256" message digest.static MGF1ParameterSpec
SHA384
The MGF1ParameterSpec which uses "SHA-384" message digest.static MGF1ParameterSpec
SHA512
The MGF1ParameterSpec which uses SHA-512 message digest.
-
Constructor Summary
Constructors Constructor and Description MGF1ParameterSpec(String mdName)
Constructs a parameter set for mask generation function MGF1 as defined in the PKCS #1 standard.
-
Method Summary
Methods Modifier and Type Method and Description String
getDigestAlgorithm()
Returns the algorithm name of the message digest used by the mask generation function.
-
-
-
Field Detail
-
SHA1
public static final MGF1ParameterSpec SHA1
The MGF1ParameterSpec which uses "SHA-1" message digest.
-
SHA256
public static final MGF1ParameterSpec SHA256
The MGF1ParameterSpec which uses "SHA-256" message digest.
-
SHA384
public static final MGF1ParameterSpec SHA384
The MGF1ParameterSpec which uses "SHA-384" message digest.
-
SHA512
public static final MGF1ParameterSpec SHA512
The MGF1ParameterSpec which uses SHA-512 message digest.
-
-
Constructor Detail
-
MGF1ParameterSpec
public MGF1ParameterSpec(String mdName)
Constructs a parameter set for mask generation function MGF1 as defined in the PKCS #1 standard.- Parameters:
mdName
- the algorithm name for the message digest used in this mask generation function MGF1.- Throws:
NullPointerException
- ifmdName
is null.
-
-
Method Detail
-
getDigestAlgorithm
public String getDigestAlgorithm()
Returns the algorithm name of the message digest used by the mask generation function.- Returns:
- the algorithm name of the message digest.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/security/spec/mgf1parameterspec.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.