kyber
kyber copied to clipboard
Modulo bias
Security Code Review finding:
Another modulo bias in kyber was found in pairing/bn256/point.go on line 239, notice this is not necessarily a danger depending how the hashToPoint() method is later used, but it could be done using iterative hashing and masking until a value below the modulus is found to ensure a uniform distribution of the x coordinate.