Searched refs:ECPoint (Results 1 - 25 of 35) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DWNafPreCompInfo.java10 * Array holding the precomputed <code>ECPoint</code>s used for the Window
15 private ECPoint[] preComp = null;
18 * Holds an <code>ECPoint</code> representing twice(this). Used for the
23 private ECPoint twiceP = null;
25 protected ECPoint[] getPreComp()
30 protected void setPreComp(ECPoint[] preComp)
35 protected ECPoint getTwiceP()
40 protected void setTwiceP(ECPoint twiceThis)
H A DWTauNafPreCompInfo.java10 * Array holding the precomputed <code>ECPoint.F2m</code>s used for the
15 private ECPoint.F2m[] preComp = null;
19 * @param preComp Array holding the precomputed <code>ECPoint.F2m</code>s
24 WTauNafPreCompInfo(ECPoint.F2m[] preComp)
30 * @return the array holding the precomputed <code>ECPoint.F2m</code>s
35 protected ECPoint.F2m[] getPreComp()
H A DECMultiplier.java7 * 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, PreCompInfo preCompInfo);
H A DECAlgorithms.java7 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a,
8 ECPoint Q, BigInteger b)
48 public static ECPoint shamirsTrick(ECPoint P, BigInteger k,
49 ECPoint Q, BigInteger l)
59 private static ECPoint implShamirsTrick(ECPoint P, BigInteger k,
60 ECPoint Q, BigInteger l)
63 ECPoint
[all...]
H A DWTauNafMultiplier.java12 * Multiplies a {@link org.bouncycastle.math.ec.ECPoint.F2m ECPoint.F2m}
15 * @param p The ECPoint.F2m to multiply.
19 public ECPoint multiply(ECPoint point, BigInteger k, PreCompInfo preCompInfo)
21 if (!(point instanceof ECPoint.F2m))
23 throw new IllegalArgumentException("Only ECPoint.F2m can be " +
27 ECPoint.F2m p = (ECPoint.F2m)point;
41 * Multiplies a {@link org.bouncycastle.math.ec.ECPoint
[all...]
H A DFpNafMultiplier.java12 * @see org.bouncycastle.math.ec.ECMultiplier#multiply(org.bouncycastle.math.ec.ECPoint, java.math.BigInteger)
14 public ECPoint multiply(ECPoint p, BigInteger k, PreCompInfo preCompInfo)
21 ECPoint neg = p.negate();
22 ECPoint R = p;
H A DECPoint.java10 public abstract class ECPoint class
24 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) method in class:ECPoint
64 if (!(other instanceof ECPoint))
69 ECPoint o = (ECPoint)other;
92 // * this <code>ECPoint</code>.
101 * to save the precomputation for this <code>ECPoint</code> to store the
113 public abstract ECPoint add(ECPoint b);
114 public abstract ECPoint subtrac
[all...]
H A DWNafMultiplier.java87 * @return A new <code>ECPoint</code> which equals <code>this</code>
90 public ECPoint multiply(ECPoint p, BigInteger k, PreCompInfo preCompInfo)
169 ECPoint[] preComp = wnafPreCompInfo.getPreComp();
170 ECPoint twiceP = wnafPreCompInfo.getTwiceP();
177 preComp = new ECPoint[]{ p };
195 ECPoint[] oldPreComp = preComp;
196 preComp = new ECPoint[reqPreCompLen];
212 // Apply the Window NAF to p using the precomputed ECPoint values.
213 ECPoint
[all...]
H A DECCurve.java17 public abstract ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression);
19 public abstract ECPoint decodePoint(byte[] encoded);
21 public abstract ECPoint getInfinity();
39 ECPoint.Fp infinity;
46 this.infinity = new ECPoint.Fp(this, null, null);
64 public ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression)
66 return new ECPoint.Fp(this, fromBigInteger(x), fromBigInteger(y), withCompression);
75 public ECPoint decodePoint(byte[] encoded)
77 ECPoint p = null;
114 p = new ECPoint
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DECPublicKeyParameters.java3 import org.bouncycastle.math.ec.ECPoint;
8 ECPoint Q;
11 ECPoint Q,
18 public ECPoint getQ()
H A DECDomainParameters.java7 import org.bouncycastle.math.ec.ECPoint;
14 ECPoint G;
20 ECPoint G,
32 ECPoint G,
45 ECPoint G,
62 public ECPoint getG()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
H A DECPublicKeySpec.java3 import org.bouncycastle.math.ec.ECPoint;
11 private ECPoint q;
20 ECPoint q,
31 public ECPoint getQ()
H A DECNamedCurveParameterSpec.java6 import org.bouncycastle.math.ec.ECPoint;
22 ECPoint G,
33 ECPoint G,
45 ECPoint G,
H A DECParameterSpec.java4 import org.bouncycastle.math.ec.ECPoint;
17 private ECPoint G;
23 ECPoint G,
35 ECPoint G,
48 ECPoint G,
73 public ECPoint getG()
H A DECNamedCurveSpec.java6 import java.security.spec.ECPoint;
49 private static ECPoint convertPoint(
50 org.bouncycastle.math.ec.ECPoint g)
52 return new ECPoint(g.getX().toBigInteger(), g.getY().toBigInteger());
58 org.bouncycastle.math.ec.ECPoint g,
69 ECPoint g,
80 org.bouncycastle.math.ec.ECPoint g,
92 ECPoint g,
104 org.bouncycastle.math.ec.ECPoint g,
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
H A DECPublicKey.java5 import org.bouncycastle.math.ec.ECPoint;
16 public ECPoint getQ();
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
H A DECPointTest.java25 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(BigIntege
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
H A DX9ECPoint.java8 import org.bouncycastle.math.ec.ECPoint;
11 * class for describing an ECPoint as a DER object.
16 ECPoint p;
19 ECPoint p)
31 public ECPoint getPoint()
39 * ECPoint ::= OCTET STRING
42 * Octet string produced using ECPoint.getEncoded().
H A DX9ECParameters.java13 import org.bouncycastle.math.ec.ECPoint;
27 private ECPoint g;
73 ECPoint g,
81 ECPoint g,
90 ECPoint g,
121 public ECPoint getG()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
H A DECPublicKeySpec_ImplTest.java27 import java.security.spec.ECPoint;
49 * Test #1 for <code>ECPublicKeySpec(ECPoint, ECParameterSpec)</code> constructor<br>
60 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
67 * Test #2 for <code>ECPublicKeySpec(ECPoint, ECParameterSpec)</code> constructor<br>
79 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
107 * Test #3 for <code>ECPublicKeySpec(ECPoint, ECParameterSpec)</code> constructor<br>
110 * Test preconditions: pass <code>ECPoint.POINT_INFINITY</code>
120 ECPoint
[all...]
H A DECPrivateKeySpec_ImplTest.java27 import java.security.spec.ECPoint;
60 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
79 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
121 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
147 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
H A DECParameterSpec_ImplTest.java27 import java.security.spec.ECPoint;
48 * Test #1 for <code>ECParameterSpec(EllipticCurve, ECPoint, BigInteger, int)</code> constructor<br>
59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
64 * Test #2 for <code>ECParameterSpec(EllipticCurve, ECPoint, BigInteger, int)</code> constructor<br>
76 ECPoint generator = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
112 * Test #3 for <code>ECParameterSpec(EllipticCurve, ECPoint, BigInteger, int)</code> constructor<br>
124 ECPoint generator = new ECPoint(BigIntege
[all...]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/
H A DECPublicKeyTest.java25 import java.security.spec.ECPoint;
65 public ECPoint getW() {
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/
H A DECDHBasicAgreement.java9 import org.bouncycastle.math.ec.ECPoint;
45 ECPoint P = pub.getQ().multiply(key.getD());
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
H A DEC5Util.java8 import java.security.spec.ECPoint;
76 new ECPoint(
86 new ECPoint(
108 public static org.bouncycastle.math.ec.ECPoint convertPoint(
110 ECPoint point,
116 public static org.bouncycastle.math.ec.ECPoint convertPoint(
118 ECPoint point,

Completed in 308 milliseconds

12