Integrated: JDK-8311592 ECKeySizeParameterSpec causes too many exceptions on third party providers

Anthony Scarpino ascarpino at openjdk.org
Tue Jul 25 15:52:00 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

This pull request has now been integrated.

Changeset: e554fdee
Author:    Anthony Scarpino <ascarpino at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e554fdee254ce51d605fe127b73644620e87e23b
Stats:     14 lines in 1 file changed: 5 ins; 3 del; 6 mod

8311592: ECKeySizeParameterSpec causes too many exceptions on third party providers

Reviewed-by: hchao, valeriep

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

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


More information about the security-dev mailing list