- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for constantTimeSelectLe (0.29 sec)
-
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...Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)