Class OAEPParameterSpec

    • Constructor Detail

      • OAEPParameterSpec

        public 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.
        Parameters:
        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.
        Throws:
        NullPointerException - if one of mdName, mgfName or pSrc is null.
    • Method Detail

      • getDigestAlgorithm

        public String getDigestAlgorithm()
        Returns the algorithm name of the message digest.
        Returns:
        the algorithm name of the message digest.
      • getMGFAlgorithm

        public String getMGFAlgorithm()
        Returns the algorithm name of the mask generation function.
        Returns:
        the algorithm name of the mask generation function.
      • getMGFParameters

        public AlgorithmParameterSpec getMGFParameters()
        Returns the algorithm parameter specification for the mask generation function algorithm.
        Returns:
        the algorithm parameter specification for the mask generation function algorithm.
      • getPSource

        public PSource getPSource()
        Returns the source of the label L.
        Returns:
        the source of the label L.