Home
last modified time | relevance | path

Searched refs:ECPoint (Results 1 – 25 of 62) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECAlgorithms.java33 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in sumOfMultiplies()
51 ECPoint p = ps[0]; in sumOfMultiplies()
54 ECPoint[] imported = new ECPoint[count]; in sumOfMultiplies()
70 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a, in sumOfTwoMultiplies()
71 ECPoint Q, BigInteger b) in sumOfTwoMultiplies()
90 …implSumOfMultipliesGLV(new ECPoint[]{ P, Q }, new BigInteger[]{ a, b }, (GLVEndomorphism)endomorph… in sumOfTwoMultiplies()
115 public static ECPoint shamirsTrick(ECPoint P, BigInteger k, in shamirsTrick()
116 ECPoint Q, BigInteger l) in shamirsTrick()
124 public static ECPoint importPoint(ECCurve c, ECPoint p) in importPoint()
187 public static ECPoint referenceMultiply(ECPoint p, BigInteger k) in referenceMultiply()
[all …]
DWTauNafMultiplier.java22 protected ECPoint multiplyPositive(ECPoint point, BigInteger k) in multiplyPositive()
24 if (!(point instanceof ECPoint.AbstractF2m)) in multiplyPositive()
30 ECPoint.AbstractF2m p = (ECPoint.AbstractF2m)point; in multiplyPositive()
52 private ECPoint.AbstractF2m multiplyWTnaf(ECPoint.AbstractF2m p, ZTauElement lambda, in multiplyWTnaf()
74 …private static ECPoint.AbstractF2m multiplyFromWTnaf(ECPoint.AbstractF2m p, byte[] u, PreCompInfo … in multiplyFromWTnaf()
79 ECPoint.AbstractF2m[] pu; in multiplyFromWTnaf()
94 ECPoint.AbstractF2m[] puNeg = new ECPoint.AbstractF2m[pu.length]; in multiplyFromWTnaf()
97 puNeg[i] = (ECPoint.AbstractF2m)pu[i].negate(); in multiplyFromWTnaf()
102 ECPoint.AbstractF2m q = (ECPoint.AbstractF2m) p.getCurve().getInfinity(); in multiplyFromWTnaf()
114 ECPoint x = ui > 0 ? pu[ui >>> 1] : puNeg[(-ui) >>> 1]; in multiplyFromWTnaf()
[all …]
DWNafPreCompInfo.java13 protected ECPoint[] preComp = null;
19 protected ECPoint[] preCompNeg = null;
25 protected ECPoint twice = null;
27 public ECPoint[] getPreComp() in getPreComp()
32 public void setPreComp(ECPoint[] preComp) in setPreComp()
37 public ECPoint[] getPreCompNeg() in getPreCompNeg()
42 public void setPreCompNeg(ECPoint[] preCompNeg) in setPreCompNeg()
47 public ECPoint getTwice() in getTwice()
52 public void setTwice(ECPoint twice) in setTwice()
DECCurve.java114 public ECPoint validatePoint(BigInteger x, BigInteger y) in validatePoint()
116 ECPoint p = createPoint(x, y); in validatePoint()
128 public ECPoint validatePoint(BigInteger x, BigInteger y, boolean withCompression) in validatePoint()
130 ECPoint p = createPoint(x, y, withCompression); in validatePoint()
138 public ECPoint createPoint(BigInteger x, BigInteger y) in createPoint()
147 public ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression) in createPoint()
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()
173 public PreCompInfo getPreCompInfo(ECPoint point, String name) in getPreCompInfo()
195 public void setPreCompInfo(ECPoint point, String name, PreCompInfo preCompInfo) in setPreCompInfo()
[all …]
DECPoint.java9 public abstract class ECPoint class
54 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() method in ECPoint
59 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() method in ECPoint
75 public final ECPoint getDetachedPoint() in getDetachedPoint()
85 protected abstract ECPoint detach(); in detach()
230 public ECPoint normalize() in normalize()
257 ECPoint normalize(ECFieldElement zInv) in normalize()
280 protected ECPoint createScaledPoint(ECFieldElement sx, ECFieldElement sy) in createScaledPoint()
324 public ECPoint scaleX(ECFieldElement scale) in scaleX()
331 public ECPoint scaleY(ECFieldElement scale) in scaleY()
[all …]
DWNafUtil.java13 private static final ECPoint[] EMPTY_POINTS = new ECPoint[0];
300 public static WNafPreCompInfo getWNafPreCompInfo(ECPoint p) in getWNafPreCompInfo()
346 public static ECPoint mapPointWithPrecomp(ECPoint p, int width, boolean includeNegated, in mapPointWithPrecomp()
352 ECPoint q = pointMap.map(p); in mapPointWithPrecomp()
355 ECPoint twiceP = wnafPreCompP.getTwice(); in mapPointWithPrecomp()
358 ECPoint twiceQ = pointMap.map(twiceP); in mapPointWithPrecomp()
362 ECPoint[] preCompP = wnafPreCompP.getPreComp(); in mapPointWithPrecomp()
363 ECPoint[] preCompQ = new ECPoint[preCompP.length]; in mapPointWithPrecomp()
372 ECPoint[] preCompNegQ = new ECPoint[preCompQ.length]; in mapPointWithPrecomp()
385 public static WNafPreCompInfo precompute(ECPoint p, int width, boolean includeNegated) in precompute()
[all …]
DFixedPointPreCompInfo.java8 protected ECPoint offset = null;
14 protected ECPoint[] preComp = null;
23 public ECPoint getOffset() in getOffset()
28 public void setOffset(ECPoint offset) in setOffset()
33 public ECPoint[] getPreComp() in getPreComp()
38 public void setPreComp(ECPoint[] preComp) in setPreComp()
DWNafL2RMultiplier.java18 protected ECPoint multiplyPositive(ECPoint p, BigInteger k) in multiplyPositive()
24 ECPoint[] preComp = wnafPreCompInfo.getPreComp(); in multiplyPositive()
25 ECPoint[] preCompNeg = wnafPreCompInfo.getPreCompNeg(); in multiplyPositive()
29 ECPoint R = p.getCurve().getInfinity(); in multiplyPositive()
43 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
76 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
77 ECPoint r = table[n >>> 1]; in multiplyPositive()
DAbstractECMultiplier.java7 public ECPoint multiply(ECPoint p, BigInteger k) in multiply()
15 ECPoint positive = multiplyPositive(p, k.abs()); in multiply()
16 ECPoint result = sign > 0 ? positive : positive.negate(); in multiply()
25 protected abstract ECPoint multiplyPositive(ECPoint p, BigInteger k); in multiplyPositive()
DFixedPointUtil.java25 public static FixedPointPreCompInfo precompute(ECPoint p, int minWidth) in precompute()
31 ECPoint[] lookupTable = info.getPreComp(); in precompute()
38 ECPoint[] pow2Table = new ECPoint[minWidth + 1]; in precompute()
50 lookupTable = new ECPoint[n]; in precompute()
55 ECPoint pow2 = pow2Table[bit]; in precompute()
DTnaf.java393 public static ECPoint.AbstractF2m tau(ECPoint.AbstractF2m p) in tau()
654 public static ECPoint.AbstractF2m multiplyRTnaf(ECPoint.AbstractF2m p, BigInteger k) in multiplyRTnaf()
675 public static ECPoint.AbstractF2m multiplyTnaf(ECPoint.AbstractF2m p, ZTauElement lambda) in multiplyTnaf()
681 ECPoint.AbstractF2m q = multiplyFromTnaf(p, u); in multiplyTnaf()
695 public static ECPoint.AbstractF2m multiplyFromTnaf(ECPoint.AbstractF2m p, byte[] u) in multiplyFromTnaf()
698 ECPoint.AbstractF2m q = (ECPoint.AbstractF2m)curve.getInfinity(); in multiplyFromTnaf()
699 ECPoint.AbstractF2m pNeg = (ECPoint.AbstractF2m)p.negate(); in multiplyFromTnaf()
710 ECPoint x = ui > 0 ? p : pNeg; in multiplyFromTnaf()
711 q = (ECPoint.AbstractF2m)q.add(x); in multiplyFromTnaf()
832 public static ECPoint.AbstractF2m[] getPreComp(ECPoint.AbstractF2m p, byte a) in getPreComp()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DECPublicKeyParameters.java3 import org.bouncycastle.math.ec.ECPoint;
8 private final ECPoint Q;
11 ECPoint Q, in ECPublicKeyParameters()
19 private ECPoint validate(ECPoint q) in validate()
41 public ECPoint getQ() in getQ()
DECDomainParameters.java7 import org.bouncycastle.math.ec.ECPoint;
15 private ECPoint G;
21 ECPoint G, in ECDomainParameters()
29 ECPoint G, in ECDomainParameters()
38 ECPoint G, in ECDomainParameters()
55 public ECPoint getG() in getG()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
DECNamedCurveSpec.java7 import java.security.spec.ECPoint;
50 private static ECPoint convertPoint( in convertPoint()
51 org.bouncycastle.math.ec.ECPoint g) in convertPoint()
54 return new ECPoint(g.getAffineXCoord().toBigInteger(), g.getAffineYCoord().toBigInteger()); in convertPoint()
60 org.bouncycastle.math.ec.ECPoint g, in ECNamedCurveSpec()
71 ECPoint g, in ECNamedCurveSpec()
82 org.bouncycastle.math.ec.ECPoint g, in ECNamedCurveSpec()
94 ECPoint g, in ECNamedCurveSpec()
106 org.bouncycastle.math.ec.ECPoint g, in ECNamedCurveSpec()
DECParameterSpec.java4 import org.bouncycastle.math.ec.ECPoint;
17 private ECPoint G;
23 ECPoint G, in ECParameterSpec()
35 ECPoint G, in ECParameterSpec()
48 ECPoint G, in ECParameterSpec()
73 public ECPoint getG() in getG()
DECPublicKeySpec.java3 import org.bouncycastle.math.ec.ECPoint;
11 private ECPoint q;
20 ECPoint q, in ECPublicKeySpec()
38 public ECPoint getQ() in getQ()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX9ECPoint.java8 import org.bouncycastle.math.ec.ECPoint;
20 private ECPoint p;
23 ECPoint p) in X9ECPoint()
29 ECPoint p, in X9ECPoint()
56 public synchronized ECPoint getPoint() in getPoint()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java8 import java.security.spec.ECPoint;
149 new ECPoint( in convertToSpec()
169 new ECPoint( in convertToSpec()
179 new ECPoint( in convertToSpec()
194 new ECPoint( in convertToSpec()
264 new ECPoint( in convertSpec()
274 new ECPoint( in convertSpec()
296 public static org.bouncycastle.math.ec.ECPoint convertPoint( in convertPoint()
298 ECPoint point, in convertPoint()
304 public static org.bouncycastle.math.ec.ECPoint convertPoint( in convertPoint()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP192K1Point.java5 import org.bouncycastle.math.ec.ECPoint;
9 public class SecP192K1Point extends ECPoint.AbstractFp
63 protected ECPoint detach() in detach()
69 public ECPoint add(ECPoint b) in add()
195 public ECPoint twice() in twice()
254 public ECPoint twicePlus(ECPoint b) in twicePlus()
278 public ECPoint threeTimes() in threeTimes()
289 public ECPoint negate() in negate()
DSecP256K1Point.java5 import org.bouncycastle.math.ec.ECPoint;
9 public class SecP256K1Point extends ECPoint.AbstractFp
63 protected ECPoint detach() in detach()
69 public ECPoint add(ECPoint b) in add()
195 public ECPoint twice() in twice()
254 public ECPoint twicePlus(ECPoint b) in twicePlus()
278 public ECPoint threeTimes() in threeTimes()
289 public ECPoint negate() in negate()
DSecP224K1Point.java5 import org.bouncycastle.math.ec.ECPoint;
9 public class SecP224K1Point extends ECPoint.AbstractFp
63 protected ECPoint detach() in detach()
69 public ECPoint add(ECPoint b) in add()
195 public ECPoint twice() in twice()
254 public ECPoint twicePlus(ECPoint b) in twicePlus()
278 public ECPoint threeTimes() in threeTimes()
289 public ECPoint negate() in negate()
DSecP192R1Point.java5 import org.bouncycastle.math.ec.ECPoint;
9 public class SecP192R1Point extends ECPoint.AbstractFp
62 protected ECPoint detach() in detach()
68 public ECPoint add(ECPoint b) in add()
194 public ECPoint twice() in twice()
266 public ECPoint twicePlus(ECPoint b) in twicePlus()
290 public ECPoint threeTimes() in threeTimes()
301 public ECPoint negate() in negate()
DSecP256R1Point.java5 import org.bouncycastle.math.ec.ECPoint;
9 public class SecP256R1Point extends ECPoint.AbstractFp
62 protected ECPoint detach() in detach()
67 public ECPoint add(ECPoint b) in add()
192 public ECPoint twice() in twice()
264 public ECPoint twicePlus(ECPoint b) in twicePlus()
288 public ECPoint threeTimes() in threeTimes()
299 public ECPoint negate() in negate()
DSecP224R1Point.java5 import org.bouncycastle.math.ec.ECPoint;
9 public class SecP224R1Point extends ECPoint.AbstractFp
62 protected ECPoint detach() in detach()
67 public ECPoint add(ECPoint b) in add()
192 public ECPoint twice() in twice()
264 public ECPoint twicePlus(ECPoint b) in twicePlus()
288 public ECPoint threeTimes() in threeTimes()
299 public ECPoint negate() in negate()
DSecP384R1Point.java5 import org.bouncycastle.math.ec.ECPoint;
9 public class SecP384R1Point extends ECPoint.AbstractFp
62 protected ECPoint detach() in detach()
67 public ECPoint add(ECPoint b) in add()
193 public ECPoint twice() in twice()
265 public ECPoint twicePlus(ECPoint b) in twicePlus()
289 public ECPoint threeTimes() in threeTimes()
300 public ECPoint negate() in negate()

123