public class OAEPParameterSpec extends Object implements AlgorithmParameterSpec
This padding algorithm is defined in the PKCS #1 standard.
| Modifier and Type | Field and Description |
|---|---|
static OAEPParameterSpec |
DEFAULT
The algorithm parameter instance with default values.
|
| Constructor and Description |
|---|
OAEPParameterSpec(String mdName,
String mgfName,
AlgorithmParameterSpec mgfSpec,
PSource pSrc)
Creates a new
OAEPParameterSpec instance with the specified
message digest algorithm name, mask generation function
(mgf) algorithm name, parameters for the mgf
algorithm and the source of the label L. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDigestAlgorithm()
Returns the algorithm name of the message digest.
|
String |
getMGFAlgorithm()
Returns the algorithm name of the mask generation function.
|
AlgorithmParameterSpec |
getMGFParameters()
Returns the algorithm parameter specification for the mask generation
function algorithm.
|
PSource |
getPSource()
Returns the source of the label
L. |
public static final OAEPParameterSpec DEFAULT
It uses the following parameters:
"SHA-1""MGF1"MGF1ParameterSpec.SHA1L: PSource.PSpecified.DEFAULTpublic OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc)
OAEPParameterSpec instance with the specified
message digest algorithm name, mask generation function
(mgf) algorithm name, parameters for the mgf
algorithm and the source of the label L.mdName - the message digest algorithm name.mgfName - the mask generation function algorithm name.mgfSpec - the algorithm parameter specification for the mask generation
function algorithm.pSrc - the source of the label L.NullPointerException - if one of mdName, mgfName or
pSrc is null.public String getDigestAlgorithm()
public String getMGFAlgorithm()
public AlgorithmParameterSpec getMGFParameters()
public PSource getPSource()
L.L.