Skip to content

Commit

Permalink
mlkem: avx2: update keccakf1600 -- previous implementation was bmi1: …
Browse files Browse the repository at this point in the history
…this commit changes current implementation to bmi1 as well (andn)
  • Loading branch information
tfaoliveira committed Feb 9, 2024
1 parent 2ac8b2e commit 7046ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto_kem/mlkem/mlkem768/amd64/avx2/keccakf1600.jinc
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ inline fn keccakf1600_set_row(
x1 = (x + 1) % 5;
x2 = (x + 2) % 5;

// t = !b[x1] & b[x2]; // bmi1
t = b[x1]; t = !t; t &= b[x2];
t = !b[x1] & b[x2]; // bmi1
//t = b[x1]; t = !t; t &= b[x2];

t ^= b[x];
if( x==0 && y==0 ){ t ^= s_rc; }
Expand Down

0 comments on commit 7046ee9

Please sign in to comment.