public final class PrimeMontgomeryCurveFactory extends Object
The user can choose between various coordinate systems, which are listed in
CoordinateTypes
. By default a curve using the fastest coordinate type
available will be returned.
Modifier and Type | Method and Description |
---|---|
static iaik.security.ec.math.curve.PrimeMontgomeryCurve |
getCurve(AbstractPrimeField field,
BigInteger a,
BigInteger b)
The factory method.
|
static iaik.security.ec.math.curve.PrimeMontgomeryCurve |
getCurve(AbstractPrimeField field,
BigInteger a,
BigInteger d,
BigInteger order)
The factory method.
|
static iaik.security.ec.math.curve.PrimeMontgomeryCurve |
getCurve(PrimeCurveCoordinateTypes type,
AbstractPrimeField field,
BigInteger a,
BigInteger b)
The factory method.
|
static iaik.security.ec.math.curve.PrimeMontgomeryCurve |
getCurve(PrimeCurveCoordinateTypes type,
AbstractPrimeField field,
BigInteger a,
BigInteger b,
BigInteger order)
The factory method.
|
public static iaik.security.ec.math.curve.PrimeMontgomeryCurve getCurve(AbstractPrimeField field, BigInteger a, BigInteger b) throws InvalidCurveException
field
- the underlying prime fielda
- the first curve parameterb
- the second curve parameterfield
InvalidCurveException
- if the curve is singularpublic static iaik.security.ec.math.curve.PrimeMontgomeryCurve getCurve(PrimeCurveCoordinateTypes type, AbstractPrimeField field, BigInteger a, BigInteger b) throws InvalidCurveException
type
- the coordinate typefield
- the underlying prime fielda
- the first curve parameterb
- the second curve parameterfield
InvalidCurveException
- if the curve is singularpublic static iaik.security.ec.math.curve.PrimeMontgomeryCurve getCurve(PrimeCurveCoordinateTypes type, AbstractPrimeField field, BigInteger a, BigInteger b, BigInteger order) throws InvalidCurveException
type
- the coordinate typefield
- the underlying prime fielda
- the first curve parameterb
- the second curve parameterorder
- the order of the curve groupfield
InvalidCurveException
- if the curve is singularpublic static iaik.security.ec.math.curve.PrimeMontgomeryCurve 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.