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

Anthony Scarpino ascarpino at openjdk.org
Thu Sep 25 22:44:08 UTC 2025


On Wed, 17 Sep 2025 21:49:05 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> This only checks if one is available in the private key material.  If there is none, null is fine.
>> 
>> The domain parameters are kept as part of private key SEC1v2 encoding and can be read when generating a private key with a KeyFactory.   Translating the encoding could be error-prone, and maybe incompatible.
>
> Oh, I meant if both [0] and [1] are there you can skip [0] and read [1]. Currently you just check for [1].

Oh yes, I didn't add a skip.

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

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


More information about the security-dev mailing list