Skip to content

Commit

Permalink
Don't use scalar/Neon/Neon Keccak-x4 hybrid by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hanno-becker committed Oct 1, 2024
1 parent bed81f5 commit a91679f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fips202/asm/asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ void keccak_f1600_x4_scalar_v8a_v84a_asm_hybrid(uint64_t *state);
// For Apple-M cores, we use a plain implementation leveraging SHA3
// instructions only.
#if defined(__APPLE__)
//#define MLKEM_USE_FIPS202_X2_ASM
//#define keccak_f1600_x2_asm keccak_f1600_x2_v84a_asm_clean
#define MLKEM_USE_FIPS202_X4_ASM
#define keccak_f1600_x4_asm keccak_f1600_x4_scalar_v8a_v84a_asm_hybrid
#define MLKEM_USE_FIPS202_X2_ASM
#define keccak_f1600_x2_asm keccak_f1600_x2_v84a_asm_clean
#else /* __APPLE__ */
#define MLKEM_USE_FIPS202_X2_ASM
#define keccak_f1600_x2_asm keccak_f1600_x2_v8a_v84a_asm_hybrid
Expand Down

0 comments on commit a91679f

Please sign in to comment.