On Thu, 6 Mar 2025 15:12:54 GMT, Weijun Wang <[email protected]> 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