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 ea1b612 commit a7cf5ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crystals-kyber/poly.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ func (p *Poly) compress(d int) []byte {
for j := 0; j < 8; j++ {
/* 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[j] << 4)
d0 = uint32(p[8*i+j]) << 4
d0 += 1665
d0 *= 80635
d0 >>= 28
Expand Down

0 comments on commit a7cf5ef

Please sign in to comment.