Skip to content

Commit

Permalink
mlkem: poly.jinc update from formosa-crypto/formosa-mlkem#15
Browse files Browse the repository at this point in the history
  • Loading branch information
tfaoliveira committed Feb 7, 2024
1 parent 0e208ab commit 1b2fadc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/crypto_kem/mlkem/mlkem768/amd64/ref/poly.jinc
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ fn _poly_basemul(reg ptr u16[MLKEM_N] rp, reg const ptr u16[MLKEM_N] ap bp) -> r
reg u16 b0;
reg u16 b1;
reg u16 t;
reg ptr u16[128] zetasp;
reg ptr u16[64] zetasp;
reg u64 zetasctr;
reg u64 i;

stack ptr u16[MLKEM_N] srp;

srp = rp;

zetasctr = 64;
i = 0;

while(i < MLKEM_N)
while(i < MLKEM_N - 3)
{
zetasp = jzetas;
zeta = zetasp[(int)zetasctr];
zetasctr += 1;
zetasp = jzetas[64:64];
zetasctr = i;
zetasctr >>= 2;
zeta = zetasp[zetasctr];

a0 = ap[(int)i];
b0 = bp[(int)i];
Expand Down

0 comments on commit 1b2fadc

Please sign in to comment.