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

OAEPPadding missing in the list of supported RSA paddings in SunJCE.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • security-libs
    • None
    • Cause Known
    • generic
    • generic

      As a result, Cipher.getInstance("RSA/ECB/OAEPPadding") will return a no-such algorithm exception.

      import java.io.*;
      import java.security.*;
      import javax.crypto.*;

      public class template1 {

          public static void main(String args[]) throws Exception {
              Cipher cipher =
                  Cipher.getInstance("RSA//OAEPPadding");
              System.out.println(cipher.getProvider());
          }
      }

      Andreas adds:

      It appears "OAEPPadding" was added to RSACipher by 4923484 but this probably never worked correctly because the supported paddings in SunJCE were not updated.

            wetmore Bradford Wetmore
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: