On Tue, 14 Nov 2023 17:21:53 GMT, Weijun Wang <wei...@openjdk.org> wrote:
> Add parameters to `MessageDigest` and introduce `SHAKE256-LEN` with an > integer parameter. SHAKE is also an eXtensible Output Function, and Kyber is using it that way. In my preliminary Kyber implementation I just added a squeeze() method and initialized it with length 0 to signal that it is used as an XOF, not a digest. Have you considered this? ------------- PR Comment: https://git.openjdk.org/jdk/pull/16660#issuecomment-1813093402