Files
wolfssl/wolfcrypt
Tobias Frauenschläger ca449b1263 Use alignment-safe reads in ML-KEM mlkem_cbd_eta3
The little-endian large-code path of mlkem_cbd_eta3 cast the
caller-supplied byte buffer to word32* and read through it. The buffer
has no alignment guarantee, so on strict-alignment targets such as
Cortex-M3 and M4 with unaligned-access trapping enabled the read faults
or returns wrong values, and the cast violates strict aliasing. Read
each word with readUnalignedWord32, which does an alignment-safe byte
copy, matching the neighboring mlkem_cbd_eta2.

Fixes F-6781.
2026-08-01 13:13:00 +02:00
..