RFR: JDK-8311592 ECKeySizeParameterSpec causes too many exceptions on third party providers
Valerie Peng
valeriep at openjdk.org
Mon Jul 24 20:55:40 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 valeriep (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/14916#pullrequestreview-1544260493
More information about the security-dev
mailing list