On Tue, 2 Sep 2025 16:54:18 GMT, Weijun Wang <[email protected]> wrote:

>> Implement HPKE as defined in https://datatracker.ietf.org/doc/rfc9180/.
>> 
>> <img alt="image" 
>> src="https://github.com/user-attachments/assets/1e25c4bc-63a9-41ae-81a9-3f644cf59ee3";
>>  />
>
> Weijun Wang has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   cannot reset with withMethods

New commit pushed. The `with` methods can no longer be used to "reset" a field 
to its default value, for example, calling `withInfo(new byte[0])` to remove 
the non-default info or `withAuthKey(null)` to revert to `mode_base`.

Reasons:
1. Allowing a default value might hide unintended empty user input.
2. It's hard to manage all the fields in an `HPKEParameterSpec` object and 
reuse it back and forth.

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

PR Comment: https://git.openjdk.org/jdk/pull/18411#issuecomment-3246128017

Reply via email to