de.flexiprovider.ec.parameters
Class CurveParams.CurveParamsGF2nPentanomial
java.lang.Object
|
+--de.flexiprovider.ec.parameters.CurveParams
|
+--de.flexiprovider.ec.parameters.CurveParams.CurveParamsGF2n
|
+--de.flexiprovider.ec.parameters.CurveParams.CurveParamsGF2nPentanomial
- All Implemented Interfaces:
- AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec
- Direct Known Subclasses:
- CurveRegistry.C2pnb163v1, CurveRegistry.C2pnb163v2, CurveRegistry.C2pnb163v3, CurveRegistry.C2pnb208w1, CurveRegistry.C2pnb272w1, CurveRegistry.C2pnb368w1
- Enclosing class:
- CurveParams
- public static class CurveParams.CurveParamsGF2nPentanomial
- extends CurveParams.CurveParamsGF2n
Inner class for representing char 2 pentanomial curve parameters.
| Fields inherited from class de.flexiprovider.ec.parameters.CurveParams |
E, g, q |
|
Constructor Summary |
|
CurveParams.CurveParamsGF2nPentanomial(PointGF2n g,
FlexiBigInt r,
int n,
int k,
int pc1,
int pc2,
int pc3)
Construct new curve parameters from the given parameters. |
|
CurveParams.CurveParamsGF2nPentanomial(java.lang.String a,
java.lang.String b,
java.lang.String g,
java.lang.String r,
java.lang.String n,
java.lang.String k,
java.lang.String pc1,
java.lang.String pc2,
java.lang.String pc3)
Construct new curve parameters from the given Strings. |
protected |
CurveParams.CurveParamsGF2nPentanomial(java.lang.String oid,
java.lang.String a,
java.lang.String b,
java.lang.String g,
java.lang.String r,
java.lang.String n,
java.lang.String k,
java.lang.String pc1,
java.lang.String pc2,
java.lang.String pc3)
Construct new curve parameters from the given Strings. |
| Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CurveParams.CurveParamsGF2nPentanomial
public CurveParams.CurveParamsGF2nPentanomial(java.lang.String a,
java.lang.String b,
java.lang.String g,
java.lang.String r,
java.lang.String n,
java.lang.String k,
java.lang.String pc1,
java.lang.String pc2,
java.lang.String pc3)
- Construct new curve parameters from the given Strings.
- Parameters:
a - curve coefficient ab - curve coefficient bg - basepoint Gr - order r of basepoint Gn - extension degree nk - cofactor kpc1 - first pentanomial coefficientpc2 - second pentanomial coefficientpc3 - third pentanomial coefficient
CurveParams.CurveParamsGF2nPentanomial
public CurveParams.CurveParamsGF2nPentanomial(PointGF2n g,
FlexiBigInt r,
int n,
int k,
int pc1,
int pc2,
int pc3)
- Construct new curve parameters from the given parameters.
- Parameters:
g - basepoint Gr - order r of basepoint Gn - extension degree nk - cofactor kpc1 - first pentanomial coefficientpc2 - second pentanomial coefficientpc3 - third pentanomial coefficient
CurveParams.CurveParamsGF2nPentanomial
protected CurveParams.CurveParamsGF2nPentanomial(java.lang.String oid,
java.lang.String a,
java.lang.String b,
java.lang.String g,
java.lang.String r,
java.lang.String n,
java.lang.String k,
java.lang.String pc1,
java.lang.String pc2,
java.lang.String pc3)
- Construct new curve parameters from the given Strings.
- Parameters:
oid - OID of the curve parametersa - curve coefficient ab - curve coefficient bg - basepoint Gr - order r of basepoint Gn - extension degree nk - cofactor kpc1 - first pentanomial coefficientpc2 - second pentanomial coefficientpc3 - third pentanomial coefficient
getPC1
public int getPC1()
- Returns:
- the first pentanomial coefficient
getPC2
public int getPC2()
- Returns:
- the second pentanomial coefficient
getPC3
public int getPC3()
- Returns:
- the third pentanomial coefficient
hashCode
public int hashCode()
- Overrides:
hashCode in class CurveParams.CurveParamsGF2n
- Returns:
- the hash code of these curve parameters
equals
public boolean equals(java.lang.Object other)
- Compare these parameters with another object.
- Overrides:
equals in class CurveParams.CurveParamsGF2n
- Parameters:
other - the other object- Returns:
- the result of the comparison