Searched refs:modp_inv (Results 1 – 1 of 1) sorted by relevance
23 def modp_inv(x): function34 x2 = (y*y-1) * modp_inv(d*y*y+1)53 d = -121665 * modp_inv(121666) % p56 g_y = 4 * modp_inv(5) % p64 x3 = ((x1*y2 + y1*x2) * modp_inv(1 + d*x1*x2*y1*y2)) % p65 y3 = ((y1*y2 + x1*x2) * modp_inv(1 - d*x1*x2*y1*y2)) % p