On Fri, 3 Oct 2025 20:25:00 GMT, Sean Mullan <[email protected]> wrote:

>> src/java.base/share/classes/javax/crypto/EncryptedPrivateKeyInfo.java line 
>> 413:
>> 
>>> 411:      * {@code AlgorithmParameterSpec} are the provider's algorithm 
>>> defaults.
>>> 412:      *
>>> 413:      * @since 25
>> 
>> Throwing a RuntimeException on encryption error is too general.
>
> On NPE, there is no `key` param.

Ok, I can reword RuntimeException somewhat, but it really is summed up by 
`Cipher.doFinal()` throwing an error, so an actual "encryption error".

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27147#discussion_r2417376649

Reply via email to