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 d457a8c commit 5d875a1
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 @@ -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
Expand Down

0 comments on commit 5d875a1

Please sign in to comment.