Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8020081

Cipher with OAEPPadding and OAEPParameterSpec can't be created

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: security-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b105
    • Verification:
      Verified

      Description

      According to the Cipher section of the Standard Algorithm Names document (http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Cipher), you can specify a padding as OAEPPadding and initialize it with an OAEPParameterSpec for the digest and mgf components. However, this doesn't work with the Oracle SunJCE provider, you get a NoSuchAlgorithmException before you can initialize the Cipher with the OAEPParameterSpec:

      Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/ECB/OAEPPadding
      at javax.crypto.Cipher.getInstance(Cipher.java:535)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ascarpino Anthony Scarpino
                Reporter:
                mullan Sean Mullan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: