RFR: 8308808: SunMSCAPI public keys returns internal key array

Ben Perez duke at openjdk.org
Mon Jun 12 19:03:21 UTC 2023


Changed `getEncoded` for both EC and RSA to return a copy of the internal key array to avoid mutability issues.

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

Commit messages:
 - updated copywrite
 - Fixed getEncoded for CRSAPublicKey
 - Fixed imports and formatting
 - Modify getEncoded to return copy of encoding. Added test.

Changes: https://git.openjdk.org/jdk/pull/14425/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14425&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8308808
  Stats: 33 lines in 2 files changed: 30 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/14425.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14425/head:pull/14425

PR: https://git.openjdk.org/jdk/pull/14425



More information about the security-dev mailing list