net.i2p.crypto.eddsa.math
Class Curve
java.lang.Object
net.i2p.crypto.eddsa.math.Curve
- All Implemented Interfaces:
- Serializable
public class Curve
- extends Object
- implements Serializable
A twisted Edwards curve.
Points on the curve satisfy -x^2 + y^2 = 1 + d x^2y^2
- Since:
- 0.9.15
- Author:
- str4d
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Curve
public Curve(Field f,
byte[] d,
FieldElement I)
getField
public Field getField()
getD
public FieldElement getD()
get2D
public FieldElement get2D()
getI
public FieldElement getI()
getZero
public GroupElement getZero(GroupElement.Representation repr)
createPoint
public GroupElement createPoint(byte[] P,
boolean precompute)