Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Update poly.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tgkudelski authored Jan 16, 2024
1 parent d2370c3 commit edd8c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crystals-kyber/poly.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit edd8c6e

Please sign in to comment.