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

Paul Hohensee phh at openjdk.org
Wed Apr 12 23:27:48 UTC 2023


The backport from 11u was not clean because:

1. the change to PKCS11Test.java affects code that does not exist in 8u, so is not included
2. 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-dev/pull/302/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=302&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8263404
  Stats: 310 lines in 5 files changed: 253 ins; 24 del; 33 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/302.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/302/head:pull/302

PR: https://git.openjdk.org/jdk8u-dev/pull/302


More information about the jdk8u-dev mailing list