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 SummaryConstructors Constructor Description EdDSAParameterSpec(Curve curve, String hashAlgo, ScalarOps sc, GroupElement B)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)GroupElementgetB()CurvegetCurve()StringgetHashAlgorithm()ScalarOpsgetScalarOps()inthashCode()
 
- 
- 
- 
Constructor Detail- 
EdDSAParameterSpecpublic EdDSAParameterSpec(Curve curve, String hashAlgo, ScalarOps sc, GroupElement B) - Parameters:
- curve- the curve
- hashAlgo- the JCA string for the hash algorithm
- sc- the parameter L represented as ScalarOps
- B- the parameter B
- Throws:
- IllegalArgumentException- if hash algorithm is unsupported or length is wrong
 
 
- 
 - 
Method Detail- 
getCurvepublic Curve getCurve() 
 - 
getHashAlgorithmpublic String getHashAlgorithm() 
 - 
getScalarOpspublic ScalarOps getScalarOps() 
 - 
getBpublic GroupElement getB() - Returns:
- the base (generator)
 
 
- 
 
-