PSourceAlgorithm ::= AlgorithmIdentifier {
{PKCS1PSourceAlgorithms}
}
where
PKCS1PSourceAlgorithms ALGORITHM-IDENTIFIER ::= {
{ OID id-pSpecified PARAMETERS EncodingParameters },
... -- Allows for future expansion --
}
EncodingParameters ::= OCTET STRING(SIZE(0..MAX))
| Modifier and Type | Class and Description |
|---|---|
| public static class | PSource.
This class is used to explicitly specify the value for encoding input P in OAEP Padding. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| pSrcName | back to summary |
|---|---|
| private final String pSrcName | |
| PSource | back to summary |
|---|---|
| protected PSource(String pSrcName) Constructs a source of the encoding input P for OAEP padding as defined in the PKCS #1 standard using the specified PSource algorithm.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Returns the PSource algorithm name.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final PSource. | DEFAULT
The encoding input P whose value equals byte[0]. |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | PSpecified(byte[]
the value of the encoding input. The contents
of the array are copied to protect against subsequent
modification. p)Constructs the source explicitly with the specified
value |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the value of encoding input P. A new array is returned each time this method is called.Returns the value of encoding input P. |
| DEFAULT | back to summary |
|---|---|
| public static final PSource. The encoding input P whose value equals byte[0]. | |
| p | back to summary |
|---|---|
| private final byte[] p | |
| PSpecified | back to summary |
|---|---|
| public PSpecified(byte[] p) Constructs the source explicitly with the specified
value
| |
| getValue | back to summary |
|---|---|
| public byte[] getValue() Returns the value of encoding input P.
| |