Skip to content

Commit

Permalink
fix bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tfaoliveira-sb committed Sep 26, 2024
1 parent 40ca063 commit e16b168
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions code/jasmin/mlkem_avx2/kem.jinc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ fn __crypto_kem_keypair_jazz(reg u64 pkp, reg u64 skp, reg ptr u8[MLKEM_SYMBYTES

for i=0 to MLKEM_INDCPA_PUBLICKEYBYTES/8
{
(u64)[skp + 8 * i] = (u64)[pkp + 8 * i];
t64 = (u64)[pkp + 8*i];
(u64)[skp] = t64;
skp += 8;
}

s_skp += MLKEM_POLYVECBYTES + MLKEM_INDCPA_PUBLICKEYBYTES;
s_skp = skp;
pkp = s_pkp;
t64 = MLKEM_PUBLICKEYBYTES;

Expand All @@ -37,15 +39,19 @@ fn __crypto_kem_keypair_jazz(reg u64 pkp, reg u64 skp, reg ptr u8[MLKEM_SYMBYTES

for i=0 to 4
{
(u64)[skp + 8 * i] = h_pk[u64 i];
t64 = h_pk[u64 i];
(u64)[skp] = t64;
skp += 8;
}

randomnessp = s_randomnessp;
randomnessp2 = randomnessp[MLKEM_SYMBYTES:MLKEM_SYMBYTES];

for i=0 to MLKEM_SYMBYTES/8
{
(u64)[skp + 8 * i + 32] = randomnessp2[u64 i];
t64 = randomnessp2[u64 i];
(u64)[skp] = t64;
skp += 8;
}
}

Expand Down

0 comments on commit e16b168

Please sign in to comment.