- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for constantTimeSelectLe (0.32 seconds)
-
lib/fips140/v1.26.0.zip
int32 { x := int32(fieldFromMontgomery(r)) // x <= q / 2 ? x : x - q return constantTimeSelectLe(x, q/2, x, x-q) } // fieldInfinityNorm returns the infinity norm ||r||∞ of r, or the absolute // value of r centered around 0. func fieldInfinityNorm(r fieldElement) uint32 { x := int32(fieldFromMontgomery(r)) // x <= q / 2 ? x : |x - q| // |x - q| = -(x - q) = q - x because x < q => x - q < 0 return uint32(constantTimeSelectLe(x, q/2, x, q-x)) } // fieldReduceOnce reduces a value a < 2q. func fieldReduceOnce(a...Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 08 17:58:32 GMT 2026 - 660.3K bytes - Click Count (0)