Skip to main content

low_bits

Function low_bits 

Source
pub fn low_bits(r: i32, gamma2: i32) -> i32
Expand description

Extract the low-order representative of a coefficient.

Implements Algorithm 38 of FIPS 204 (LowBits). Returns the r0 component from decompose. The norm of r0 is checked during signing to decide whether to accept or reject a candidate signature.