Skip to content

Commit 6b89fae

Browse files
committed
FIPS202/x86_64: Don't use native x4 backend on x86_64 when not needed
Match the AArch64 behavior and skip the native Keccak-f1600x4 backend when MLD_CONFIG_SERIAL_FIPS202_ONLY or MLD_CONFIG_REDUCE_RAM is set. Signed-off-by: Matthias J. Kannwischer <matthias@zerorisc.com>
1 parent 6069a57 commit 6b89fae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • mldsa/src/fips202/native

mldsa/src/fips202/native/auto.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#include "aarch64/auto.h"
1717
#endif
1818

19-
#if defined(MLD_SYS_X86_64) && defined(MLD_SYS_X86_64_AVX2)
19+
#if defined(MLD_SYS_X86_64) && defined(MLD_SYS_X86_64_AVX2) && \
20+
!defined(MLD_CONFIG_SERIAL_FIPS202_ONLY) && \
21+
!defined(MLD_CONFIG_REDUCE_RAM)
2022
#include "x86_64/xkcp.h"
2123
#endif
2224

0 commit comments

Comments
 (0)