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.SerializableParameter specification for an EdDSA algorithm.- Author:
- str4d
- See Also:
- Serialized Form
-
-
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 booleanequals(java.lang.Object o)GroupElementgetB()CurvegetCurve()java.lang.StringgetHashAlgorithm()ScalarOpsgetScalarOps()inthashCode()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-