org.bouncycastle.asn1.pkcs

Class RSAESOAEPparams

Implemented Interfaces:
DEREncodable

public class RSAESOAEPparams
extends ASN1Encodable

Field Summary

static AlgorithmIdentifier
DEFAULT_HASH_ALGORITHM
static AlgorithmIdentifier
DEFAULT_MASK_GEN_FUNCTION
static AlgorithmIdentifier
DEFAULT_P_SOURCE_ALGORITHM

Constructor Summary

RSAESOAEPparams()
The default version
RSAESOAEPparams(ASN1Sequence seq)
RSAESOAEPparams(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, AlgorithmIdentifier pSourceAlgorithm)

Method Summary

AlgorithmIdentifier
getHashAlgorithm()
static RSAESOAEPparams
getInstance(Object obj)
AlgorithmIdentifier
getMaskGenAlgorithm()
AlgorithmIdentifier
getPSourceAlgorithm()
DERObject
toASN1Object()
  RSAES-OAEP-params ::= SEQUENCE {
     hashAlgorithm      [0] OAEP-PSSDigestAlgorithms     DEFAULT sha1,
     maskGenAlgorithm   [1] PKCS1MGFAlgorithms  DEFAULT mgf1SHA1,
     pSourceAlgorithm   [2] PKCS1PSourceAlgorithms  DEFAULT pSpecifiedEmpty
   }
  
   OAEP-PSSDigestAlgorithms    ALGORITHM-IDENTIFIER ::= {
     { OID id-sha1 PARAMETERS NULL   }|
     { OID id-sha256 PARAMETERS NULL }|
     { OID id-sha384 PARAMETERS NULL }|
     { OID id-sha512 PARAMETERS NULL },
     ...

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Field Details

DEFAULT_HASH_ALGORITHM

public static final AlgorithmIdentifier DEFAULT_HASH_ALGORITHM


DEFAULT_MASK_GEN_FUNCTION

public static final AlgorithmIdentifier DEFAULT_MASK_GEN_FUNCTION


DEFAULT_P_SOURCE_ALGORITHM

public static final AlgorithmIdentifier DEFAULT_P_SOURCE_ALGORITHM

Constructor Details

RSAESOAEPparams

public RSAESOAEPparams()
The default version


RSAESOAEPparams

public RSAESOAEPparams(ASN1Sequence seq)


RSAESOAEPparams

public RSAESOAEPparams(AlgorithmIdentifier hashAlgorithm,
                       AlgorithmIdentifier maskGenAlgorithm,
                       AlgorithmIdentifier pSourceAlgorithm)

Method Details

getHashAlgorithm

public AlgorithmIdentifier getHashAlgorithm()


getInstance

public static RSAESOAEPparams getInstance(Object obj)


getMaskGenAlgorithm

public AlgorithmIdentifier getMaskGenAlgorithm()


getPSourceAlgorithm

public AlgorithmIdentifier getPSourceAlgorithm()


toASN1Object

public DERObject toASN1Object()
  RSAES-OAEP-params ::= SEQUENCE {
     hashAlgorithm      [0] OAEP-PSSDigestAlgorithms     DEFAULT sha1,
     maskGenAlgorithm   [1] PKCS1MGFAlgorithms  DEFAULT mgf1SHA1,
     pSourceAlgorithm   [2] PKCS1PSourceAlgorithms  DEFAULT pSpecifiedEmpty
   }
  
   OAEP-PSSDigestAlgorithms    ALGORITHM-IDENTIFIER ::= {
     { OID id-sha1 PARAMETERS NULL   }|
     { OID id-sha256 PARAMETERS NULL }|
     { OID id-sha384 PARAMETERS NULL }|
     { OID id-sha512 PARAMETERS NULL },
     ...  -- Allows for future expansion --
   }
   PKCS1MGFAlgorithms    ALGORITHM-IDENTIFIER ::= {
     { OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms },
    ...  -- Allows for future expansion --
   }
   PKCS1PSourceAlgorithms    ALGORITHM-IDENTIFIER ::= {
     { OID id-pSpecified PARAMETERS OCTET STRING },
     ...  -- Allows for future expansion --
  }
 
Overrides:
toASN1Object in interface ASN1Encodable

Returns:
the asn1 primitive representing the parameters.