Class Curve
- java.lang.Object
-
- org.mariadb.jdbc.plugin.authentication.standard.ed25519.math.Curve
-
- All Implemented Interfaces:
java.io.Serializable
public class Curve extends java.lang.Object implements java.io.Serializable
A twisted Edwards curve. Points on the curve satisfy $-x^2 + y^2 = 1 + d x^2y^2$- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private FieldElement
d
private FieldElement
d2
private Field
f
private FieldElement
I
private static long
serialVersionUID
private GroupElement
zeroP2
private GroupElement
zeroP3
private GroupElement
zeroP3PrecomputedDouble
private GroupElement
zeroPrecomp
-
Constructor Summary
Constructors Constructor Description Curve(Field f, byte[] d, FieldElement I)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupElement
createPoint(byte[] P, boolean precompute)
boolean
equals(java.lang.Object o)
FieldElement
get2D()
FieldElement
getD()
Field
getField()
FieldElement
getI()
GroupElement
getZero(GroupElement.Representation repr)
int
hashCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
f
private final Field f
-
d
private final FieldElement d
-
d2
private final FieldElement d2
-
I
private final FieldElement I
-
zeroP2
private final GroupElement zeroP2
-
zeroP3
private final GroupElement zeroP3
-
zeroP3PrecomputedDouble
private final GroupElement zeroP3PrecomputedDouble
-
zeroPrecomp
private final GroupElement zeroPrecomp
-
-
Constructor Detail
-
Curve
public Curve(Field f, byte[] d, FieldElement I)
-
-
Method Detail
-
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)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-