| Package | Description |
|---|---|
| net.i2p.crypto.eddsa.math | Data structures that define curves and fields, and the mathematical operations on them. |
| net.i2p.crypto.eddsa.spec | Specifications and parameter tables for EdDSA elliptic curves
and cryptographic keys. |
| Modifier and Type | Field and Description |
|---|---|
(package private) Curve | GroupElement.curveVariable is package private only so that tests run. |
| Modifier and Type | Method and Description |
|---|---|
Curve | GroupElement.getCurve()Gets the curve of the group element. |
| Modifier and Type | Method and Description |
|---|---|
static GroupElement | GroupElement.cached(Curve curve,
FieldElement YpX,
FieldElement YmX,
FieldElement Z,
FieldElement T2d)Creates a new group element in CACHED representation. |
boolean | GroupElement.isOnCurve(Curve curve)Verify that a point is on the curve. |
static GroupElement | GroupElement.p1p1(Curve curve,
FieldElement X,
FieldElement Y,
FieldElement Z,
FieldElement T)Creates a new group element in P1P1 representation. |
static GroupElement | GroupElement.p2(Curve curve,
FieldElement X,
FieldElement Y,
FieldElement Z)Creates a new group element in P2 representation. |
static GroupElement | GroupElement.p3(Curve curve,
FieldElement X,
FieldElement Y,
FieldElement Z,
FieldElement T)Creates a new group element in P3 representation, without pre-computation. |
static GroupElement | GroupElement.p3(Curve curve,
FieldElement X,
FieldElement Y,
FieldElement Z,
FieldElement T,
boolean precomputeDoubleOnly)Creates a new group element in P3 representation, potentially with pre-computation. |
static GroupElement | GroupElement.precomp(Curve curve,
FieldElement ypx,
FieldElement ymx,
FieldElement xy2d)Creates a new group element in PRECOMP representation. |
| Constructor and Description |
|---|
GroupElement(Curve curve,
byte[] s)Creates a group element for a curve from a given encoded point. |
GroupElement(Curve curve,
byte[] s,
boolean precomputeSingleAndDouble)Creates a group element for a curve from a given encoded point. |
GroupElement(Curve curve,
GroupElement.Representation repr,
FieldElement X,
FieldElement Y,
FieldElement Z,
FieldElement T)Creates a group element for a curve, without any pre-computation. |
GroupElement(Curve curve,
GroupElement.Representation repr,
FieldElement X,
FieldElement Y,
FieldElement Z,
FieldElement T,
boolean precomputeDouble)Creates a group element for a curve, with optional pre-computation. |
| Modifier and Type | Method and Description |
|---|---|
Curve | EdDSAParameterSpec.getCurve()Returns the curve used by this parameter specification. |
| Constructor and Description |
|---|
EdDSANamedCurveSpec(String name,
Curve curve,
String hashAlgo,
ScalarOps sc,
GroupElement B)Create a named curve specification. |
EdDSAParameterSpec(Curve curve,
String hashAlgo,
ScalarOps sc,
GroupElement B)Create a new EdDSA parameter specification. |