Lines Matching defs:curve
54 * -- which the curve is defined
55 * curve Curve, -- coefficients a and b of the
56 * -- elliptic curve
58 * -- on the elliptic curve
85 public static ECPoint decodePoint(byte[] data, EllipticCurve curve)
90 int n = (curve.getField().getFieldSize() + 7 ) >> 3;
102 public static byte[] encodePoint(ECPoint point, EllipticCurve curve) {
104 int n = (curve.getField().getFieldSize() + 7) >> 3;
134 // If params does not represent a known named curve, return null.
142 // This can go away once we decide how to expose curve names in the
168 // everything matches our named curve, return it
177 NamedCurve curve = getNamedCurve(params);
178 return (curve == null) ? null : curve.getObjectIdentifier().toString();
183 NamedCurve curve = getNamedCurve(params);
184 if (curve == null) {
185 throw new RuntimeException("Not a known named curve: " + params);
187 return curve.getEncoded();
197 throw new IOException("Unknown named curve: " + oid);
221 EllipticCurve curve = parseCurve(in, field);
222 ECPoint point = parsePoint(in, curve);
239 return new ECParameterSpec(curve, point, order, cofactor);
268 private static ECPoint parsePoint(DerInputStream in, EllipticCurve curve)
271 return decodePoint(data, curve);
300 ("Not a supported named curve: " + paramSpec);
306 throw new InvalidParameterSpecException("Unknown curve: " + name);