Home
last modified time | relevance | path

Searched refs:ECFieldElement (Results 1 – 25 of 34) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECPoint.java11 protected static ECFieldElement[] EMPTY_ZS = new ECFieldElement[0];
13 protected static ECFieldElement[] getInitialZCoords(ECCurve curve) in getInitialZCoords()
27 ECFieldElement one = curve.fromBigInteger(ECConstants.ONE); in getInitialZCoords()
34 return new ECFieldElement[]{ one }; in getInitialZCoords()
36 return new ECFieldElement[]{ one, one, one }; in getInitialZCoords()
38 return new ECFieldElement[]{ one, curve.getA() }; in getInitialZCoords()
45 protected ECFieldElement x;
46 protected ECFieldElement y;
47 protected ECFieldElement[] zs;
54 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint()
[all …]
DECFieldElement.java11 public abstract class ECFieldElement class
17 public abstract ECFieldElement add(ECFieldElement b); in add()
18 public abstract ECFieldElement addOne(); in addOne()
19 public abstract ECFieldElement subtract(ECFieldElement b); in subtract()
20 public abstract ECFieldElement multiply(ECFieldElement b); in multiply()
21 public abstract ECFieldElement divide(ECFieldElement b); in divide()
22 public abstract ECFieldElement negate(); in negate()
23 public abstract ECFieldElement square(); in square()
24 public abstract ECFieldElement invert(); in invert()
25 public abstract ECFieldElement sqrt(); in sqrt()
[all …]
DECCurve.java91 protected ECFieldElement a, b;
105 public abstract ECFieldElement fromBigInteger(BigInteger x); in fromBigInteger()
154 …protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompress… in createRawPoint()
156 …protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs,… in createRawPoint()
259 public void normalizeAll(ECPoint[] points, int off, int len, ECFieldElement iso) in normalizeAll()
279 ECFieldElement[] zs = new ECFieldElement[len]; in normalizeAll()
313 public ECFieldElement getA() in getA()
318 public ECFieldElement getB() in getB()
513 ECFieldElement x = this.fromBigInteger(X1); in decompressPoint()
514 ECFieldElement rhs = x.square().add(this.a).multiply(x).add(this.b); in decompressPoint()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP521R1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
10 public class SecP521R1FieldElement extends ECFieldElement
66 public ECFieldElement add(ECFieldElement b) in add()
73 public ECFieldElement addOne() in addOne()
80 public ECFieldElement subtract(ECFieldElement b) in subtract()
87 public ECFieldElement multiply(ECFieldElement b) in multiply()
94 public ECFieldElement divide(ECFieldElement b) in divide()
103 public ECFieldElement negate() in negate()
110 public ECFieldElement square() in square()
117 public ECFieldElement invert() in invert()
[all …]
DSecP521R1Point.java4 import org.bouncycastle.math.ec.ECFieldElement;
22 public SecP521R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y) in SecP521R1Point()
42 … public SecP521R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP521R1Point()
54 …SecP521R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean wit… in SecP521R1Point()
183 ECFieldElement[] zs = new ECFieldElement[]{ Z3 }; in add()
256 return new SecP521R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
274 ECFieldElement Y1 = this.y; in twicePlus()
294 protected ECFieldElement two(ECFieldElement x) in two()
299 protected ECFieldElement three(ECFieldElement x) in three()
304 protected ECFieldElement four(ECFieldElement x) in four()
[all …]
DSecP256R1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
10 public class SecP256R1FieldElement extends ECFieldElement
66 public ECFieldElement add(ECFieldElement b) in add()
73 public ECFieldElement addOne() in addOne()
80 public ECFieldElement subtract(ECFieldElement b) in subtract()
87 public ECFieldElement multiply(ECFieldElement b) in multiply()
94 public ECFieldElement divide(ECFieldElement b) in divide()
103 public ECFieldElement negate() in negate()
110 public ECFieldElement square() in square()
117 public ECFieldElement invert() in invert()
[all …]
DSecP192R1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
10 public class SecP192R1FieldElement extends ECFieldElement
66 public ECFieldElement add(ECFieldElement b) in add()
73 public ECFieldElement addOne() in addOne()
80 public ECFieldElement subtract(ECFieldElement b) in subtract()
87 public ECFieldElement multiply(ECFieldElement b) in multiply()
94 public ECFieldElement divide(ECFieldElement b) in divide()
103 public ECFieldElement negate() in negate()
110 public ECFieldElement square() in square()
117 public ECFieldElement invert() in invert()
[all …]
DSecP384R1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
10 public class SecP384R1FieldElement extends ECFieldElement
66 public ECFieldElement add(ECFieldElement b) in add()
73 public ECFieldElement addOne() in addOne()
80 public ECFieldElement subtract(ECFieldElement b) in subtract()
87 public ECFieldElement multiply(ECFieldElement b) in multiply()
94 public ECFieldElement divide(ECFieldElement b) in divide()
103 public ECFieldElement negate() in negate()
110 public ECFieldElement square() in square()
117 public ECFieldElement invert() in invert()
[all …]
DSecP256K1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
10 public class SecP256K1FieldElement extends ECFieldElement
66 public ECFieldElement add(ECFieldElement b) in add()
73 public ECFieldElement addOne() in addOne()
80 public ECFieldElement subtract(ECFieldElement b) in subtract()
87 public ECFieldElement multiply(ECFieldElement b) in multiply()
94 public ECFieldElement divide(ECFieldElement b) in divide()
103 public ECFieldElement negate() in negate()
110 public ECFieldElement square() in square()
117 public ECFieldElement invert() in invert()
[all …]
DSecP192K1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
10 public class SecP192K1FieldElement extends ECFieldElement
66 public ECFieldElement add(ECFieldElement b) in add()
73 public ECFieldElement addOne() in addOne()
80 public ECFieldElement subtract(ECFieldElement b) in subtract()
87 public ECFieldElement multiply(ECFieldElement b) in multiply()
94 public ECFieldElement divide(ECFieldElement b) in divide()
103 public ECFieldElement negate() in negate()
110 public ECFieldElement square() in square()
117 public ECFieldElement invert() in invert()
[all …]
DSecP224K1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
10 public class SecP224K1FieldElement extends ECFieldElement
70 public ECFieldElement add(ECFieldElement b) in add()
77 public ECFieldElement addOne() in addOne()
84 public ECFieldElement subtract(ECFieldElement b) in subtract()
91 public ECFieldElement multiply(ECFieldElement b) in multiply()
98 public ECFieldElement divide(ECFieldElement b) in divide()
107 public ECFieldElement negate() in negate()
114 public ECFieldElement square() in square()
121 public ECFieldElement invert() in invert()
[all …]
DSecP224R1FieldElement.java5 import org.bouncycastle.math.ec.ECFieldElement;
11 public class SecP224R1FieldElement extends ECFieldElement
67 public ECFieldElement add(ECFieldElement b) in add()
74 public ECFieldElement addOne() in addOne()
81 public ECFieldElement subtract(ECFieldElement b) in subtract()
88 public ECFieldElement multiply(ECFieldElement b) in multiply()
95 public ECFieldElement divide(ECFieldElement b) in divide()
104 public ECFieldElement negate() in negate()
111 public ECFieldElement square() in square()
118 public ECFieldElement invert() in invert()
[all …]
DSecP521R1Curve.java6 import org.bouncycastle.math.ec.ECFieldElement;
61 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
71 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP224R1Curve.java6 import org.bouncycastle.math.ec.ECFieldElement;
61 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
71 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP192K1Curve.java7 import org.bouncycastle.math.ec.ECFieldElement;
60 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
65 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
70 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP224K1Curve.java7 import org.bouncycastle.math.ec.ECFieldElement;
59 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
64 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
69 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP192R1Curve.java6 import org.bouncycastle.math.ec.ECFieldElement;
61 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
71 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP256K1Curve.java7 import org.bouncycastle.math.ec.ECFieldElement;
59 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
64 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
69 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP384R1Curve.java6 import org.bouncycastle.math.ec.ECFieldElement;
61 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
71 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP256R1Curve.java6 import org.bouncycastle.math.ec.ECFieldElement;
61 public ECFieldElement fromBigInteger(BigInteger x) in fromBigInteger()
66 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) in createRawPoint()
71 …protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean … in createRawPoint()
DSecP192K1Point.java4 import org.bouncycastle.math.ec.ECFieldElement;
23 public SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y) in SecP192K1Point()
43 … public SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP192K1Point()
55 SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, in SecP192K1Point()
189 ECFieldElement[] zs = new ECFieldElement[] { Z3 }; in add()
251 return new SecP192K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
269 ECFieldElement Y1 = this.y; in twicePlus()
DSecP256K1Point.java4 import org.bouncycastle.math.ec.ECFieldElement;
23 public SecP256K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y) in SecP256K1Point()
43 … public SecP256K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP256K1Point()
55 SecP256K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, in SecP256K1Point()
189 ECFieldElement[] zs = new ECFieldElement[] { Z3 }; in add()
251 return new SecP256K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
269 ECFieldElement Y1 = this.y; in twicePlus()
DSecP224K1Point.java4 import org.bouncycastle.math.ec.ECFieldElement;
23 public SecP224K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y) in SecP224K1Point()
43 … public SecP224K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP224K1Point()
55 SecP224K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, in SecP224K1Point()
189 ECFieldElement[] zs = new ECFieldElement[] { Z3 }; in add()
251 return new SecP224K1Point(curve, X3, Y3, new ECFieldElement[] { Z3 }, this.withCompression); in twice()
269 ECFieldElement Y1 = this.y; in twicePlus()
DSecP192R1Point.java4 import org.bouncycastle.math.ec.ECFieldElement;
23 public SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y) in SecP192R1Point()
43 … public SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in SecP192R1Point()
55 …SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean wit… in SecP192R1Point()
188 ECFieldElement[] zs = new ECFieldElement[]{ Z3 }; in add()
263 return new SecP192R1Point(curve, X3, Y3, new ECFieldElement[]{ Z3 }, this.withCompression); in twice()
281 ECFieldElement Y1 = this.y; in twicePlus()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX9FieldElement.java9 import org.bouncycastle.math.ec.ECFieldElement;
17 protected ECFieldElement f;
21 public X9FieldElement(ECFieldElement f) in X9FieldElement()
28 this(new ECFieldElement.Fp(p, new BigInteger(1, s.getOctets()))); in X9FieldElement()
33 this(new ECFieldElement.F2m(m, k1, k2, k3, new BigInteger(1, s.getOctets()))); in X9FieldElement()
36 public ECFieldElement getValue() in getValue()

12