JDK-8020081 : Cipher with OAEPPadding and OAEPParameterSpec can't be created
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-07-08
  • Updated: 2022-05-23
  • Resolved: 2013-08-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b105Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
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)

Comments
com/sun/crypto/provider/Cipher/RSA/TestOAEPPadding.java have passed in B105 builds.
30-08-2013

URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/5b14d702b0b8 User: lana Date: 2013-08-26 18:32:19 +0000
26-08-2013

URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5b14d702b0b8 User: mullan Date: 2013-08-13 13:06:23 +0000
13-08-2013

Technically this isn't a bug, so I changed it to enhancement.
08-07-2013