Package net.i2p.crypto.eddsa.spec
Class EdDSAParameterSpec
java.lang.Object
net.i2p.crypto.eddsa.spec.EdDSAParameterSpec
- All Implemented Interfaces:
Serializable
,AlgorithmParameterSpec
- Direct Known Subclasses:
EdDSANamedCurveSpec
public class EdDSAParameterSpec extends Object implements AlgorithmParameterSpec, Serializable
Parameter specification for an EdDSA algorithm.
- Since:
- 0.9.15
- Author:
- str4d
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EdDSAParameterSpec(Curve curve, String hashAlgo, ScalarOps sc, GroupElement B)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
GroupElement
getB()
Curve
getCurve()
String
getHashAlgorithm()
ScalarOps
getScalarOps()
int
hashCode()
-
Constructor Details
-
EdDSAParameterSpec
- Parameters:
curve
- the curvehashAlgo
- the JCA string for the hash algorithmsc
- the parameter L represented as ScalarOpsB
- the parameter B- Throws:
IllegalArgumentException
- if hash algorithm is unsupported or length is wrong
-
-
Method Details
-
getCurve
-
getHashAlgorithm
-
getScalarOps
-
getB
- Returns:
- the base (generator)
-
hashCode
public int hashCode() -
equals
-