RFR: 4936767: Parameters for MessageDigest

Weijun Wang weijun at openjdk.org
Wed Nov 15 20:54:30 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.

There are multiple places where `MessageDigest` claims it has a fixed length digest output. We can discuss more on whether we can provide the XOF function inside `MessageDigest` or with a different class. This is definitely something worth doing.

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

PR Comment: https://git.openjdk.org/jdk/pull/16660#issuecomment-1813244596


More information about the security-dev mailing list