Skip to content

Commit 37c9502

Browse files
committed
mlkem786: merge add
1 parent 318662c commit 37c9502

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ fn __crypto_kem_dec_jazz(reg u64 shkp, reg u64 ctp, reg u64 skp)
106106

107107
buf[0:MLKEM_INDCPA_MSGBYTES] = __indcpa_dec_1(buf[0:MLKEM_INDCPA_MSGBYTES], ctp, skp);
108108

109-
//hp = #LEA(skp + 32);
110-
hp = skp; hp += 32;
111-
hp += 24 * MLKEM_K * MLKEM_N>>3;
109+
hp = skp;
110+
hp += 32 + (24 * MLKEM_K * MLKEM_N>>3);
112111

113112
/* fixme: should loads be 256-bits long? */
114113
for i=0 to MLKEM_SYMBYTES/8

src/crypto_kem/mlkem/mlkem768/amd64/ref/kem.jinc

+2-3
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ fn __crypto_kem_dec_jazz(reg u64 shkp, reg u64 ctp, reg u64 skp)
107107

108108
buf[0:MLKEM_MSGBYTES] = __indcpa_dec(buf[0:MLKEM_MSGBYTES], ctp, skp);
109109

110-
//hp = #LEA(skp + 32);
111-
hp = skp; hp += 32;
112-
hp += 24 * MLKEM_K * MLKEM_N>>3;
110+
hp = skp;
111+
hp += 32 + (24 * MLKEM_K * MLKEM_N>>3);
113112

114113
for i=0 to MLKEM_SYMBYTES/8
115114
{

0 commit comments

Comments
 (0)