Skip to content

Commit 7046ee9

Browse files
committed
mlkem: avx2: update keccakf1600 -- previous implementation was bmi1: this commit changes current implementation to bmi1 as well (andn)
1 parent 2ac8b2e commit 7046ee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypto_kem/mlkem/mlkem768/amd64/avx2/keccakf1600.jinc

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ inline fn keccakf1600_set_row(
154154
x1 = (x + 1) % 5;
155155
x2 = (x + 2) % 5;
156156

157-
// t = !b[x1] & b[x2]; // bmi1
158-
t = b[x1]; t = !t; t &= b[x2];
157+
t = !b[x1] & b[x2]; // bmi1
158+
//t = b[x1]; t = !t; t &= b[x2];
159159

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

0 commit comments

Comments
 (0)