RFR: 8297065: DerOutputStream operations should not throw IOExceptions [v2]

Valerie Peng valeriep at openjdk.org
Tue Nov 29 12:56:33 UTC 2022


On Sun, 27 Nov 2022 16:31:22 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> src/jdk.crypto.ec/share/classes/sun/security/ec/ECPrivateKeyImpl.java line 99:
>> 
>>> 97:     }
>>> 98: 
>>> 99:     private void makeEncoding(byte[] s) throws InvalidKeyException {
>> 
>> No need for the InvalidKeyException?
>
> `ECParameters::getAlgorithmParameters` throws it.

Hmm, alright.

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

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


More information about the security-dev mailing list