Code examples for EllipticCurve

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
31:	if (curve.getField() instanceof ECFieldFp) 
-
34:	((ECFieldFp)curve.getField()).getP(), curve.getA(), curve.getB()); 
-
38:	int k[] = ((ECFieldF2m)curve.getField()).getMidTermsOfReductionPolynomial(); 
-
43:	((ECFieldF2m)curve.getField()).getM(), k[2], k[1], k[0], curve.getA(), curve.getB()); 
-
48:	((ECFieldF2m)curve.getField()).getM(), k[0], curve.getA(), curve.getB()); 
Full Snippet Info
7
CodeRank
63:	ECField field = ec.getField(); 
64:	BigInteger a = ec.getA(); 
65:	BigInteger b = ec.getB(); 
Full Snippet Info
7
CodeRank
50:	ECField field = ec.getField(); 
51:	BigInteger a = ec.getA(); 
52:	BigInteger b = ec.getB(); 
Full Snippet Info
6
CodeRank
31:	if (curve.getField() instanceof ECFieldFp) 
-
34:	((ECFieldFp)curve.getField()).getP(), curve.getA(), curve.getB()); 
-
38:	int k[] = ((ECFieldF2m)curve.getField()).getMidTermsOfReductionPolynomial(); 
-
43:	((ECFieldF2m)curve.getField()).getM(), k[2], k[1], k[0], curve.getA(), curve.getB()); 
-
48:	((ECFieldF2m)curve.getField()).getM(), k[0], curve.getA(), curve.getB()); 
Full Snippet Info
6
CodeRank
74:	ECField field = ec.getField(); 
75:	BigInteger a = ec.getA(); 
76:	BigInteger b = ec.getB(); 
Full Snippet Info
6
CodeRank
50:	ECField field = ec.getField(); 
51:	BigInteger a = ec.getA(); 
52:	BigInteger b = ec.getB(); 
Full Snippet Info
6
CodeRank
90:	c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 
-
98:	assertFalse(c1.equals(c2) || c2.equals(c1)); 
Full Snippet Info
5
CodeRank
440:	EllipticCurve ec = new EllipticCurve(new testECField(), BigInteger 
-
442:	assertEquals("incorrect a", ec.getA(), BigInteger.valueOf(4L)); 
443:	assertEquals("incorrect b", ec.getB(), BigInteger.ONE); 
444:	assertEquals("incorrect size", ec.getField().getFieldSize(), 2); 
Full Snippet Info
5
CodeRank
44:	return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed); 
Full Snippet Info
5
CodeRank
75:	new EllipticCurve(new ECFieldFp(((ECCurve.Fp)curve).getQ()), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null), 
Full Snippet Info
5
CodeRank
54:	BigInteger prime = ((ECFieldFp) curve.getField()).getP(); 
-
68:	slope = slope.add(curve.getA()); 
69:	BigInteger prime = ((ECFieldFp) curve.getField()).getP(); 
Full Snippet Info
5
CodeRank
50:	ECField field = ec.getField(); 
51:	BigInteger a = ec.getA(); 
52:	BigInteger b = ec.getB(); 
Full Snippet Info
5
CodeRank
50:	ECField field = ec.getField(); 
51:	BigInteger a = ec.getA(); 
52:	BigInteger b = ec.getB(); 
Full Snippet Info
5
CodeRank
85:	EllipticCurve curve = new EllipticCurve(field, ab, bb, sb.toByteArray()); 
Full Snippet Info
5
CodeRank
624:	EllipticCurve curve = new EllipticCurve( 
-
631:	ECPointUtil.decodePoint(curve, Hex.decode("020ffa963cdca8816ccc33b8642bedf905c3d358573d3f27fbbd3b3cb9aaaf")), // G 
Full Snippet Info
5
CodeRank
76:	new EllipticCurve( 
Full Snippet Info
5
CodeRank
37:	return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed); 
Full Snippet Info
5
CodeRank
56:	new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 
Full Snippet Info
4
CodeRank
76:	new EllipticCurve( 
Full Snippet Info
4
CodeRank
31:	if (curve.getField() instanceof ECFieldFp) 
-
34:	((ECFieldFp)curve.getField()).getP(), curve.getA(), curve.getB()); 
-
38:	int k[] = ((ECFieldF2m)curve.getField()).getMidTermsOfReductionPolynomial(); 
-
43:	((ECFieldF2m)curve.getField()).getM(), k[2], k[1], k[0], curve.getA(), curve.getB()); 
-
48:	((ECFieldF2m)curve.getField()).getM(), k[0], curve.getA(), curve.getB()); 
Full Snippet Info
4
CodeRank