RSAES-OAEP-params ::= SEQUENCE {
hashAlgorithm [0] HashAlgorithm DEFAULT sha1,
maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1,
pSourceAlgorithm [2] PSourceAlgorithm DEFAULT pSpecifiedEmpty
}
where
HashAlgorithm ::= AlgorithmIdentifier {
{OAEP-PSSDigestAlgorithms}
}
MaskGenAlgorithm ::= AlgorithmIdentifier { {PKCS1MGFAlgorithms} }
PSourceAlgorithm ::= AlgorithmIdentifier {
{PKCS1PSourceAlgorithms}
}
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 }|
{ OID id-sha512-224 PARAMETERS NULL }|
{ OID id-sha512-256 PARAMETERS NULL },
... -- Allows for future expansion --
}
PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= {
{ OID id-mgf1 PARAMETERS HashAlgorithm },
... -- Allows for future expansion --
}
PKCS1PSourceAlgorithms ALGORITHM-IDENTIFIER ::= {
{ OID id-pSpecified PARAMETERS EncodingParameters },
... -- Allows for future expansion --
}
EncodingParameters ::= OCTET STRING(SIZE(0..MAX))
java.security.spec.MGF1ParameterSpec , PSource
| Modifier and Type | Field and Description |
|---|---|
| public static final OAEPParameterSpec | DEFAULT
Deprecated
since 19. This field uses the default values defined in the PKCS #1
standard.
The OAEP parameter set with all default values, i.e. "SHA-1" as message
digest algorithm, "MGF1" as mask generation function (mgf) algorithm,
MGF1ParameterSpec.SHA1 as parameters for the mask generation
function, and PSource.PSpecified.DEFAULT as the source of the
encoding input.
|
| private final String | |
| private final String | |
| private final AlgorithmParameterSpec | |
| private final PSource |
| Access | Constructor and Description |
|---|---|
| public | OAEPParameterSpec(String
the algorithm name for the message digest mdName, String the algorithm name for the mask generation function mgfName, AlgorithmParameterSpec the parameters for the mask generation function;
if mgfSpec, PSource null is specified, null will be returned by
getMGFParameters()the source of the encoding input P pSrc)Constructs a parameter set for OAEP padding as defined in
the PKCS #1 standard using the specified message digest
algorithm |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the message digest algorithm name.Returns the message digest algorithm name. |
| public String | Returns: the mask generation function algorithm name.Returns the mask generation function algorithm name. |
| public AlgorithmParameterSpec | Returns: the parameters for the mask generation function.Returns the parameters for the mask generation function. |
| public PSource |
| DEFAULT | back to summary |
|---|---|
| public static final OAEPParameterSpec DEFAULT
Deprecated since 19. This field uses the default values defined in the PKCS #1
standard. Some of these defaults are no longer recommended due
to advances in cryptanalysis -- see
Appendix B.1 of PKCS #1
for more details. Thus, it is recommended to create
a new The OAEP parameter set with all default values, i.e. "SHA-1" as message
digest algorithm, "MGF1" as mask generation function (mgf) algorithm,
| |
| mdName | back to summary |
|---|---|
| private final String mdName | |
| mgfName | back to summary |
|---|---|
| private final String mgfName | |
| mgfSpec | back to summary |
|---|---|
| private final AlgorithmParameterSpec mgfSpec | |
| pSrc | back to summary |
|---|---|
| private final PSource pSrc | |
| OAEPParameterSpec | back to summary |
|---|---|
| public OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc) Constructs a parameter set for OAEP padding as defined in
the PKCS #1 standard using the specified message digest
algorithm
| |
| getDigestAlgorithm | back to summary |
|---|---|
| public String getDigestAlgorithm() Returns the message digest algorithm name.
| |
| getMGFAlgorithm | back to summary |
|---|---|
| public String getMGFAlgorithm() Returns the mask generation function algorithm name.
| |
| getMGFParameters | back to summary |
|---|---|
| public AlgorithmParameterSpec getMGFParameters() Returns the parameters for the mask generation function.
| |
| getPSource | back to summary |
|---|---|
| public PSource getPSource() Returns the source of encoding input P.
| |