Functions | Variables
make_curve25519_tables Namespace Reference

Functions

def main ()
 
def modp_inv (x)
 
def point_add (P, Q)
 
def point_mul (s, P)
 
def recover_x (y, sign)
 
def to_base_25_5 (x)
 
def to_base_51 (x)
 
def to_bytes (x)
 
def to_ge_precomp (P)
 
def to_literal (x)
 

Variables

int d = -121665 * modp_inv(121666) % p
 
def g_x = recover_x(g_y, 0)
 
int g_y = 4 * modp_inv(5) % p
 
 modp_sqrt_m1 = pow(2, (p-1) // 4, p)
 
int p = 2**255 - 19
 

Function Documentation

◆ main()

def make_curve25519_tables.main ( )

Definition at line 120 of file make_curve25519_tables.py.

◆ modp_inv()

def make_curve25519_tables.modp_inv (   x)

Definition at line 23 of file make_curve25519_tables.py.

◆ point_add()

def make_curve25519_tables.point_add (   P,
  Q 
)

Definition at line 61 of file make_curve25519_tables.py.

◆ point_mul()

def make_curve25519_tables.point_mul (   s,
  P 
)

Definition at line 69 of file make_curve25519_tables.py.

◆ recover_x()

def make_curve25519_tables.recover_x (   y,
  sign 
)

Definition at line 31 of file make_curve25519_tables.py.

◆ to_base_25_5()

def make_curve25519_tables.to_base_25_5 (   x)

Definition at line 95 of file make_curve25519_tables.py.

◆ to_base_51()

def make_curve25519_tables.to_base_51 (   x)

Definition at line 104 of file make_curve25519_tables.py.

◆ to_bytes()

def make_curve25519_tables.to_bytes (   x)

Definition at line 78 of file make_curve25519_tables.py.

◆ to_ge_precomp()

def make_curve25519_tables.to_ge_precomp (   P)

Definition at line 86 of file make_curve25519_tables.py.

◆ to_literal()

def make_curve25519_tables.to_literal (   x)

Definition at line 112 of file make_curve25519_tables.py.

Variable Documentation

◆ d

int make_curve25519_tables.d = -121665 * modp_inv(121666) % p

Definition at line 53 of file make_curve25519_tables.py.

◆ g_x

def make_curve25519_tables.g_x = recover_x(g_y, 0)

Definition at line 57 of file make_curve25519_tables.py.

◆ g_y

int make_curve25519_tables.g_y = 4 * modp_inv(5) % p

Definition at line 56 of file make_curve25519_tables.py.

◆ modp_sqrt_m1

make_curve25519_tables.modp_sqrt_m1 = pow(2, (p-1) // 4, p)

Definition at line 27 of file make_curve25519_tables.py.

◆ p

int make_curve25519_tables.p = 2**255 - 19

Definition at line 21 of file make_curve25519_tables.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41