From b1c357381141bffe63b9dae6579dc2e1b4981f7e Mon Sep 17 00:00:00 2001 From: "Tommaso Gagliardoni (Kudelski Security)" <80652589+tgkudelski@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:27:55 +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 25984db..15ded9b 100644 --- a/crystals-kyber/poly.go +++ b/crystals-kyber/poly.go @@ -218,7 +218,7 @@ func (p *Poly) compress(d int) []byte { d0 += 1665 d0 *= 80635 d0 >>= 28 - t[j] = d0 & 0xf; + t[j] = uint16(d0 & 0xf) } c[id] = byte(t[0]) | byte(t[1]<<4) c[id+1] = byte(t[2]) | byte(t[3]<<4)