RFR: 8351351: Pre-hash mode, context string, etc for ML-DSA
Matthew Donovan
mdonovan at openjdk.org
Tue Feb 3 19:40:36 UTC 2026
On Thu, 6 Mar 2025 15:12:54 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> Add a new `SignatureParameterSpec` internal API to fully utilize the capabilities of ML-DSA. The updated ACVP test demonstrates its usage.
test/jdk/sun/security/provider/ML-DSA/PreHashed.java line 65:
> 63: var s = Signature.getInstance("HashML-DSA-65-SHA512");
> 64: s.setParameter(new SignatureParameterSpec("SHA-512", new byte[10]));
> 65: Utils.runAndCheckException(
There is also an `Assert.assertThrows()` method that I wrote not knowing that this `Utils` method exists. For consistency, the Asserts method might be preferred.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23934#discussion_r1987271535
More information about the security-dev
mailing list