Package net.i2p.crypto.eddsa.spec
Class EdDSAParameterSpec
- java.lang.Object
-
- net.i2p.crypto.eddsa.spec.EdDSAParameterSpec
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.spec.AlgorithmParameterSpec
- Direct Known Subclasses:
EdDSANamedCurveSpec
public class EdDSAParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpec, java.io.Serializable
Parameter specification for an EdDSA algorithm.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private GroupElement
B
private Curve
curve
private java.lang.String
hashAlgo
private ScalarOps
sc
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description EdDSAParameterSpec(Curve curve, java.lang.String hashAlgo, ScalarOps sc, GroupElement B)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
GroupElement
getB()
Curve
getCurve()
java.lang.String
getHashAlgorithm()
ScalarOps
getScalarOps()
int
hashCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
curve
private final Curve curve
-
hashAlgo
private final java.lang.String hashAlgo
-
sc
private final ScalarOps sc
-
B
private final GroupElement B
-
-
Constructor Detail
-
EdDSAParameterSpec
public EdDSAParameterSpec(Curve curve, java.lang.String hashAlgo, ScalarOps sc, GroupElement B)
- Parameters:
curve
- the curvehashAlgo
- the JCA string for the hash algorithmsc
- the parameter L represented as ScalarOpsB
- the parameter B- Throws:
java.lang.IllegalArgumentException
- if hash algorithm is unsupported or length is wrong
-
-
Method Detail
-
getCurve
public Curve getCurve()
-
getHashAlgorithm
public java.lang.String getHashAlgorithm()
-
getScalarOps
public ScalarOps getScalarOps()
-
getB
public GroupElement getB()
- Returns:
- the base (generator)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-