/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
ECPointMap.java | 5 ECPoint map(ECPoint p);
|
WNafPreCompInfo.java | 10 * Array holding the precomputed <code>ECPoint</code>s used for a Window 13 protected ECPoint[] preComp = null; 16 * Array holding the negations of the precomputed <code>ECPoint</code>s used 19 protected ECPoint[] preCompNeg = null; 22 * Holds an <code>ECPoint</code> representing twice(this). Used for the 25 protected ECPoint twice = null; 27 public ECPoint[] getPreComp() 32 public void setPreComp(ECPoint[] preComp) 37 public ECPoint[] getPreCompNeg() 42 public void setPreCompNeg(ECPoint[] preCompNeg [all...] |
AbstractECMultiplier.java | 7 public ECPoint multiply(ECPoint p, BigInteger k) 15 ECPoint positive = multiplyPositive(p, k.abs()); 16 ECPoint result = sign > 0 ? positive : positive.negate(); 25 protected abstract ECPoint multiplyPositive(ECPoint p, BigInteger k);
|
ScaleXPointMap.java | 12 public ECPoint map(ECPoint p)
|
WTauNafPreCompInfo.java | 10 * Array holding the precomputed <code>ECPoint.AbstractF2m</code>s used for the 13 protected ECPoint.AbstractF2m[] preComp = null; 15 public ECPoint.AbstractF2m[] getPreComp() 20 public void setPreComp(ECPoint.AbstractF2m[] preComp)
|
ECMultiplier.java | 7 * for <code>ECPoint</code>s. 12 * Multiplies the <code>ECPoint p</code> by <code>k</code>, i.e. 14 * @param p The <code>ECPoint</code> to be multiplied. 18 ECPoint multiply(ECPoint p, BigInteger k);
|
FixedPointPreCompInfo.java | 9 * Array holding the precomputed <code>ECPoint</code>s used for a fixed 12 protected ECPoint[] preComp = null; 21 public ECPoint[] getPreComp() 26 public void setPreComp(ECPoint[] preComp)
|
WTauNafMultiplier.java | 15 * Multiplies a {@link org.bouncycastle.math.ec.ECPoint.AbstractF2m ECPoint.AbstractF2m} 18 * @param point The ECPoint.AbstractF2m to multiply. 22 protected ECPoint multiplyPositive(ECPoint point, BigInteger k) 24 if (!(point instanceof ECPoint.AbstractF2m)) 26 throw new IllegalArgumentException("Only ECPoint.AbstractF2m can be " + 30 ECPoint.AbstractF2m p = (ECPoint.AbstractF2m)point; 43 * Multiplies a {@link org.bouncycastle.math.ec.ECPoint.AbstractF2m ECPoint.AbstractF2m [all...] |
ECAlgorithms.java | 33 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) 51 ECPoint p = ps[0]; 54 ECPoint[] imported = new ECPoint[count]; 70 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a, 71 ECPoint Q, BigInteger b) 90 implSumOfMultipliesGLV(new ECPoint[]{ P, Q }, new BigInteger[]{ a, b }, (GLVEndomorphism)endomorphism)); 115 public static ECPoint shamirsTrick(ECPoint P, BigInteger k [all...] |
FixedPointUtil.java | 25 public static FixedPointPreCompInfo precompute(ECPoint p, int minWidth) 31 ECPoint[] lookupTable = info.getPreComp(); 38 ECPoint[] pow2Table = new ECPoint[minWidth]; 47 lookupTable = new ECPoint[n]; 52 ECPoint pow2 = pow2Table[bit];
|
WNafL2RMultiplier.java | 15 * @return A new <code>ECPoint</code> which equals <code>this</code> 18 protected ECPoint multiplyPositive(ECPoint p, BigInteger k) 24 ECPoint[] preComp = wnafPreCompInfo.getPreComp(); 25 ECPoint[] preCompNeg = wnafPreCompInfo.getPreCompNeg(); 29 ECPoint R = p.getCurve().getInfinity(); 43 ECPoint[] table = digit < 0 ? preCompNeg : preComp; 76 ECPoint[] table = digit < 0 ? preCompNeg : preComp; 77 ECPoint r = table[n >>> 1];
|
FixedPointCombMultiplier.java | 7 protected ECPoint multiplyPositive(ECPoint p, BigInteger k) 26 ECPoint[] lookupTable = info.getPreComp(); 31 ECPoint R = c.getInfinity();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
ECPublicKeyParameters.java | 3 import org.bouncycastle.math.ec.ECPoint; 8 ECPoint Q; 11 ECPoint Q, 18 public ECPoint getQ()
|
ECNamedDomainParameters.java | 7 import org.bouncycastle.math.ec.ECPoint; 14 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n) 19 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h) 24 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed)
|
ECDomainParameters.java | 7 import org.bouncycastle.math.ec.ECPoint; 15 private ECPoint G; 21 ECPoint G, 29 ECPoint G, 38 ECPoint G, 55 public ECPoint getG()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
ECPointTest.java | 25 import java.security.spec.ECPoint; 30 * Tests for <code>ECPoint</code> class fields and methods. 48 * Test #1 for <code>ECPoint(BigInteger, BigInteger)</code> constructor<br> 49 * Assertion: creates <code>ECPoint</code> instance<br> 54 new ECPoint(BigInteger.ZERO, BigInteger.ZERO); 55 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(-23456L)); 56 new ECPoint(BigInteger.valueOf(123456L), BigInteger.valueOf(123456L)); 57 new ECPoint(BigInteger.valueOf(-56L), BigInteger.valueOf(234L)); 58 new ECPoint(BigInteger.valueOf(3456L), BigInteger.valueOf(-2344L)); 62 * Test #2 for <code>ECPoint(BigInteger x, BigInteger y)</code> constructor<br [all...] |
/libcore/luni/src/test/java/tests/security/spec/ |
ECPointTest.java | 28 import java.security.spec.ECPoint; 31 * Tests for <code>ECPoint</code> class fields and methods. 41 * Test #1 for <code>ECPoint(BigInteger, BigInteger)</code> constructor<br> 42 * Assertion: creates <code>ECPoint</code> instance<br> 47 new ECPoint(BigInteger.ZERO, BigInteger.ZERO); 48 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(-23456L)); 49 new ECPoint(BigInteger.valueOf(123456L), BigInteger.valueOf(123456L)); 50 new ECPoint(BigInteger.valueOf(-56L), BigInteger.valueOf(234L)); 51 new ECPoint(BigInteger.valueOf(3456L), BigInteger.valueOf(-2344L)); 55 * Test #2 for <code>ECPoint(BigInteger x, BigInteger y)</code> constructor<br [all...] |
ECParameterSpecTest.java | 24 import java.security.spec.ECPoint; 31 ECPoint ecpoint; field in class:ECParameterSpecTest 39 ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); 40 ecps = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1); 45 ecpoint = null; 51 * test for ECParameterSpec(EllipticCurve, ECPoint, BigInteger, int) constructor 65 assertEquals("wrong generator was returned", ecpoint, ecps 72 new ECParameterSpec(null, ecpoint, BigInteger.valueOf(1), 1) [all...] |
ECPublicKeySpecTest.java | 24 import java.security.spec.ECPoint; 29 ECPoint w; 37 ECPoint ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger local 42 w = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); 43 params = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1); 55 * test for constructor ECPublicKeySpec(ECPoint, ECParameterSpec)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/ |
ECPublicKeySpec.java | 3 import org.bouncycastle.math.ec.ECPoint; 11 private ECPoint q; 20 ECPoint q, 38 public ECPoint getQ()
|
ECNamedCurveParameterSpec.java | 6 import org.bouncycastle.math.ec.ECPoint; 22 ECPoint G, 33 ECPoint G, 45 ECPoint G,
|
ECNamedCurveSpec.java | 7 import java.security.spec.ECPoint; 50 private static ECPoint convertPoint( 51 org.bouncycastle.math.ec.ECPoint g) 54 return new ECPoint(g.getAffineXCoord().toBigInteger(), g.getAffineYCoord().toBigInteger()); 60 org.bouncycastle.math.ec.ECPoint g, 71 ECPoint g, 82 org.bouncycastle.math.ec.ECPoint g, 94 ECPoint g, 106 org.bouncycastle.math.ec.ECPoint g,
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/ |
X9ECPoint.java | 8 import org.bouncycastle.math.ec.ECPoint; 12 * class for describing an ECPoint as a DER object. 20 private ECPoint p; 23 ECPoint p) 29 ECPoint p, 56 public ECPoint getPoint() 75 * ECPoint ::= OCTET STRING 78 * Octet string produced using ECPoint.getEncoded().
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/ |
ECPublicKey.java | 5 import org.bouncycastle.math.ec.ECPoint; 16 public ECPoint getQ();
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
ECPublicKeySpec_ImplTest.java | 27 import java.security.spec.ECPoint; 48 * Test #1 for <code>ECPublicKeySpec(ECPoint, ECParameterSpec)</code> constructor<br> 59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 66 * Test #2 for <code>ECPublicKeySpec(ECPoint, ECParameterSpec)</code> constructor<br> 78 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 106 * Test #3 for <code>ECPublicKeySpec(ECPoint, ECParameterSpec)</code> constructor<br> 109 * Test preconditions: pass <code>ECPoint.POINT_INFINITY</code> 119 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)) [all...] |