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.- 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 boolean
equals(java.lang.Object o)
GroupElement
getB()
Curve
getCurve()
java.lang.String
getHashAlgorithm()
ScalarOps
getScalarOps()
int
hashCode()
-
-
-
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
-
-