Home
last modified time | relevance | path

Searched refs:modp_inv (Results 1 – 1 of 1) sorted by relevance

/external/boringssl/src/crypto/curve25519/
Dmake_curve25519_tables.py23 def modp_inv(x): function
34 x2 = (y*y-1) * modp_inv(d*y*y+1)
53 d = -121665 * modp_inv(121666) % p
56 g_y = 4 * modp_inv(5) % p
64 x3 = ((x1*y2 + y1*x2) * modp_inv(1 + d*x1*x2*y1*y2)) % p
65 y3 = ((y1*y2 + x1*x2) * modp_inv(1 - d*x1*x2*y1*y2)) % p