java.lang.Object
net.i2p.crypto.eddsa.spec.EdDSANamedCurveTable
Table of named EdDSA curves. Provides lookup of curve specifications by name.
Field Summary
Modifier and TypeFieldDescriptionstatic final StringOld name for the Ed25519 curve.private static HashMap<String, EdDSANamedCurveSpec> The registered curves, by name.static final StringRFC 8032.static final EdDSANamedCurveSpecED_25519_CURVE_SPEC.private static final CurveThe Ed25519 curve's parameters.private static final FieldThe Ed25519 field.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic voiddefineCurve(EdDSANamedCurveSpec curve) Defines a named curve in the table.(package private) static voiddefineCurveAlias(String name, String alias) Define an alias for a curve.static EdDSANamedCurveSpecReturns the curve specification for the given name, or null if not found.private static voidputCurve(String name, EdDSANamedCurveSpec curve) Registers a curve under a name.
Field Details
ED_25519
CURVE_ED25519_SHA512
Old name for the Ed25519 curve.- See Also:
ed25519field
The Ed25519 field.ed25519curve
The Ed25519 curve's parameters.ED_25519_CURVE_SPEC
ED_25519_CURVE_SPEC.curves
The registered curves, by name.
Constructor Details
EdDSANamedCurveTable
public EdDSANamedCurveTable()Constructor. The curve specs are built into static fields, so an instance holds nothing and lookups are static.
Method Details
putCurve
Registers a curve under a name.- Parameters:
name- the name to register it ascurve- the curve to register
defineCurve
Defines a named curve in the table.- Parameters:
curve- the named curve specification to add
defineCurveAlias
getByName
Returns the curve specification for the given name, or null if not found.- Parameters:
name- the curve name (case-insensitive)- Returns:
- the curve specification, or null if not found