RFR: JDK-8311592 ECKeySizeParameterSpec causes too many exceptions on third party providers
Hai-May Chao
hchao at openjdk.org
Mon Jul 24 17:56:45 UTC 2023
On Tue, 18 Jul 2023 03:58:50 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:
> Hi,
>
> This fix eliminates needless exceptions each time the EC key size is obtained through AlgorithmParameters on third party providers. These providers throw an InvalidParameterSpecException as `sun.security.util.KeyUtil.getKey()` sends an internal `sun.security.util.ECKeySizeParameterSpec`. The exception is properly handled, but the number of exceptions becomes excessive with TLS.
> Calling ECKeySizeParameterSpec only with SunEC resolves this issue.
>
> Thanks
>
> Tony
Marked as reviewed by hchao (Committer).
LGTM
-------------
PR Review: https://git.openjdk.org/jdk/pull/14916#pullrequestreview-1543980287
PR Comment: https://git.openjdk.org/jdk/pull/14916#issuecomment-1648351803
More information about the security-dev
mailing list