RFR: 8360564: Implement JEP 524: PEM Encodings of Cryptographic Objects (Second Preview) [v4]

Anthony Scarpino ascarpino at openjdk.org
Fri Oct 10 16:36:04 UTC 2025


On Fri, 3 Oct 2025 20:25:00 GMT, Sean Mullan <mullan at openjdk.org> 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


More information about the security-dev mailing list