Searched refs:curve (Results 1 - 25 of 71) sorted by relevance

123

/external/openssh/
H A Dbufec.c32 buffer_put_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, argument
37 if ((ret = sshbuf_put_ec(buffer, point, curve)) != 0) {
45 buffer_put_ecpoint(Buffer *buffer, const EC_GROUP *curve, argument
48 if (buffer_put_ecpoint_ret(buffer, curve, point) == -1)
53 buffer_get_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, argument
58 if ((ret = sshbuf_get_ec(buffer, point, curve)) != 0) {
66 buffer_get_ecpoint(Buffer *buffer, const EC_GROUP *curve, argument
69 if (buffer_get_ecpoint_ret(buffer, curve, point) == -1)
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
H A DECParameterSpec.java15 private ECCurve curve; field in class:ECParameterSpec
22 ECCurve curve,
26 this.curve = curve;
34 ECCurve curve,
39 this.curve = curve;
47 ECCurve curve,
53 this.curve = curve;
21 ECParameterSpec( ECCurve curve, ECPoint G, BigInteger n) argument
33 ECParameterSpec( ECCurve curve, ECPoint G, BigInteger n, BigInteger h) argument
46 ECParameterSpec( ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed) argument
[all...]
H A DECNamedCurveParameterSpec.java9 * specification signifying that the curve parameters can also be
21 ECCurve curve,
25 super(curve, G, n);
32 ECCurve curve,
37 super(curve, G, n, h);
44 ECCurve curve,
50 super(curve, G, n, h, seed);
56 * return the name of the curve the EC domain parameters belong to.
19 ECNamedCurveParameterSpec( String name, ECCurve curve, ECPoint G, BigInteger n) argument
30 ECNamedCurveParameterSpec( String name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h) argument
42 ECNamedCurveParameterSpec( String name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed) argument
H A DECNamedCurveSpec.java13 * specification signifying that the curve parameters can also be
22 ECCurve curve,
25 if (ECAlgorithms.isFpCurve(curve))
27 return new EllipticCurve(new ECFieldFp(curve.getField().getCharacteristic()), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed);
31 ECCurve.F2m curveF2m = (ECCurve.F2m)curve;
38 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed);
44 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve
21 convertCurve( ECCurve curve, byte[] seed) argument
57 ECNamedCurveSpec( String name, ECCurve curve, org.bouncycastle.math.ec.ECPoint g, BigInteger n) argument
68 ECNamedCurveSpec( String name, EllipticCurve curve, ECPoint g, BigInteger n) argument
79 ECNamedCurveSpec( String name, ECCurve curve, org.bouncycastle.math.ec.ECPoint g, BigInteger n, BigInteger h) argument
91 ECNamedCurveSpec( String name, EllipticCurve curve, ECPoint g, BigInteger n, BigInteger h) argument
103 ECNamedCurveSpec( String name, ECCurve curve, org.bouncycastle.math.ec.ECPoint g, BigInteger n, BigInteger h, byte[] seed) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DECNamedDomainParameters.java14 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n) argument
16 this(name, curve, G, n, null, null);
19 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h) argument
21 this(name, curve, G, n, h, null);
24 public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed) argument
26 super(curve, G, n, h, seed);
H A DECDomainParameters.java13 private ECCurve curve; field in class:ECDomainParameters
20 ECCurve curve,
24 this(curve, G, n, ONE, null);
28 ECCurve curve,
33 this(curve, G, n, h, null);
37 ECCurve curve,
43 this.curve = curve;
52 return curve;
19 ECDomainParameters( ECCurve curve, ECPoint G, BigInteger n) argument
27 ECDomainParameters( ECCurve curve, ECPoint G, BigInteger n, BigInteger h) argument
36 ECDomainParameters( ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed) argument
/external/skia/src/pathops/
H A DSkPathOpsRect.h51 void setBounds(const SkDConic& curve) { argument
52 setBounds(curve, curve, 0, 1);
55 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd);
57 void setBounds(const SkDCubic& curve) { argument
58 setBounds(curve, curve, 0, 1);
61 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, double tEnd);
63 void setBounds(const SkDQuad& curve) { argument
64 setBounds(curve, curv
[all...]
H A DSkPathOpsCurve.cpp11 void SkDCurve::setConicBounds(const SkPoint curve[3], SkScalar curveWeight, argument
14 dCurve.set(curve, curveWeight);
21 void SkDCurve::setCubicBounds(const SkPoint curve[4], SkScalar , argument
24 dCurve.set(curve);
31 void SkDCurve::setQuadBounds(const SkPoint curve[3], SkScalar , argument
34 dCurve.set(curve);
H A DSkPathOpsRect.cpp13 void SkDRect::setBounds(const SkDQuad& curve, const SkDQuad& sub, double startT, double endT) { argument
26 add(curve.ptAtT(t));
30 void SkDRect::setBounds(const SkDConic& curve, const SkDConic& sub, double startT, double endT) { argument
43 add(curve.ptAtT(t));
47 void SkDRect::setBounds(const SkDCubic& curve, const SkDCubic& sub, double startT, double endT) { argument
60 add(curve.ptAtT(t));
H A DSkOpEdgeBuilder.cpp78 SkPoint curve[4]; local
87 closeContour(curve[0], curveStart);
92 curveStart = curve[0] = pts[0];
97 if (SkDPoint::ApproximatelyEqual(curve[0], pts[1])) {
108 curve[1] = pts[1];
109 curve[2] = pts[2];
110 verb = SkReduceOrder::Quad(curve, pts);
118 curve[1] = pts[1];
119 curve[2] = pts[2];
120 verb = SkReduceOrder::Conic(curve, ite
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ec/
H A DCustomNamedCurves.java31 private static ECCurve configureCurve(ECCurve curve) argument
33 return curve;
50 // ECCurve curve = configureCurve(new Curve25519());
61 // ECPoint G = curve.decodePoint(Hex.decode("04"
65 // return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
90 ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv);
91 ECPoint G = curve.decodePoint(Hex.decode("04"
94 return new X9ECParameters(curve,
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DGLVMultiplier.java9 protected final ECCurve curve; field in class:GLVMultiplier
12 public GLVMultiplier(ECCurve curve, GLVEndomorphism glvEndomorphism) argument
14 if (curve == null || curve.getOrder() == null)
16 throw new IllegalArgumentException("Need curve with known group order");
19 this.curve = curve;
25 if (!curve.equals(p.getCurve()))
H A DWTauNafMultiplier.java31 ECCurve.F2m curve = (ECCurve.F2m)p.getCurve();
32 int m = curve.getM();
33 byte a = curve.getA().toBigInteger().byteValue();
34 byte mu = curve.getMu();
35 BigInteger[] s = curve.getSi();
39 return multiplyWTnaf(p, rho, curve.getPreCompInfo(p, PRECOMP_NAME), a, mu);
76 ECCurve.F2m curve = (ECCurve.F2m)p.getCurve();
77 byte a = curve.getA().toBigInteger().byteValue();
86 curve.setPreCompInfo(p, PRECOMP_NAME, pre);
H A DECPoint.java13 protected static ECFieldElement[] getInitialZCoords(ECCurve curve) argument
15 // Cope with null curve, most commonly used by implicitlyCa
16 int coord = null == curve ? ECCurve.COORD_AFFINE : curve.getCoordinateSystem();
27 ECFieldElement one = curve.fromBigInteger(ECConstants.ONE);
38 return new ECFieldElement[]{ one, curve.getA() };
44 protected ECCurve curve; field in class:ECPoint
54 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) argument
56 this(curve, x, y, getInitialZCoords(curve));
59 ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) argument
530 AbstractFp(ECCurve curve, ECFieldElement x, ECFieldElement y) argument
535 AbstractFp(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) argument
613 Fp(ECCurve curve, ECFieldElement x, ECFieldElement y) argument
628 Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) argument
640 Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) argument
1344 AbstractF2m(ECCurve curve, ECFieldElement x, ECFieldElement y) argument
1349 AbstractF2m(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) argument
1435 F2m(ECCurve curve, ECFieldElement x, ECFieldElement y) argument
1448 F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) argument
1474 F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) argument
[all...]
/external/skia/tests/
H A DPathOpsThreeWayTest.cpp15 SkDCubic curve; // largest can hold lines / quads/ cubics member in struct:Curve
52 SkDLine oLine = {{ oTest.curve[0], oTest.curve[1] }};
53 SkDLine iLine = {{ iTest.curve[0], iTest.curve[1] }};
57 i->intersect(iTest.curve, oLine);
59 i->intersect(oTest.curve, iLine);
61 i->intersect(oTest.curve, iTest.curve);
H A DPathOpsBoundsTest.cpp65 SkDCurve curve; local
66 curve.fQuad.set(curvePts);
67 curve.setQuadBounds(curvePts, 1, 0, 1, &bounds);
70 curve.fCubic.set(curvePts);
71 curve.setCubicBounds(curvePts, 1, 0, 1, &bounds);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
H A DSECNamedCurves.java20 private static ECCurve configureCurve(ECCurve curve) argument
22 return curve;
51 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
52 //ECPoint G = curve.decodePoint(Hex.decode("02"
54 ECPoint G = curve.decodePoint(Hex.decode("04"
58 return new X9ECParameters(curve, G, n, h, S);
77 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
78 //ECPoint G = curve.decodePoint(Hex.decode("03"
80 ECPoint G = curve.decodePoint(Hex.decode("04"
84 return new X9ECParameters(curve,
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
H A DX9Curve.java25 private ECCurve curve; field in class:X9Curve
30 ECCurve curve)
32 this.curve = curve;
38 ECCurve curve,
41 this.curve = curve;
58 curve = new ECCurve.Fp(p, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger());
92 curve = new ECCurve.F2m(m, k1, k2, k3, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger());
107 if (ECAlgorithms.isFpCurve(curve))
29 X9Curve( ECCurve curve) argument
37 X9Curve( ECCurve curve, byte[] seed) argument
[all...]
H A DX9ECParameters.java28 private ECCurve curve; field in class:X9ECParameters
47 this.curve = x9c.getCurve();
56 this.g = new X9ECPoint(curve, (ASN1OctetString)p).getPoint();
84 ECCurve curve,
88 this(curve, g, n, ONE, null);
92 ECCurve curve,
97 this(curve, g, n, h, null);
101 ECCurve curve,
107 this.curve = curve;
83 X9ECParameters( ECCurve curve, ECPoint g, BigInteger n) argument
91 X9ECParameters( ECCurve curve, ECPoint g, BigInteger n, BigInteger h) argument
100 X9ECParameters( ECCurve curve, ECPoint g, BigInteger n, BigInteger h, byte[] seed) argument
[all...]
/external/libvorbis/lib/
H A Dlsp.h24 extern void vorbis_lsp_to_curve(float *curve,int *map,int n,int ln,
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
H A DECParameterSpec_ImplTest.java65 * <code>curve</code>, <code>generator</code> or <code>order</code> is <code>null</code><br>
71 EllipticCurve curve =
78 // Test case 1: curve is null
88 new ECParameterSpec(curve, null, order, 10);
96 new ECParameterSpec(curve, generator, null, 10);
119 EllipticCurve curve =
128 new ECParameterSpec(curve, generator, BigInteger.valueOf(-5L), 10);
136 new ECParameterSpec(curve, generator, BigInteger.ZERO, 10);
144 new ECParameterSpec(curve, generator, BigInteger.valueOf(5L), -10);
152 new ECParameterSpec(curve, generato
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
H A DEC5Util.java34 if (curveParams != null) // there may not be a regular curve, may just be a custom curve.
42 ECCurve curve,
47 if (ECAlgorithms.isFpCurve(curve))
49 return new EllipticCurve(new ECFieldFp(curve.getField().getCharacteristic()), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null);
53 ECCurve.F2m curveF2m = (ECCurve.F2m)curve;
60 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve
41 convertCurve( ECCurve curve, byte[] seed) argument
147 convertPoint( ECCurve curve, ECPoint point, boolean withCompression) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/endo/
H A DGLVTypeBEndomorphism.java12 protected final ECCurve curve; field in class:GLVTypeBEndomorphism
16 public GLVTypeBEndomorphism(ECCurve curve, GLVTypeBParameters parameters) argument
18 this.curve = curve;
20 this.pointMap = new ScaleXPointMap(curve.fromBigInteger(parameters.getBeta()));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
H A DSecP192K1Point.java14 * @param curve
15 * the curve to use
23 public SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y) argument
25 this(curve, x, y, false);
31 * @param curve
32 * the curve to use
43 public SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) argument
45 super(curve, x, y);
55 SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, argument
58 super(curve,
[all...]
H A DSecP192R1Point.java14 * @param curve
15 * the curve to use
23 public SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y) argument
25 this(curve, x, y, false);
31 * @param curve
32 * the curve to use
43 public SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) argument
45 super(curve, x, y);
55 SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) argument
57 super(curve,
[all...]

Completed in 528 milliseconds

123