[jdk8u] RFR: 8263404: RsaPrivateKeySpec is always recognized as RSAPrivateCrtKeySpec in RSAKeyFactory.engineGetKeySpec

Paul Hohensee phh at openjdk.org
Thu Apr 13 12:38:20 UTC 2023


Critical fix, so replaces https://github.com/openjdk/jdk8u-dev/pull/302, which was against jdk8u-dev.

The backport from 11u was not clean because:

    the change to PKCS11Test.java affects code that does not exist in 8u, so is not included
    the new test, TestP11KeyFactoryGetRSAKeySpec.java, uses /lib/testlibrary instead of /test/lib

The new test and the modified existing tests pass, and the jdk/test/sun/security/pkcs11 tests pass as well as they did before this change.

-------------

Commit messages:
 - Backport a5d7de235101696463dba22792703c6809ff7fc4

Changes: https://git.openjdk.org/jdk8u/pull/41/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u&pr=41&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8263404
  Stats: 302 lines in 5 files changed: 245 ins; 24 del; 33 mod
  Patch: https://git.openjdk.org/jdk8u/pull/41.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u.git pull/41/head:pull/41

PR: https://git.openjdk.org/jdk8u/pull/41


More information about the jdk8u-dev mailing list