From edd8c6e34e16ef2140a1c8ebad404559e44020f8 Mon Sep 17 00:00:00 2001 From: "Tommaso Gagliardoni (Kudelski Security)" <80652589+tgkudelski@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:25:48 +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 442614f..25984db 100644 --- a/crystals-kyber/poly.go +++ b/crystals-kyber/poly.go @@ -214,7 +214,7 @@ func (p *Poly) compress(d int) []byte { /* t[j] = uint16(((uint32(p[8*i+j])<<4)+uint32(q)/2)/ uint32(q)) & ((1 << 4) - 1)*/ t[j] = uint16(p[8*i+j]) - d0 = uint32(t << 4) + d0 = uint32(t[j] << 4) d0 += 1665 d0 *= 80635 d0 >>= 28