de.flexiprovider.core.rsa
Class RSAOAEPParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.core.rsa.RSAOAEPParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class RSAOAEPParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class specifies parameters for RSA-OAEP (implemented by RSA_PKCS1_v2_1). The parameters consist of the OIDs of a hash function, mask generation function, and PSource algorithm.

The default hash function is SHA1 (1.3.14.3.2.26). The only supported mask generation function is MGF1 (1.2.840.113549.1.1.8). The only supported PSource algorithm is pSpecified (1.2.840.113549.1.1.9).

Author:
Thomas Wahrenbruch, Ralf-Philipp Weinmann, Martin Döring

Field Summary
static java.lang.String DEFAULT_MD
          The OID of the default hash function (SHA1)
static java.lang.String DEFAULT_MGF
          The OID of the default mask generation function (MGF1)
static java.lang.String DEFAULT_PSOURCE
          The OID of the default PSource algorithm (pSpecified)
 
Constructor Summary
RSAOAEPParameterSpec()
          Construct the default RSA-OAEP parameters.
RSAOAEPParameterSpec(java.lang.String md)
          Construct new RSA-OAEP parameters from the given OIDs of the hash function, mask generation function, and PSource algorithm.
 
Method Summary
 boolean equals(java.lang.Object other)
          Compare the parameters with another object
 java.lang.String getMD()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MD

public static final java.lang.String DEFAULT_MD
The OID of the default hash function (SHA1)

DEFAULT_MGF

public static final java.lang.String DEFAULT_MGF
The OID of the default mask generation function (MGF1)

DEFAULT_PSOURCE

public static final java.lang.String DEFAULT_PSOURCE
The OID of the default PSource algorithm (pSpecified)
Constructor Detail

RSAOAEPParameterSpec

public RSAOAEPParameterSpec()
Construct the default RSA-OAEP parameters. Choose the default message digest.

RSAOAEPParameterSpec

public RSAOAEPParameterSpec(java.lang.String md)
Construct new RSA-OAEP parameters from the given OIDs of the hash function, mask generation function, and PSource algorithm.
Parameters:
md - the OID of the hash function
Method Detail

getMD

public java.lang.String getMD()
Returns:
the OID of the hash function

equals

public boolean equals(java.lang.Object other)
Compare the parameters with another object
Overrides:
equals in class java.lang.Object
Parameters:
other - the other object
Returns:
the result of the comparison

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
the hash code of the parameters

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a human readable form of the parameters