JDK-8176837 : SunPKCS11 provider needs to check more details on PKCS11 Mechanism
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto:pkcs11
  • Affected Version: 9,11,14
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-03-15
  • Updated: 2024-09-19
  • Resolved: 2019-09-23
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 11 JDK 13 JDK 14 JDK 8 Other
11.0.6-oracleFixed 13.0.4Fixed 14 b16Fixed 8u411Fixed openjdk8u322Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Currently, SunPKCS11 provider assumes the listed supported mechanism can be used fully, i.e. cipher mechanisms can perform both encrypt and decrypt operations, signature mechanisms can perform both signing and verification. This may be true initially, however, as mechanisms become weak or obsolete, this may not hold true anymore.
One example, in S11.4, RC4 can no longer be used for encryption. However, it still shows up as supported mechanism which supports decryption for older applications. SunPKCS11 provider needs to be updated accordingly,
Comments
Fix request (8u) Requesting backport to 8u for better support PKCS11 in Solaris 11.4 The patch applies almost clean except of the extra dummyConfigId field in the SunPKCS11.java Reviewed at https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-August/014251.html
06-09-2021

Fix request (13u) Requesting backport to 13u for parity with 11u, applies cleanly.
26-05-2020

Fix request (11u) Backport requested to match Oracle 11.0.6. Patch applies cleanly, no test failures observed.
11-11-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/3c8f89e2ec03 User: valeriep Date: 2019-09-20 21:34:30 +0000
23-09-2019

Solaris PKCS11 library moved some mechanisms to legacy status by partial support, i.e. cipher with only decryption capability. SunPKCS11 provider should not include these partially supported mechanisms.
19-09-2019

Add noreg-other label as this is reproducible by running existing PKCS11 regression tests on Solaris 11.4 platform (after S12 is relabeled to S11.4).
05-09-2019

Lowering the priority as this seems to be Solaris-only issue.
11-04-2019