In this PR I updated the EC key size and updated the regular expressions used 
to parse the output of the jarsigner. In addition to updating default key sizes 
base on Java version, I also updated the logic for determining the default 
signing algorithm which is based on the version of jarsigner/java used to sign 
the jar file and the size of the key being used.

I ran this test with JDKs 17.0.8, 20.0.2, and 21b26.

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

Commit messages:
 - 8292704: sun/security/tools/jarsigner/compatibility/Compatibility.java use 
wrong key size for EC

Changes: https://git.openjdk.org/jdk/pull/14602/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14602&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292704
  Stats: 58 lines in 2 files changed: 44 ins; 1 del; 13 mod
  Patch: https://git.openjdk.org/jdk/pull/14602.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14602/head:pull/14602

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

Reply via email to