public class Curve extends Object implements Serializable
| Constructor and Description |
|---|
Curve(Field f,
byte[] d,
FieldElement I)Create a twisted Edwards curve. |
| Modifier and Type | Method and Description |
|---|---|
GroupElement | createPoint(byte[] P,
boolean precompute)Create a point from an encoded representation. |
boolean | equals(Object o) |
FieldElement | get2D()Return twice the curve parameter d. |
FieldElement | getD()Return the curve parameter d. |
Field | getField()Return the field. |
FieldElement | getI()Return the square root of -1. |
GroupElement | getZero(GroupElement.Representation repr)Return the zero element for the given representation. |
int | hashCode() |
public Curve(Field f, byte[] d, FieldElement I)
f - the finite fieldd - the curve parameter dI - the square root of -1public GroupElement createPoint(byte[] P, boolean precompute)
P - the encoded pointprecompute - whether to precomputepublic boolean equals(Object o)
public FieldElement get2D()
public FieldElement getD()
public Field getField()
public FieldElement getI()
public GroupElement getZero(GroupElement.Representation repr)
repr - the representation type