RFR: 4936767: Parameters for MessageDigest

Ferenc Rakoczi duke at openjdk.org
Wed Nov 15 19:03:34 UTC 2023

On Tue, 14 Nov 2023 17:21:53 GMT, Weijun Wang <weijun at 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

More information about the security-dev mailing list