On Mon, 15 Jun 2026 22:04:12 GMT, Weijun Wang <[email protected]> wrote:

>> Remove `RawKeySpec`.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Weijun Wang has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   more key check; no raw private key; dedup test

src/java.base/share/classes/sun/security/provider/HSS.java line 869:

> 867:                     return key;
> 868:                 }
> 869:                 String format = key.getFormat();

Should there be a check that the `key` is a `PublicKey`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31521#discussion_r3417817436

Reply via email to