JDK-6458767 : OAEPPadding missing in the list of supported RSA paddings in SunJCE.java
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-08-10
  • Updated: 2022-05-23
  • Resolved: 2022-05-23
Related Reports
Duplicate :  
Description
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.

Comments
OAEPPadding was implemented in JDK-8020081
23-05-2022

EVALUATION Add to the list, run the test, see if it works. Also, add OAEPPadding to the list of "Supported Modes" in the SunProviders.html documentation. I left it out for the time-being.
10-08-2006