Files
wolfssl/wolfcrypt
Tobias Frauenschläger 097ddc19d8 Use alignment-safe writes in ML-KEM mlkem_vec_compress_10_c
The little-endian large-code path of mlkem_vec_compress_10_c cast the
output byte buffer to word32* and issued five 32-bit stores through it.
That buffer is the caller-supplied ML-KEM ciphertext, which has no
alignment guarantee, so on strict-alignment targets the store bus-faults
and the cast violates strict aliasing. Write each word with
writeUnalignedWord32, which does an alignment-safe byte copy, matching
mldsa_encode_w1_88_c and the neighboring ML-KEM sampling code.

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