RFR: 8374755: ML-KEM's 12-bit decompression uses incorrect assertions

Andrew Dinn adinn at openjdk.org
Mon Jan 12 10:39:35 UTC 2026


On Fri, 9 Jan 2026 14:41:07 GMT, Ferenc Rakoczi <duke at openjdk.org> wrote:

> The preconditions for the aarch64 and the AVX-512 intrinsic implementations of the implKyber12To16() method of com.sun.crypto.provider.ML_KEM are different and the AVX-512 one has stricter preconditions on the input, which was not recorded in the assert() before calling the function (although they were satisfied by all calling code). Now the assert() is corrected, and with these preconditions, the aarch64 implementation is simplified.

Changes look good. What testing have you run?

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

PR Comment: https://git.openjdk.org/jdk/pull/29141#issuecomment-3737885979


More information about the hotspot-compiler-dev mailing list