NZMATH  1.2.0 About: NZMATH is a Python based number theory oriented calculation system.   Fossies Dox: NZMATH-1.2.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)
nzmath.ecpp.Elliptic Class Reference
Inheritance diagram for nzmath.ecpp.Elliptic:
[legend]
Collaboration diagram for nzmath.ecpp.Elliptic:
[legend]

## Public Member Functions

def __init__ (self, coefficient, modulus)

def sub (self, P, Q)

def mul (self, k, P)

def choose_point (self)

modulus

b

f

## Detailed Description

```The class is for operations of elliptic curve points.
```

Definition at line 167 of file ecpp.py.

## ◆ __init__()

 def nzmath.ecpp.Elliptic.__init__ ( self, coefficient, modulus )

Definition at line 171 of file ecpp.py.

## Member Function Documentation

 def nzmath.ecpp.Elliptic.add ( self, P, Q )
```Return P + Q
```

Definition at line 176 of file ecpp.py.

## ◆ choose_point()

 def nzmath.ecpp.Elliptic.choose_point ( self )
```Choose point on E_{a,b}(Z_n)
Algorithm 27 (Atkin-morain ECPP) Step5
```

Definition at line 226 of file ecpp.py.

References nzmath.ecpp.Elliptic.f, and nzmath.ecpp.Elliptic.modulus.

## ◆ mul()

 def nzmath.ecpp.Elliptic.mul ( self, k, P )
```this returns [k]*P
```

Definition at line 211 of file ecpp.py.

## ◆ sub()

 def nzmath.ecpp.Elliptic.sub ( self, P, Q )
```return P - Q
```

Definition at line 198 of file ecpp.py.

## ◆ b

 nzmath.ecpp.Elliptic.b

Definition at line 173 of file ecpp.py.

## ◆ modulus

 nzmath.ecpp.Elliptic.modulus

Definition at line 172 of file ecpp.py.

The documentation for this class was generated from the following file: