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)Whether this curve equals the given object. |
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()The hash code of this curve. |
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