RFR: 8298420: PEM API: Implementation (Preview) [v14]

Weijun Wang weijun at openjdk.org
Thu May 1 20:30:57 UTC 2025


On Wed, 30 Apr 2025 15:50:31 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:

>> src/java.base/share/classes/sun/security/ec/ECPrivateKeyImpl.java line 157:
>> 
>>> 155:     }
>>> 156: 
>>> 157:     public byte[] getArrayS() {
>> 
>> Why remove `getArrayS0`? Not worth saving those bytes?
>
> I just couldn't figure out why it needed to be S0 and not just S. There is no S1 and it uses the existing arrayS.  Is there some spec that calls it S0?

`getArrayS0` does not clone. It's only safe to use it internally.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17543#discussion_r2070765384


More information about the security-dev mailing list