Home
last modified time | relevance | path

Searched refs:curve (Results 1 – 25 of 47) sorted by relevance

12

/external/bouncycastle/src/main/java/org/bouncycastle/asn1/sec/
DSECNamedCurves.java39 ECCurve curve = new ECCurve.Fp(p, a, b);
42 ECPoint G = curve.decodePoint(Hex.decode("04"
46 return new X9ECParameters(curve, G, n, h, S);
65 ECCurve curve = new ECCurve.Fp(p, a, b);
68 ECPoint G = curve.decodePoint(Hex.decode("04"
72 return new X9ECParameters(curve, G, n, h, S);
91 ECCurve curve = new ECCurve.Fp(p, a, b);
94 ECPoint G = curve.decodePoint(Hex.decode("04"
98 return new X9ECParameters(curve, G, n, h, S);
117 ECCurve curve = new ECCurve.Fp(p, a, b);
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/jce/spec/
DECNamedCurveSpec.java21 ECCurve curve, in convertCurve() argument
24 if (curve instanceof ECCurve.Fp) in convertCurve()
26 …eturn new EllipticCurve(new ECFieldFp(((ECCurve.Fp)curve).getQ()), curve.getA().toBigInteger(), cu… in convertCurve()
30 ECCurve.F2m curveF2m = (ECCurve.F2m)curve; in convertCurve()
37 …urn new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB… in convertCurve()
43 …urn new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB… in convertCurve()
57 ECCurve curve, in ECNamedCurveSpec() argument
61 super(convertCurve(curve, null), convertPoint(g), n, 1); in ECNamedCurveSpec()
68 EllipticCurve curve, in ECNamedCurveSpec() argument
72 super(curve, g, n, 1); in ECNamedCurveSpec()
[all …]
DECParameterSpec.java15 private ECCurve curve; field in ECParameterSpec
22 ECCurve curve, in ECParameterSpec() argument
26 this.curve = curve; in ECParameterSpec()
34 ECCurve curve, in ECParameterSpec() argument
39 this.curve = curve; in ECParameterSpec()
47 ECCurve curve, in ECParameterSpec() argument
53 this.curve = curve; in ECParameterSpec()
66 return curve; in getCurve()
DECNamedCurveParameterSpec.java21 ECCurve curve, in ECNamedCurveParameterSpec() argument
25 super(curve, G, n); in ECNamedCurveParameterSpec()
32 ECCurve curve, in ECNamedCurveParameterSpec() argument
37 super(curve, G, n, h); in ECNamedCurveParameterSpec()
44 ECCurve curve, in ECNamedCurveParameterSpec() argument
50 super(curve, G, n, h, seed); in ECNamedCurveParameterSpec()
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/
DECPoint.java12 ECCurve curve; field in ECPoint
24 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() argument
26 this.curve = curve; in ECPoint()
33 return curve; in getCurve()
148 return this.curve.getInfinity(); in multiply()
168 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y) in Fp() argument
170 this(curve, x, y, false); in Fp()
181 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) in Fp() argument
183 super(curve, x, y); in Fp()
263 return this.curve.getInfinity(); in add()
[all …]
DWTauNafMultiplier.java29 ECCurve.F2m curve = (ECCurve.F2m) p.getCurve(); in multiply() local
30 int m = curve.getM(); in multiply()
31 byte a = curve.getA().toBigInteger().byteValue(); in multiply()
32 byte mu = curve.getMu(); in multiply()
33 BigInteger[] s = curve.getSi(); in multiply()
84 ECCurve.F2m curve = (ECCurve.F2m)p.getCurve(); in multiplyFromWTnaf() local
85 byte a = curve.getA().toBigInteger().byteValue(); in multiplyFromWTnaf()
DTnaf.java416 public static byte getMu(ECCurve.F2m curve) in getMu() argument
418 BigInteger a = curve.getA().toBigInteger(); in getMu()
542 public static BigInteger[] getSi(ECCurve.F2m curve) in getSi() argument
544 if (!curve.isKoblitz()) in getSi()
549 int m = curve.getM(); in getSi()
550 int a = curve.getA().toBigInteger().intValue(); in getSi()
551 byte mu = curve.getMu(); in getSi()
552 int h = curve.getH().intValue(); in getSi()
651 ECCurve.F2m curve = (ECCurve.F2m) p.getCurve(); in multiplyRTnaf() local
652 int m = curve.getM(); in multiplyRTnaf()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
DECParameterSpec_ImplTest.java72 EllipticCurve curve = in testECParameterSpec02() local
89 new ECParameterSpec(curve, null, order, 10); in testECParameterSpec02()
97 new ECParameterSpec(curve, generator, null, 10); in testECParameterSpec02()
120 EllipticCurve curve = in testECParameterSpec03() local
129 new ECParameterSpec(curve, generator, BigInteger.valueOf(-5L), 10); in testECParameterSpec03()
137 new ECParameterSpec(curve, generator, BigInteger.ZERO, 10); in testECParameterSpec03()
145 new ECParameterSpec(curve, generator, BigInteger.valueOf(5L), -10); in testECParameterSpec03()
153 new ECParameterSpec(curve, generator, BigInteger.valueOf(5L), 0); in testECParameterSpec03()
161 new ECParameterSpec(curve, generator, BigInteger.valueOf(-5L), 0); in testECParameterSpec03()
177 EllipticCurve curve = in testGetCofactor() local
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x9/
DX9ECParameters.java26 private ECCurve curve; field in X9ECParameters
45 this.curve = x9c.getCurve(); in X9ECParameters()
46 this.g = new X9ECPoint(curve, (ASN1OctetString)seq.getObjectAt(3)).getPoint(); in X9ECParameters()
57 ECCurve curve, in X9ECParameters() argument
61 this(curve, g, n, ONE, null); in X9ECParameters()
65 ECCurve curve, in X9ECParameters() argument
70 this(curve, g, n, h, null); in X9ECParameters()
74 ECCurve curve, in X9ECParameters() argument
80 this.curve = curve; in X9ECParameters()
86 if (curve instanceof ECCurve.Fp) in X9ECParameters()
[all …]
DX9Curve.java24 private ECCurve curve; field in X9Curve
29 ECCurve curve) in X9Curve() argument
31 this.curve = curve; in X9Curve()
37 ECCurve curve, in X9Curve() argument
40 this.curve = curve; in X9Curve()
55 curve = new ECCurve.Fp(p, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger()); in X9Curve()
92curve = new ECCurve.F2m(m, k1, k2, k3, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger(… in X9Curve()
104 if (curve instanceof ECCurve.Fp) in setFieldIdentifier()
108 else if (curve instanceof ECCurve.F2m) in setFieldIdentifier()
121 return curve; in getCurve()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/
DECDomainParameters.java12 ECCurve curve; field in ECDomainParameters
19 ECCurve curve, in ECDomainParameters() argument
23 this.curve = curve; in ECDomainParameters()
31 ECCurve curve, in ECDomainParameters() argument
36 this.curve = curve; in ECDomainParameters()
44 ECCurve curve, in ECDomainParameters() argument
50 this.curve = curve; in ECDomainParameters()
59 return curve; in getCurve()
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/
DEC5Util.java18 ECCurve curve, in convertCurve() argument
23 if (curve instanceof ECCurve.Fp) in convertCurve()
25 …eturn new EllipticCurve(new ECFieldFp(((ECCurve.Fp)curve).getQ()), curve.getA().toBigInteger(), cu… in convertCurve()
29 ECCurve.F2m curveF2m = (ECCurve.F2m)curve; in convertCurve()
36 …urn new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB… in convertCurve()
42 …urn new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB… in convertCurve()
98 ECCurve curve = convertCurve(ecSpec.getCurve()); in convertSpec() local
101 curve, in convertSpec()
102 convertPoint(curve, ecSpec.getGenerator(), withCompression), in convertSpec()
117 ECCurve curve, in convertPoint() argument
[all …]
DKeyPairGenerator.java145 ECCurve curve = EC5Util.convertCurve(p.getCurve()); in initialize() local
146 ECPoint g = EC5Util.convertPoint(curve, p.getGenerator(), false); in initialize()
148 …param = new ECKeyGenerationParameters(new ECDomainParameters(curve, g, p.getOrder(), BigInteger.va… in initialize()
235 ECCurve curve = EC5Util.convertCurve(p.getCurve()); in initialize() local
236 ECPoint g = EC5Util.convertPoint(curve, p.getGenerator(), false); in initialize()
238 …param = new ECKeyGenerationParameters(new ECDomainParameters(curve, g, p.getOrder(), BigInteger.va… in initialize()
/external/openssh/
Dbufec.c50 buffer_put_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, in buffer_put_ecpoint_ret() argument
61 len = EC_POINT_point2oct(curve, point, POINT_CONVERSION_UNCOMPRESSED, in buffer_put_ecpoint_ret()
70 if (EC_POINT_point2oct(curve, point, POINT_CONVERSION_UNCOMPRESSED, in buffer_put_ecpoint_ret()
88 buffer_put_ecpoint(Buffer *buffer, const EC_GROUP *curve, in buffer_put_ecpoint() argument
91 if (buffer_put_ecpoint_ret(buffer, curve, point) == -1) in buffer_put_ecpoint()
96 buffer_get_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, in buffer_get_ecpoint_ret() argument
125 if (EC_POINT_oct2point(curve, point, buf, len, bnctx) != 1) { in buffer_get_ecpoint_ret()
139 buffer_get_ecpoint(Buffer *buffer, const EC_GROUP *curve, in buffer_get_ecpoint() argument
142 if (buffer_get_ecpoint_ret(buffer, curve, point) == -1) in buffer_get_ecpoint()
/external/webkit/Source/WebCore/platform/graphics/
DPathTraversalState.cpp120 static float curveLength(PathTraversalState& traversalState, CurveType curve) in curveLength() argument
123 curveStack.append(curve); in curveLength()
127 float length = curve.approximateDistance(); in curveLength()
128 if ((length - distanceLine(curve.start, curve.end)) > kPathSegmentLengthTolerance) { in curveLength()
130 curve.split(left, right); in curveLength()
131 curve = left; in curveLength()
137 traversalState.m_previous = curve.start; in curveLength()
138 traversalState.m_current = curve.end; in curveLength()
142 curve = curveStack.last(); in curveLength()
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
DJCEECPublicKey.java90 ECCurve curve = spec.getParams().getCurve(); in JCEECPublicKey() local
91 EllipticCurve ellipticCurve = EC5Util.convertCurve(curve, spec.getParams().getSeed()); in JCEECPublicKey()
244 ECCurve curve; in populateFromPubKeyInfo() local
252 curve = ecP.getCurve(); in populateFromPubKeyInfo()
253 ellipticCurve = EC5Util.convertCurve(curve, ecP.getSeed()); in populateFromPubKeyInfo()
267 curve = ProviderUtil.getEcImplicitlyCa().getCurve(); in populateFromPubKeyInfo()
273 curve = ecP.getCurve(); in populateFromPubKeyInfo()
274 ellipticCurve = EC5Util.convertCurve(curve, ecP.getSeed()); in populateFromPubKeyInfo()
295 int qLength = new X9IntegerConverter().getByteLength(curve); in populateFromPubKeyInfo()
309 X9ECPoint derQ = new X9ECPoint(curve, key); in populateFromPubKeyInfo()
[all …]
DJCEECPrivateKey.java75 ECCurve curve = spec.getParams().getCurve(); in JCEECPrivateKey() local
78 ellipticCurve = EC5Util.convertCurve(curve, spec.getParams().getSeed()); in JCEECPrivateKey()
307 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); in getEncoded() local
310 curve, in getEncoded()
311 EC5Util.convertPoint(curve, ecSpec.getGenerator(), withCompression), in getEncoded()
/external/openssl/crypto/ec/
Dec_asn1.c174 X9_62_CURVE *curve; member
245 ASN1_SIMPLE(ECPARAMETERS, curve, X9_62_CURVE),
436 static int ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve) in ec_asn1_group2curve() argument
445 if (!group || !curve || !curve->a || !curve->b) in ec_asn1_group2curve()
523 if (!M_ASN1_OCTET_STRING_set(curve->a, a_buf, len_1) || in ec_asn1_group2curve()
524 !M_ASN1_OCTET_STRING_set(curve->b, b_buf, len_2)) in ec_asn1_group2curve()
533 if (!curve->seed) in ec_asn1_group2curve()
534 if ((curve->seed = ASN1_BIT_STRING_new()) == NULL) in ec_asn1_group2curve()
539 curve->seed->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); in ec_asn1_group2curve()
540 curve->seed->flags |= ASN1_STRING_FLAG_BITS_LEFT; in ec_asn1_group2curve()
[all …]
Dec_curve.c1935 static EC_GROUP *ec_group_new_from_data(const ec_list_element curve) in ec_group_new_from_data() argument
1953 data = curve.data; in ec_group_new_from_data()
1967 if (curve.meth != 0) in ec_group_new_from_data()
1969 meth = curve.meth(); in ec_group_new_from_data()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/animations/
DIpoHelper.java58 for (Structure curve : curves) { in fromIpoStructure()
59 Pointer pBezTriple = (Pointer) curve.getFieldValue("bezt"); in fromIpoStructure()
61 int type = ((Number) curve.getFieldValue("adrcode")).intValue(); in fromIpoStructure()
90 for (Structure curve : curves) { in fromAction()
91 Pointer pBezTriple = (Pointer) curve.getFieldValue("bezt"); in fromAction()
93 int type = this.getCurveType(curve, blenderContext); in fromAction()
/external/speex/libspeex/
Dscal.c65 float *curve; member
92 st->curve = speex_alloc(frame_size*sizeof(float)); in speex_decorrelate_new()
232 compute_curve(st->psy, buff, st->curve); in speex_decorrelate()
241 gain = coef*sqrt(.1+st->curve[i]); in speex_decorrelate()
245 frame[0] = coef*uni_rand(&st->seed)*sqrt(.1+st->curve[0]); in speex_decorrelate()
246 frame[2*st->frame_size-1] = coef*uni_rand(&st->seed)*sqrt(.1+st->curve[st->frame_size-1]); in speex_decorrelate()
279 speex_free(st->curve); in speex_decorrelate_destroy()
Dvorbis_psy.h93 void compute_curve(VorbisPsy *psy, float *audio, float *curve);
94 void curve_to_lpc(VorbisPsy *psy, float *curve, float *awk1, float *awk2, int ord);
Dnb_celp.h70 float *curve; member
/external/tremolo/Tremolo/
Dfloor0.c145 void vorbis_lsp_to_curve(ogg_int32_t *curve,int n,int ln, in vorbis_lsp_to_curve() argument
189 memset(curve,0,sizeof(*curve)*n); in vorbis_lsp_to_curve()
315 curve[i]= MULT31_SHIFT15(curve[i],amp); in vorbis_lsp_to_curve()
329 curve[i]= MULT31_SHIFT15(curve[i],amp); in vorbis_lsp_to_curve()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/curves/
DCurvesHelper.java241 Curve curve = new Curve(spline, resolution); in loadBezierCurve() local
243 Geometry curveGeometry = new Geometry(null, curve); in loadBezierCurve()
247 … result = this.applyBevelAndTaper(curve, bevelObject, taperObject, smooth, blenderContext); in loadBezierCurve()
388 …protected List<Geometry> applyBevelAndTaper(Curve curve, List<Geometry> bevelObject, Curve taperOb… in applyBevelAndTaper() argument
390 float[] curvePoints = BufferUtils.getFloatArray(curve.getFloatBuffer(Type.Position)); in applyBevelAndTaper()
392 float curveLength = curve.getLength(); in applyBevelAndTaper()

12