RFR: 4936767: Parameters for MessageDigest

Sean Mullan mullan at openjdk.org
Wed Nov 15 18:58: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.

src/java.base/share/classes/java/security/MessageDigest.java line 436:

> 434:      *         {@code MessageDigestSpi} implementation for the
> 435:      *         specified algorithm and parameters
> 436:      *

Is there a reason why you didn't throw IAPE when params are bad?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16660#discussion_r1394650843



More information about the security-dev mailing list