Lines Matching defs:field

45     private final ECField field;
50 // Check coefficient c is a valid element in ECField field.
51 private static void checkValidity(ECField field, BigInteger c,
53 // can only perform check if field is ECFieldFp or ECFieldF2m.
54 if (field instanceof ECFieldFp) {
55 BigInteger p = ((ECFieldFp)field).getP();
61 } else if (field instanceof ECFieldF2m) {
62 int m = ((ECFieldF2m)field).getM();
70 * Creates an elliptic curve with the specified elliptic field
71 * <code>field</code> and the coefficients <code>a</code> and
73 * @param field the finite field that this elliptic curve is over.
76 * @exception NullPointerException if <code>field</code>,
79 * or <code>b</code> is not null and not in <code>field</code>.
81 public EllipticCurve(ECField field, BigInteger a,
83 this(field, a, b, null);
87 * Creates an elliptic curve with the specified elliptic field
88 * <code>field</code>, the coefficients <code>a</code> and
90 * @param field the finite field that this elliptic curve is over.
96 * @exception NullPointerException if <code>field</code>,
99 * or <code>b</code> is not null and not in <code>field</code>.
101 public EllipticCurve(ECField field, BigInteger a,
103 if (field == null) {
104 throw new NullPointerException("field is null");
112 checkValidity(field, a, "first coefficient");
113 checkValidity(field, b, "second coefficient");
114 this.field = field;
125 * Returns the finite field <code>field</code> that this
127 * @return the field <code>field</code> that this curve
131 return field;
168 * EllipticCurve and the field, A, and B match, false otherwise.
174 if ((field.equals(curve.field)) &&
185 * @return a hash code value computed from the hash codes of the field, A,
188 * (field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2)
192 return (field.hashCode() << 6 +