On Sat, 16 Apr 2022 13:59:25 GMT, John Jiang <[email protected]> wrote:
> It would not to generate the certificate's ECParameterSpec and NamedGroup
> multiple times in method `SignatureScheme::getSignerOfPreferableAlgorithm`.
src/java.base/share/classes/sun/security/ssl/SignatureScheme.java line 494:
> 492: x509Possession.getECParameterSpec();
> 493: if (params != null &&
> 494: ss.namedGroup == NamedGroup.valueOf(params))
> {
look at here.
if : param == null and namedGroup == null and ss.namedGroup == null,
the codes before this change will not enter the if branch, but the codes after
this changes will enter the if branch.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8271