On Fri, 6 Jan 2023 15:52:03 GMT, Weijun Wang <wei...@openjdk.org> wrote:

> Modern signature algorithms provided by a 3rd-party provider might not be 
> recognized by JDK code yet.

src/java.base/share/classes/sun/security/pkcs/SignerInfo.java line 540:

> 538:                 }
> 539:                 if (keyAlg.equals("EC")) keyAlg = "ECDSA";
> 540:                 String sigAlg = digAlg + "with" + keyAlg;

The line could be moved into the try block.

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

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

Reply via email to