JDK-8180307 : Update JDK 9 Required Cipher Algorithms
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2017-05-12
  • Updated: 2019-08-03
  • Resolved: 2017-05-17
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 10 JDK 9
10Fixed 9 b171Fixed
Related Reports
Relates :  
Relates :  
Description
The following new required Cipher algorithms were approved as part of JDK-8015388:

    AES/GCM/NoPadding (128)
    AES/GCM/PKCS5Padding (128)

"AES/GCM/PKCS5Padding (128)" should be removed from this list. PKCS5Padding is not a valid padding for AES. There is a bug in the JDK in which the SunJCE provider accepts PKCS5Padding as a valid padding, but it should throw a NoSuchAlgorithmException (see JDK-8180392).

Also, the required algorithms for JDK 9 were accidentally omitted for the Cipher class as part of JDK-8015388. The following should be added to the implementation requirements of the class summary:

    AES/GCM/NoPadding (128)