- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for constantTimeSelectLe (0.17 seconds)
-
lib/fips140/v1.1.0-rc1.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 Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Dec 11 16:27:41 GMT 2025 - 663K bytes - Click Count (0)