/external/bouncycastle/src/main/java/org/bouncycastle/jce/spec/ |
ECNamedCurveSpec.java | 12 * specification signifying that the curve parameters can also be 21 ECCurve curve, 24 if (curve instanceof ECCurve.Fp) 26 return new EllipticCurve(new ECFieldFp(((ECCurve.Fp)curve).getQ()), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed); 30 ECCurve.F2m curveF2m = (ECCurve.F2m)curve; 37 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed); 43 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed) [all...] |
ECParameterSpec.java | 10 * basic domain parameters for an Elliptic Curve public or private key. 15 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 [all...] |
ECNamedCurveParameterSpec.java | 9 * 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.
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/ |
ECDomainParameters.java | 12 ECCurve curve; field in class:ECDomainParameters 19 ECCurve curve, 23 this.curve = curve; 31 ECCurve curve, 36 this.curve = curve; 44 ECCurve curve, 50 this.curve = curve; [all...] |
/libcore/luni/src/main/java/java/security/spec/ |
ECParameterSpec.java | 23 * The parameter specification used with Elliptic Curve Cryptography (ECC). 26 // Elliptic curve for which this is parameter 27 private final EllipticCurve curve; field in class:ECParameterSpec 28 // Distinguished point on the elliptic curve called generator or base point 36 * Creates a new {@code ECParameterSpec} with the specified elliptic curve, 40 * @param curve 41 * the elliptic curve. 51 public ECParameterSpec(EllipticCurve curve, ECPoint generator, 53 this.curve = curve; [all...] |
/libcore/luni/src/test/java/tests/security/spec/ |
ECParameterSpecTest.java | 29 EllipticCurve curve; field in class:ECParameterSpecTest 37 curve = new EllipticCurve(new ECFieldF2m(2), BigInteger.valueOf(1), 40 ecps = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1); 44 curve = null; 54 * case 2: NullPointerException - if curve is null 64 assertEquals("wrong elliptic curve", curve, ecps.getCurve()); 70 // case 2: NullPointerException - if curve is null. 80 new ECParameterSpec(curve, null, BigInteger.valueOf(1), 1); 88 new ECParameterSpec(curve, ecpoint, null, 1) [all...] |
ECPrivateKeySpecTest.java | 41 EllipticCurve curve = new EllipticCurve(new ECFieldF2m(2), BigInteger local 45 ecparams = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
|
ECPublicKeySpecTest.java | 39 EllipticCurve curve = new EllipticCurve(new ECFieldF2m(2), BigInteger local 43 params = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x9/ |
X9Curve.java | 17 * ASN.1 def for Elliptic-Curve Curve structure. See 24 private ECCurve curve; field in class:X9Curve 29 ECCurve curve) 31 this.curve = curve; 37 ECCurve curve, 40 this.curve = curve; 55 curve = new ECCurve.Fp(p, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger()) [all...] |
X9ECParameters.java | 16 * ASN.1 def for Elliptic-Curve ECParameters structure. See 26 private ECCurve curve; field in class:X9ECParameters 45 this.curve = x9c.getCurve(); 46 this.g = new X9ECPoint(curve, (ASN1OctetString)seq.getObjectAt(3)).getPoint(); 57 ECCurve curve, 61 this(curve, g, n, ONE, null); 65 ECCurve curve, 70 this(curve, g, n, h, null); 74 ECCurve curve, 80 this.curve = curve [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/sec/ |
SECNamedCurves.java | 39 ECCurve curve = new ECCurve.Fp(p, a, b); 40 //ECPoint G = curve.decodePoint(Hex.decode("02" 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); 66 //ECPoint G = curve.decodePoint(Hex.decode("03" 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); 92 //ECPoint G = curve.decodePoint(Hex.decode("03 [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
EC5Util.java | 18 ECCurve curve, 23 if (curve instanceof ECCurve.Fp) 25 return new EllipticCurve(new ECFieldFp(((ECCurve.Fp)curve).getQ()), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null); 29 ECCurve.F2m curveF2m = (ECCurve.F2m)curve; 36 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null); 42 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null) 98 ECCurve curve = convertCurve(ecSpec.getCurve()); local [all...] |
KeyPairGenerator.java | 145 ECCurve curve = EC5Util.convertCurve(p.getCurve()); local 146 ECPoint g = EC5Util.convertPoint(curve, p.getGenerator(), false); 148 param = new ECKeyGenerationParameters(new ECDomainParameters(curve, g, p.getOrder(), BigInteger.valueOf(p.getCofactor())), random); 163 // throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); 214 throw new InvalidAlgorithmParameterException("unknown curve OID: " + curveName); 219 throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); 235 ECCurve curve = EC5Util.convertCurve(p.getCurve()); local 236 ECPoint g = EC5Util.convertPoint(curve, p.getGenerator(), false); 238 param = new ECKeyGenerationParameters(new ECDomainParameters(curve, g, p.getOrder(), BigInteger.valueOf(p.getCofactor())), random);
|
/external/openssh/ |
bufec.c | 50 buffer_put_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, 61 len = EC_POINT_point2oct(curve, point, POINT_CONVERSION_UNCOMPRESSED, 70 if (EC_POINT_point2oct(curve, point, POINT_CONVERSION_UNCOMPRESSED, 88 buffer_put_ecpoint(Buffer *buffer, const EC_GROUP *curve, 91 if (buffer_put_ecpoint_ret(buffer, curve, point) == -1) 96 buffer_get_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, 125 if (EC_POINT_oct2point(curve, point, buf, len, bnctx) != 1) { 129 /* EC_POINT_oct2point verifies that the point is on the curve for us */ 139 buffer_get_ecpoint(Buffer *buffer, const EC_GROUP *curve, 142 if (buffer_get_ecpoint_ret(buffer, curve, point) == -1 [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/ |
ECPoint.java | 12 ECCurve curve; field in class:ECPoint 24 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) 26 this.curve = curve; 33 return curve; 148 return this.curve.getInfinity(); 156 * Elliptic curve points over Fp 164 * @param curve the curve to use 168 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y [all...] |
WTauNafMultiplier.java | 29 ECCurve.F2m curve = (ECCurve.F2m) p.getCurve(); local 30 int m = curve.getM(); 31 byte a = curve.getA().toBigInteger().byteValue(); 32 byte mu = curve.getMu(); 33 BigInteger[] s = curve.getSi(); 84 ECCurve.F2m curve = (ECCurve.F2m)p.getCurve(); local 85 byte a = curve.getA().toBigInteger().byteValue();
|
Tnaf.java | 24 * e.g. "Guide to Elliptic Curve Cryptography", Darrel Hankerson, 77 * @param mu The parameter <code>μ</code> of the elliptic curve. 116 * @param mu The parameter <code>μ</code> of the elliptic curve. 160 * @param mu The parameter <code>μ</code> of the elliptic curve. Must 272 * @param s The curve parameter <code>s<sub>0</sub></code> or 275 * @param a The parameter <code>a</code> of the elliptic curve. 309 * @param mu The parameter <code>μ</code> of the elliptic curve. 407 * Returns the parameter <code>μ</code> of the elliptic curve. 408 * @param curve The elliptic curve from which to obtain <code>μ</code> 651 ECCurve.F2m curve = (ECCurve.F2m) p.getCurve(); local 672 ECCurve.F2m curve = (ECCurve.F2m)p.getCurve(); local 692 ECCurve.F2m curve = (ECCurve.F2m)p.getCurve(); local [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
ECParameterSpec_ImplTest.java | 66 * <code>curve</code>, <code>generator</code> or <code>order</code> is <code>null</code><br> 72 EllipticCurve curve = local 79 // Test case 1: curve is null 89 new ECParameterSpec(curve, null, order, 10); 97 new ECParameterSpec(curve, generator, null, 10); 120 EllipticCurve curve = local 129 new ECParameterSpec(curve, generator, BigInteger.valueOf(-5L), 10); 137 new ECParameterSpec(curve, generator, BigInteger.ZERO, 10); 145 new ECParameterSpec(curve, generator, BigInteger.valueOf(5L), -10); 153 new ECParameterSpec(curve, generator, BigInteger.valueOf(5L), 0) 177 EllipticCurve curve = local 200 EllipticCurve curve = local 225 EllipticCurve curve = local 250 EllipticCurve curve = local [all...] |
/gdk/samples/PhotoEditor/jni/ |
colortemp.cpp | 54 int curve[256]; local 56 curve[i] = i * (256 - i); 75 int32_t dst_red = src_red + ((curve[src_red] * icsr) >> 15); 76 int32_t dst_green = src_green + ((curve[src_green] * icsg) >> 17); 77 int32_t dst_blue = src_blue - ((curve[src_blue] * icsb) >> 15);
|
/external/webkit/Source/WebCore/platform/graphics/ |
PathTraversalState.cpp | 120 static float curveLength(PathTraversalState& traversalState, CurveType curve) 123 curveStack.append(curve); 127 float length = curve.approximateDistance(); 128 if ((length - distanceLine(curve.start, curve.end)) > kPathSegmentLengthTolerance) { 130 curve.split(left, right); 131 curve = left; 137 traversalState.m_previous = curve.start; 138 traversalState.m_current = curve.end; 142 curve = curveStack.last() [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/animations/ |
IpoHelper.java | 50 Structure curvebase = (Structure) ipoStructure.getFieldValue("curve");
58 for (Structure curve : curves) {
59 Pointer pBezTriple = (Pointer) curve.getFieldValue("bezt");
61 int type = ((Number) curve.getFieldValue("adrcode")).intValue();
90 for (Structure curve : curves) {
91 Pointer pBezTriple = (Pointer) curve.getFieldValue("bezt");
93 int type = this.getCurveType(curve, blenderContext);
103 * This method returns the type of the ipo curve.
110 * @return the type of the curve
123 // determining the curve type [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JCEECPublicKey.java | 90 ECCurve curve = spec.getParams().getCurve(); local 91 EllipticCurve ellipticCurve = EC5Util.convertCurve(curve, spec.getParams().getSeed()); 226 // ECCurve curve = spec.getCurve(); 227 // EllipticCurve ellipticCurve = EC5Util.convertCurve(curve, spec.getSeed()); 229 // this.q = curve.createPoint(new BigInteger(1, x), new BigInteger(1, y), false); 244 ECCurve curve; local 252 curve = ecP.getCurve(); 253 ellipticCurve = EC5Util.convertCurve(curve, ecP.getSeed()); 267 curve = ProviderUtil.getEcImplicitlyCa().getCurve(); 273 curve = ecP.getCurve() 387 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); local 399 ECCurve curve = this.engineGetQ().getCurve(); local [all...] |
/external/speex/libspeex/ |
vorbis_psy.h | 93 void compute_curve(VorbisPsy *psy, float *audio, float *curve); 94 void curve_to_lpc(VorbisPsy *psy, float *curve, float *awk1, float *awk2, int ord);
|
scal.c | 65 float *curve; member in struct:SpeexDecorrState_ 92 st->curve = speex_alloc(frame_size*sizeof(float)); 232 compute_curve(st->psy, buff, st->curve); 241 gain = coef*sqrt(.1+st->curve[i]); 245 frame[0] = coef*uni_rand(&st->seed)*sqrt(.1+st->curve[0]); 246 frame[2*st->frame_size-1] = coef*uni_rand(&st->seed)*sqrt(.1+st->curve[st->frame_size-1]); 279 speex_free(st->curve);
|
/external/openssl/crypto/ec/ |
ec_asn1.c | 174 X9_62_CURVE *curve; member in struct:ec_parameters_st 245 ASN1_SIMPLE(ECPARAMETERS, curve, X9_62_CURVE), 436 static int ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve) 445 if (!group || !curve || !curve->a || !curve->b) 523 if (!M_ASN1_OCTET_STRING_set(curve->a, a_buf, len_1) || 524 !M_ASN1_OCTET_STRING_set(curve->b, b_buf, len_2)) 533 if (!curve->seed) 534 if ((curve->seed = ASN1_BIT_STRING_new()) == NULL [all...] |