Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dev/x86_64/src/arith_native_x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include <stdint.h>
#include "consts.h"

#define mlk_sha3_keccak4_f1600 MLK_NAMESPACE(mlk_sha3_keccak4_f1600)
extern void mlk_sha3_keccak4_f1600(void *states,
const uint64_t *round_constants);

#define MLK_AVX2_REJ_UNIFORM_BUFLEN \
(3 * 168) /* REJ_UNIFORM_NBLOCKS * SHAKE128_RATE */

Expand Down
2 changes: 2 additions & 0 deletions mlkem/mlkem_native.S
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
#include "src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_v84a_scalar_hybrid_asm.S"
#endif /* MLK_SYS_AARCH64 */
#if defined(MLK_SYS_X86_64)
#include "src/fips202/native/x86_64/src/sha3_keccak4_f1600.S"
#endif
#endif /* MLK_CONFIG_USE_NATIVE_BACKEND_FIPS202 */

Expand Down Expand Up @@ -581,6 +582,7 @@
#undef mlk_reduce_avx2
#undef mlk_rej_uniform_asm
#undef mlk_rej_uniform_table
#undef mlk_sha3_keccak4_f1600
#undef mlk_tomont_avx2
/* mlkem/src/native/x86_64/src/consts.h */
#undef MLK_AVX2_BACKEND_DATA_OFFSET_MULCACHE_TWIDDLES
Expand Down
1 change: 1 addition & 0 deletions mlkem/mlkem_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@
#undef mlk_reduce_avx2
#undef mlk_rej_uniform_asm
#undef mlk_rej_uniform_table
#undef mlk_sha3_keccak4_f1600
#undef mlk_tomont_avx2
/* mlkem/src/native/x86_64/src/consts.h */
#undef MLK_AVX2_BACKEND_DATA_OFFSET_MULCACHE_TWIDDLES
Expand Down
444 changes: 13 additions & 431 deletions mlkem/src/fips202/native/x86_64/src/KeccakP_1600_times4_SIMD256.c

Large diffs are not rendered by default.

Loading
Loading