Lines Matching refs:curve
329 /* Supported curve, secp256r1 */
342 /* Supported curve secp384r1 */
355 /* Supported curve secp521r1 */
373 EllipticCurve curve = new EllipticCurve(field, bigInt(a),
376 return new Curve(name, oid, curve, g, bigInt(n), h);
391 private static ECPoint decodePoint(byte[] data, EllipticCurve curve)
400 if (n != ((curve.getField().getFieldSize() + 7) >> 3)) {
410 private static byte[] encodePoint(ECPoint point, EllipticCurve curve) {
412 int n = (curve.getField().getFieldSize() + 7) >> 3;
440 // of the curve.
454 private static boolean matchCurve(ECParameterSpec params, Curve curve) {
456 if (curve.getCurve().getField().getFieldSize() == fieldSize
457 && curve.getCurve().equals(params.getCurve())
458 && curve.getGenerator().equals(params.getGenerator())
459 && curve.getOrder().equals(params.getOrder())
460 && curve.getCofactor() == params.getCofactor()) {
534 throw new MarshalException("Invalid curve OID");
562 Curve(String name, String oid, EllipticCurve curve,
564 super(curve, g, n, h);