From 5d875a1f686d9b9e4c2c75d33584460135700e06 Mon Sep 17 00:00:00 2001 From: "Tommaso Gagliardoni (Kudelski Security)" <80652589+tgkudelski@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:13:58 +0100 Subject: [PATCH] Update poly.go --- crystals-kyber/poly.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crystals-kyber/poly.go b/crystals-kyber/poly.go index ec3ee4c..5c74780 100644 --- a/crystals-kyber/poly.go +++ b/crystals-kyber/poly.go @@ -303,7 +303,7 @@ func (p *Poly) compress(d int) []byte { for j := 0; j < 8; j++ { /* t[j] = uint16(((uint32(p[8*i+j])<<11)+uint32(q)/2)/ uint32(q)) & ((1 << 11) - 1) */ - d0 = uint64(p[4*i+j]) << 11 + d0 = uint64(p[8*i+j]) << 11 d0 += 1664 d0 *= 645084 d0 >>= 31