Class RSAESOAEPparams

    • Method Detail

      • getInstance

        public static RSAESOAEPparams getInstance​(java.lang.Object obj)
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
          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 --
          }
         
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        the asn1 primitive representing the parameters.