From 7362bf2fc5cc169fb9e468f243ff0352dead7b04 Mon Sep 17 00:00:00 2001 From: Tiago Oliveira Date: Wed, 21 Feb 2024 22:47:03 +0000 Subject: [PATCH] https://github.com/formosa-crypto/libjade/issues/105 --- src/crypto_kem/kyber/common/amd64/avx2/reduce.jinc | 1 - src/crypto_kem/kyber/common/amd64/ref/reduce.jinc | 1 - 2 files changed, 2 deletions(-) diff --git a/src/crypto_kem/kyber/common/amd64/avx2/reduce.jinc b/src/crypto_kem/kyber/common/amd64/avx2/reduce.jinc index fa609b2c..b5fd83df 100644 --- a/src/crypto_kem/kyber/common/amd64/avx2/reduce.jinc +++ b/src/crypto_kem/kyber/common/amd64/avx2/reduce.jinc @@ -86,7 +86,6 @@ fn __barrett_reduce(reg u16 a) -> reg u16 //t = #SAR_32(t, 26); t >>s= 26; t *= KYBER_Q; - r = t; r = a; r -= t; return r; diff --git a/src/crypto_kem/kyber/common/amd64/ref/reduce.jinc b/src/crypto_kem/kyber/common/amd64/ref/reduce.jinc index 73b2d30e..e18fee31 100644 --- a/src/crypto_kem/kyber/common/amd64/ref/reduce.jinc +++ b/src/crypto_kem/kyber/common/amd64/ref/reduce.jinc @@ -39,7 +39,6 @@ fn __barrett_reduce(reg u16 a) -> reg u16 //t = #SAR_32(t, 26); t >>s= 26; t *= KYBER_Q; - r = t; r = a; r -= t; return r;