/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | ECAlgorithms.java | 35 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in sumOfMultiplies() 53 ECPoint p = ps[0]; in sumOfMultiplies() 56 ECPoint[] imported = new ECPoint[count]; in sumOfMultiplies() 72 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a, in sumOfTwoMultiplies() 73 ECPoint Q, BigInteger b) in sumOfTwoMultiplies() 92 …implSumOfMultipliesGLV(new ECPoint[]{ P, Q }, new BigInteger[]{ a, b }, (GLVEndomorphism)endomorph… in sumOfTwoMultiplies() 117 public static ECPoint shamirsTrick(ECPoint P, BigInteger k, in shamirsTrick() 118 ECPoint Q, BigInteger l) in shamirsTrick() 126 public static ECPoint importPoint(ECCurve c, ECPoint p) in importPoint() 190 public static ECPoint referenceMultiply(ECPoint p, BigInteger k) in referenceMultiply() [all …]
|
D | WTauNafMultiplier.java | 22 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, byte a, byte … in multiplyWTnaf() 73 private static ECPoint.AbstractF2m multiplyFromWTnaf(final ECPoint.AbstractF2m p, byte[] u) in multiplyFromWTnaf() 93 ECPoint.AbstractF2m[] pu = preCompInfo.getPreComp(); in multiplyFromWTnaf() 96 ECPoint.AbstractF2m[] puNeg = new ECPoint.AbstractF2m[pu.length]; in multiplyFromWTnaf() 99 puNeg[i] = (ECPoint.AbstractF2m)pu[i].negate(); in multiplyFromWTnaf() 104 ECPoint.AbstractF2m q = (ECPoint.AbstractF2m) p.getCurve().getInfinity(); in multiplyFromWTnaf() 116 ECPoint x = ui > 0 ? pu[ui >>> 1] : puNeg[(-ui) >>> 1]; in multiplyFromWTnaf() [all …]
|
D | WNafPreCompInfo.java | 17 protected ECPoint[] preComp = null; 23 protected ECPoint[] preCompNeg = null; 29 protected ECPoint twice = null; 68 public ECPoint[] getPreComp() in getPreComp() 73 public void setPreComp(ECPoint[] preComp) in setPreComp() 78 public ECPoint[] getPreCompNeg() in getPreCompNeg() 83 public void setPreCompNeg(ECPoint[] preCompNeg) in setPreCompNeg() 88 public ECPoint getTwice() in getTwice() 93 public void setTwice(ECPoint twice) in setTwice()
|
D | AbstractECMultiplier.java | 7 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() 27 protected ECPoint checkResult(ECPoint p) in checkResult()
|
D | ECCurve.java | 120 public ECPoint validatePoint(BigInteger x, BigInteger y) in validatePoint() 122 ECPoint p = createPoint(x, y); in validatePoint() 130 public ECPoint createPoint(BigInteger x, BigInteger y) in createPoint() 137 protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y); in createRawPoint() 139 …protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs); in createRawPoint() 156 public PreCompInfo getPreCompInfo(ECPoint point, String name) in getPreCompInfo() 189 public PreCompInfo precompute(ECPoint point, String name, PreCompCallback callback) in precompute() 217 public ECPoint importPoint(ECPoint p) in importPoint() 244 public void normalizeAll(ECPoint[] points) in normalizeAll() 267 public void normalizeAll(ECPoint[] points, int off, int len, ECFieldElement iso) in normalizeAll() [all …]
|
D | ECPoint.java | 12 public abstract class ECPoint class 55 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() method in ECPoint 60 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() method in ECPoint 84 public final ECPoint getDetachedPoint() in getDetachedPoint() 94 protected abstract ECPoint detach(); in detach() 212 public ECPoint normalize() in normalize() 257 ECPoint normalize(ECFieldElement zInv) in normalize() 280 protected ECPoint createScaledPoint(ECFieldElement sx, ECFieldElement sy) in createScaledPoint() 346 public ECPoint scaleX(ECFieldElement scale) in scaleX() 353 public ECPoint scaleXNegateY(ECFieldElement scale) in scaleXNegateY() [all …]
|
D | WNafL2RMultiplier.java | 20 protected ECPoint multiplyPositive(ECPoint p, BigInteger k) in multiplyPositive() 25 ECPoint[] preComp = info.getPreComp(); in multiplyPositive() 26 ECPoint[] preCompNeg = info.getPreCompNeg(); in multiplyPositive() 31 ECPoint R = p.getCurve().getInfinity(); in multiplyPositive() 45 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive() 78 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive() 79 ECPoint r = table[n >>> 1]; in multiplyPositive()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/ |
D | ECAlgorithms.java | 39 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in sumOfMultiplies() 57 ECPoint p = ps[0]; in sumOfMultiplies() 60 ECPoint[] imported = new ECPoint[count]; in sumOfMultiplies() 76 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a, in sumOfTwoMultiplies() 77 ECPoint Q, BigInteger b) in sumOfTwoMultiplies() 96 …implSumOfMultipliesGLV(new ECPoint[]{ P, Q }, new BigInteger[]{ a, b }, (GLVEndomorphism)endomorph… in sumOfTwoMultiplies() 121 public static ECPoint shamirsTrick(ECPoint P, BigInteger k, in shamirsTrick() 122 ECPoint Q, BigInteger l) in shamirsTrick() 130 public static ECPoint importPoint(ECCurve c, ECPoint p) in importPoint() 194 public static ECPoint referenceMultiply(ECPoint p, BigInteger k) in referenceMultiply() [all …]
|
D | WTauNafMultiplier.java | 24 protected ECPoint multiplyPositive(ECPoint point, BigInteger k) in multiplyPositive() 26 if (!(point instanceof ECPoint.AbstractF2m)) in multiplyPositive() 32 ECPoint.AbstractF2m p = (ECPoint.AbstractF2m)point; in multiplyPositive() 54 …private ECPoint.AbstractF2m multiplyWTnaf(ECPoint.AbstractF2m p, ZTauElement lambda, byte a, byte … in multiplyWTnaf() 75 private static ECPoint.AbstractF2m multiplyFromWTnaf(final ECPoint.AbstractF2m p, byte[] u) in multiplyFromWTnaf() 95 ECPoint.AbstractF2m[] pu = preCompInfo.getPreComp(); in multiplyFromWTnaf() 98 ECPoint.AbstractF2m[] puNeg = new ECPoint.AbstractF2m[pu.length]; in multiplyFromWTnaf() 101 puNeg[i] = (ECPoint.AbstractF2m)pu[i].negate(); in multiplyFromWTnaf() 106 ECPoint.AbstractF2m q = (ECPoint.AbstractF2m) p.getCurve().getInfinity(); in multiplyFromWTnaf() 118 ECPoint x = ui > 0 ? pu[ui >>> 1] : puNeg[(-ui) >>> 1]; in multiplyFromWTnaf() [all …]
|
D | WNafPreCompInfo.java | 19 protected ECPoint[] preComp = null; 25 protected ECPoint[] preCompNeg = null; 31 protected ECPoint twice = null; 70 public ECPoint[] getPreComp() in getPreComp() 75 public void setPreComp(ECPoint[] preComp) in setPreComp() 80 public ECPoint[] getPreCompNeg() in getPreCompNeg() 85 public void setPreCompNeg(ECPoint[] preCompNeg) in setPreCompNeg() 90 public ECPoint getTwice() in getTwice() 95 public void setTwice(ECPoint twice) in setTwice()
|
D | AbstractECMultiplier.java | 11 public ECPoint multiply(ECPoint p, BigInteger k) in multiply() 19 ECPoint positive = multiplyPositive(p, k.abs()); in multiply() 20 ECPoint result = sign > 0 ? positive : positive.negate(); in multiply() 29 protected abstract ECPoint multiplyPositive(ECPoint p, BigInteger k); in multiplyPositive() 31 protected ECPoint checkResult(ECPoint p) in checkResult()
|
D | ECCurve.java | 125 public ECPoint validatePoint(BigInteger x, BigInteger y) in validatePoint() 127 ECPoint p = createPoint(x, y); in validatePoint() 135 public ECPoint createPoint(BigInteger x, BigInteger y) in createPoint() 142 protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y); in createRawPoint() 144 …protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs); in createRawPoint() 161 public PreCompInfo getPreCompInfo(ECPoint point, String name) in getPreCompInfo() 194 public PreCompInfo precompute(ECPoint point, String name, PreCompCallback callback) in precompute() 222 public ECPoint importPoint(ECPoint p) in importPoint() 249 public void normalizeAll(ECPoint[] points) in normalizeAll() 272 public void normalizeAll(ECPoint[] points, int off, int len, ECFieldElement iso) in normalizeAll() [all …]
|
D | ECPoint.java | 14 public abstract class ECPoint class 57 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() method in ECPoint 62 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() method in ECPoint 86 public final ECPoint getDetachedPoint() in getDetachedPoint() 96 protected abstract ECPoint detach(); in detach() 214 public ECPoint normalize() in normalize() 259 ECPoint normalize(ECFieldElement zInv) in normalize() 282 protected ECPoint createScaledPoint(ECFieldElement sx, ECFieldElement sy) in createScaledPoint() 348 public ECPoint scaleX(ECFieldElement scale) in scaleX() 355 public ECPoint scaleXNegateY(ECFieldElement scale) in scaleXNegateY() [all …]
|
D | WNafL2RMultiplier.java | 22 protected ECPoint multiplyPositive(ECPoint p, BigInteger k) in multiplyPositive() 27 ECPoint[] preComp = info.getPreComp(); in multiplyPositive() 28 ECPoint[] preCompNeg = info.getPreCompNeg(); in multiplyPositive() 33 ECPoint R = p.getCurve().getInfinity(); in multiplyPositive() 47 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive() 80 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive() 81 ECPoint r = table[n >>> 1]; in multiplyPositive()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/ |
D | ECAlgorithms.java | 39 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in sumOfMultiplies() 57 ECPoint p = ps[0]; in sumOfMultiplies() 60 ECPoint[] imported = new ECPoint[count]; in sumOfMultiplies() 76 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a, in sumOfTwoMultiplies() 77 ECPoint Q, BigInteger b) in sumOfTwoMultiplies() 96 …implSumOfMultipliesGLV(new ECPoint[]{ P, Q }, new BigInteger[]{ a, b }, (GLVEndomorphism)endomorph… in sumOfTwoMultiplies() 121 public static ECPoint shamirsTrick(ECPoint P, BigInteger k, in shamirsTrick() 122 ECPoint Q, BigInteger l) in shamirsTrick() 130 public static ECPoint importPoint(ECCurve c, ECPoint p) in importPoint() 194 public static ECPoint referenceMultiply(ECPoint p, BigInteger k) in referenceMultiply() [all …]
|
D | WTauNafMultiplier.java | 24 protected ECPoint multiplyPositive(ECPoint point, BigInteger k) in multiplyPositive() 26 if (!(point instanceof ECPoint.AbstractF2m)) in multiplyPositive() 32 ECPoint.AbstractF2m p = (ECPoint.AbstractF2m)point; in multiplyPositive() 54 …private ECPoint.AbstractF2m multiplyWTnaf(ECPoint.AbstractF2m p, ZTauElement lambda, byte a, byte … in multiplyWTnaf() 75 private static ECPoint.AbstractF2m multiplyFromWTnaf(final ECPoint.AbstractF2m p, byte[] u) in multiplyFromWTnaf() 95 ECPoint.AbstractF2m[] pu = preCompInfo.getPreComp(); in multiplyFromWTnaf() 98 ECPoint.AbstractF2m[] puNeg = new ECPoint.AbstractF2m[pu.length]; in multiplyFromWTnaf() 101 puNeg[i] = (ECPoint.AbstractF2m)pu[i].negate(); in multiplyFromWTnaf() 106 ECPoint.AbstractF2m q = (ECPoint.AbstractF2m) p.getCurve().getInfinity(); in multiplyFromWTnaf() 118 ECPoint x = ui > 0 ? pu[ui >>> 1] : puNeg[(-ui) >>> 1]; in multiplyFromWTnaf() [all …]
|
D | WNafPreCompInfo.java | 19 protected ECPoint[] preComp = null; 25 protected ECPoint[] preCompNeg = null; 31 protected ECPoint twice = null; 70 public ECPoint[] getPreComp() in getPreComp() 75 public void setPreComp(ECPoint[] preComp) in setPreComp() 80 public ECPoint[] getPreCompNeg() in getPreCompNeg() 85 public void setPreCompNeg(ECPoint[] preCompNeg) in setPreCompNeg() 90 public ECPoint getTwice() in getTwice() 95 public void setTwice(ECPoint twice) in setTwice()
|
D | AbstractECMultiplier.java | 11 public ECPoint multiply(ECPoint p, BigInteger k) in multiply() 19 ECPoint positive = multiplyPositive(p, k.abs()); in multiply() 20 ECPoint result = sign > 0 ? positive : positive.negate(); in multiply() 29 protected abstract ECPoint multiplyPositive(ECPoint p, BigInteger k); in multiplyPositive() 31 protected ECPoint checkResult(ECPoint p) in checkResult()
|
D | ECCurve.java | 125 public ECPoint validatePoint(BigInteger x, BigInteger y) in validatePoint() 127 ECPoint p = createPoint(x, y); in validatePoint() 135 public ECPoint createPoint(BigInteger x, BigInteger y) in createPoint() 142 protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y); in createRawPoint() 144 …protected abstract ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs); in createRawPoint() 161 public PreCompInfo getPreCompInfo(ECPoint point, String name) in getPreCompInfo() 194 public PreCompInfo precompute(ECPoint point, String name, PreCompCallback callback) in precompute() 222 public ECPoint importPoint(ECPoint p) in importPoint() 249 public void normalizeAll(ECPoint[] points) in normalizeAll() 272 public void normalizeAll(ECPoint[] points, int off, int len, ECFieldElement iso) in normalizeAll() [all …]
|
D | ECPoint.java | 14 public abstract class ECPoint class 57 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() method in ECPoint 62 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() method in ECPoint 86 public final ECPoint getDetachedPoint() in getDetachedPoint() 96 protected abstract ECPoint detach(); in detach() 214 public ECPoint normalize() in normalize() 259 ECPoint normalize(ECFieldElement zInv) in normalize() 282 protected ECPoint createScaledPoint(ECFieldElement sx, ECFieldElement sy) in createScaledPoint() 348 public ECPoint scaleX(ECFieldElement scale) in scaleX() 355 public ECPoint scaleXNegateY(ECFieldElement scale) in scaleXNegateY() [all …]
|
D | WNafL2RMultiplier.java | 22 protected ECPoint multiplyPositive(ECPoint p, BigInteger k) in multiplyPositive() 27 ECPoint[] preComp = info.getPreComp(); in multiplyPositive() 28 ECPoint[] preCompNeg = info.getPreCompNeg(); in multiplyPositive() 33 ECPoint R = p.getCurve().getInfinity(); in multiplyPositive() 47 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive() 80 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive() 81 ECPoint r = table[n >>> 1]; in multiplyPositive()
|
D | WNafUtil.java | 18 private static final ECPoint[] EMPTY_POINTS = new ECPoint[0]; 20 public static void configureBasepoint(ECPoint p) in configureBasepoint() 347 public static WNafPreCompInfo getWNafPreCompInfo(ECPoint p) in getWNafPreCompInfo() 414 …public static WNafPreCompInfo precompute(final ECPoint p, final int minWidth, final boolean includ… in precompute() 435 ECPoint[] preComp = null, preCompNeg = null; in precompute() 436 ECPoint twiceP = null; in precompute() 489 ECPoint isoTwiceP = twiceP, last = preComp[curPreCompLen - 1]; in precompute() 553 preCompNeg = new ECPoint[reqPreCompLen]; in precompute() 586 private boolean checkTable(ECPoint[] table, int reqLen) in precompute() 593 …public static WNafPreCompInfo precomputeWithPointMap(final ECPoint p, final ECPointMap pointMap, f… [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | ECDomainParameters.java | 9 import org.bouncycastle.math.ec.ECPoint; 18 private final ECPoint G; 31 ECPoint G, in ECDomainParameters() 39 ECPoint G, in ECDomainParameters() 48 ECPoint G, in ECDomainParameters() 75 public ECPoint getG() in getG() 152 public ECPoint validatePublicPoint(ECPoint q) in validatePublicPoint() 157 static ECPoint validatePublicPoint(ECCurve c, ECPoint q) in validatePublicPoint()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
D | ECDomainParameters.java | 10 import com.android.org.bouncycastle.math.ec.ECPoint; 22 private final ECPoint G; 35 ECPoint G, in ECDomainParameters() 43 ECPoint G, in ECDomainParameters() 52 ECPoint G, in ECDomainParameters() 79 public ECPoint getG() in getG() 156 public ECPoint validatePublicPoint(ECPoint q) in validatePublicPoint() 161 static ECPoint validatePublicPoint(ECCurve c, ECPoint q) in validatePublicPoint()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/params/ |
D | ECDomainParameters.java | 10 import com.android.internal.org.bouncycastle.math.ec.ECPoint; 22 private final ECPoint G; 35 ECPoint G, in ECDomainParameters() 43 ECPoint G, in ECDomainParameters() 52 ECPoint G, in ECDomainParameters() 79 public ECPoint getG() in getG() 156 public ECPoint validatePublicPoint(ECPoint q) in validatePublicPoint() 161 static ECPoint validatePublicPoint(ECCurve c, ECPoint q) in validatePublicPoint()
|