- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testModSqrt (1.33 sec)
-
src/math/big/int_test.go
p.Sub(p, intOne) x := new(Int).Sub(p, intOne) z := new(Int) for i := 0; i < b.N; i++ { z.ModInverse(x, p) } } // testModSqrt is a helper for TestModSqrt, // which checks that ModSqrt can compute a square-root of elt^2. func testModSqrt(t *testing.T, elt, mod, sq, sqrt *Int) bool { var sqChk, sqrtChk, sqrtsq Int sq.Mul(elt, elt) sq.Mod(sq, mod) z := sqrt.ModSqrt(sq, mod)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0)