public final class PrimeTwistedEdwardsCurveFactory extends Object
The user can choose between various coordinate systems, which are listed in
CoordinateTypes
. By default a curve using the fastest coordindate
type available will be returned.
Modifier and Type | Method and Description |
---|---|
static EllipticCurve |
getCurve(AbstractPrimeField field,
BigInteger a,
BigInteger d)
The factory method.
|
static EllipticCurve |
getCurve(AbstractPrimeField field,
BigInteger a,
BigInteger d,
BigInteger order)
The factory method.
|
static EllipticCurve |
getCurve(PrimeCurveCoordinateTypes type,
AbstractPrimeField field,
BigInteger a,
BigInteger d)
The factory method.
|
static EllipticCurve |
getCurve(PrimeCurveCoordinateTypes type,
AbstractPrimeField field,
BigInteger a,
BigInteger d,
BigInteger order)
The factory method.
|
public static EllipticCurve getCurve(AbstractPrimeField field, BigInteger a, BigInteger d) throws InvalidCurveException
field
- the underlying prime fielda
- the first curve parameterd
- the second curve parameterfield
InvalidCurveException
- if the curve is singularpublic static EllipticCurve getCurve(PrimeCurveCoordinateTypes type, AbstractPrimeField field, BigInteger a, BigInteger d) throws InvalidCurveException
type
- the coordinate typefield
- the underlying prime fielda
- the first curve parameterd
- the second curve parameterfield
InvalidCurveException
- if the curve is singularpublic static EllipticCurve getCurve(PrimeCurveCoordinateTypes type, AbstractPrimeField field, BigInteger a, BigInteger d, BigInteger order) throws InvalidCurveException
type
- the coordinate typefield
- the underlying prime fielda
- the first curve parameterd
- the second curve parameterorder
- the order of the curve groupfield
InvalidCurveException
- if the curve is singularpublic static EllipticCurve getCurve(AbstractPrimeField field, BigInteger a, BigInteger d, BigInteger order) throws InvalidCurveException
field
- the underlying prime fielda
- the first curve parameterd
- the second curve parameterorder
- the order of the associated curve groupfield
InvalidCurveException
- if the curve is singularCopyright © 2011–2022 Stiftung SIC. All rights reserved.