Home
last modified time | relevance | path

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

12345678910>>...17

/external/adhd/cras/src/tests/
Dvolume_curve_unittest.cc15 struct cras_volume_curve* curve; in TEST() local
16 curve = cras_volume_curve_create_default(); in TEST()
17 ASSERT_NE(static_cast<struct cras_volume_curve*>(NULL), curve); in TEST()
18 EXPECT_EQ(0 - 50 * 50, curve->get_dBFS(curve, 50)); in TEST()
19 EXPECT_EQ(0, curve->get_dBFS(curve, 100)); in TEST()
20 EXPECT_EQ(0 - 100 * 50, curve->get_dBFS(curve, 0)); in TEST()
21 EXPECT_EQ(0 - 25 * 50, curve->get_dBFS(curve, 75)); in TEST()
22 cras_volume_curve_destroy(curve); in TEST()
26 struct cras_volume_curve* curve; in TEST() local
27 curve = cras_volume_curve_create_simple_step(-600, 75); in TEST()
[all …]
/external/adhd/cras/src/server/
Dcras_volume_curve.c15 struct cras_volume_curve curve; member
20 static long get_dBFS_step(const struct cras_volume_curve *curve, size_t volume) in get_dBFS_step() argument
22 const struct stepped_curve *c = (const struct stepped_curve *)curve; in get_dBFS_step()
28 struct cras_volume_curve curve; member
32 static long get_dBFS_explicit(const struct cras_volume_curve *curve, in get_dBFS_explicit() argument
35 const struct explicit_curve *c = (const struct explicit_curve *)curve; in get_dBFS_explicit()
55 struct stepped_curve *curve; in cras_volume_curve_create_simple_step() local
56 curve = (struct stepped_curve *)calloc(1, sizeof(*curve)); in cras_volume_curve_create_simple_step()
57 if (curve == NULL) in cras_volume_curve_create_simple_step()
59 curve->curve.get_dBFS = get_dBFS_step; in cras_volume_curve_create_simple_step()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
DX962NamedCurves.java21 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
23 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
28 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
30 return curve; in configureCurve()
45 ECCurve curve = configureCurve(new ECCurve.Fp(
51 X9ECPoint G = configureBasepoint(curve,
54 …return new X9ECParameters(curve, G, n, h, Hex.decodeStrict("3045AE6FC8422f64ED579528D38120EAE12196…
65 ECCurve curve = configureCurve(new ECCurve.Fp(
71 X9ECPoint G = configureBasepoint(curve,
74 …return new X9ECParameters(curve, G, n, h, Hex.decodeStrict("31a92ee2029fd10d901b113e990710f0d21ac6…
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x9/
DX962NamedCurves.java21 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
23 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
28 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
30 return curve; in configureCurve()
45 ECCurve curve = configureCurve(new ECCurve.Fp(
51 X9ECPoint G = configureBasepoint(curve,
54 …return new X9ECParameters(curve, G, n, h, Hex.decodeStrict("3045AE6FC8422f64ED579528D38120EAE12196…
65 ECCurve curve = configureCurve(new ECCurve.Fp(
71 X9ECPoint G = configureBasepoint(curve,
74 …return new X9ECParameters(curve, G, n, h, Hex.decodeStrict("31a92ee2029fd10d901b113e990710f0d21ac6…
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX962NamedCurves.java19 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
21 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
26 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
28 return curve; in configureCurve()
43 ECCurve curve = configureCurve(new ECCurve.Fp(
49 X9ECPoint G = configureBasepoint(curve,
52 …return new X9ECParameters(curve, G, n, h, Hex.decodeStrict("3045AE6FC8422f64ED579528D38120EAE12196…
63 ECCurve curve = configureCurve(new ECCurve.Fp(
69 X9ECPoint G = configureBasepoint(curve,
72 …return new X9ECParameters(curve, G, n, h, Hex.decodeStrict("31a92ee2029fd10d901b113e990710f0d21ac6…
[all …]
DX9ECParameters.java29 private ECCurve curve; field in X9ECParameters
55 this.curve = x9c.getCurve(); in X9ECParameters()
64 this.g = new X9ECPoint(curve, (ASN1OctetString)p); in X9ECParameters()
86 ECCurve curve, in X9ECParameters() argument
90 this(curve, g, n, null, null); in X9ECParameters()
94 ECCurve curve, in X9ECParameters() argument
99 this(curve, g, n, h, null); in X9ECParameters()
103 ECCurve curve, in X9ECParameters() argument
109 this.curve = curve; in X9ECParameters()
115 if (ECAlgorithms.isFpCurve(curve)) in X9ECParameters()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ec/
DCustomNamedCurves.java62 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
64 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
69 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
71 return curve; in configureCurve()
203 ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv);
204 X9ECPoint G = configureBasepoint(curve,
206 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
218 ECCurve curve = configureCurve(new SecP192R1Curve());
219 X9ECPoint G = configureBasepoint(curve,
221 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
[all …]
/external/webrtc/modules/audio_coding/audio_network_adaptor/util/
Dthreshold_curve_unittest.cc43 void CheckRelativePosition(const ThresholdCurve& curve, in CheckRelativePosition() argument
48 EXPECT_EQ(pos == kBelow, curve.IsBelowCurve(point)); in CheckRelativePosition()
49 EXPECT_EQ(pos == kAbove, curve.IsAboveCurve(point)); in CheckRelativePosition()
84 const ThresholdCurve curve(p1, p2); in TEST() local
89 CheckRelativePosition(curve, {x, p1.y + 1}, kBelow); // A in TEST()
90 CheckRelativePosition(curve, {x, p1.y + 0}, kBelow); // B in TEST()
91 CheckRelativePosition(curve, {x, (p1.y + p2.y) / 2}, kBelow); // C in TEST()
92 CheckRelativePosition(curve, {x, p2.y + 0}, kBelow); // D in TEST()
93 CheckRelativePosition(curve, {x, p2.y - 1}, kBelow); // E in TEST()
99 CheckRelativePosition(curve, {x, p1.y + 1}, kOn); // F in TEST()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/ec/
DCustomNamedCurves.java66 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
68 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
73 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
75 return curve; in configureCurve()
207 ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv);
208 X9ECPoint G = configureBasepoint(curve,
210 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
222 ECCurve curve = configureCurve(new SecP192R1Curve());
223 X9ECPoint G = configureBasepoint(curve,
225 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/ec/
DCustomNamedCurves.java66 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
68 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
73 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
75 return curve; in configureCurve()
207 ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv);
208 X9ECPoint G = configureBasepoint(curve,
210 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
222 ECCurve curve = configureCurve(new SecP192R1Curve());
223 X9ECPoint G = configureBasepoint(curve,
225 return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DSECNamedCurves.java22 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
24 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
29 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
31 return curve; in configureCurve()
59 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
61 X9ECPoint G = configureBasepoint(curve,
64 return new X9ECParameters(curve, G, n, h, S);
83 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
85 X9ECPoint G = configureBasepoint(curve,
88 return new X9ECParameters(curve, G, n, h, S);
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/sec/
DSECNamedCurves.java26 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
28 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
33 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
35 return curve; in configureCurve()
63 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
65 X9ECPoint G = configureBasepoint(curve,
68 return new X9ECParameters(curve, G, n, h, S);
87 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
89 X9ECPoint G = configureBasepoint(curve,
92 return new X9ECParameters(curve, G, n, h, S);
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/sec/
DSECNamedCurves.java26 private static X9ECPoint configureBasepoint(ECCurve curve, String encoding) in configureBasepoint() argument
28 X9ECPoint G = new X9ECPoint(curve, Hex.decodeStrict(encoding)); in configureBasepoint()
33 private static ECCurve configureCurve(ECCurve curve) in configureCurve() argument
35 return curve; in configureCurve()
63 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
65 X9ECPoint G = configureBasepoint(curve,
68 return new X9ECParameters(curve, G, n, h, S);
87 ECCurve curve = configureCurve(new ECCurve.Fp(p, a, b, n, h));
89 X9ECPoint G = configureBasepoint(curve,
92 return new X9ECParameters(curve, G, n, h, S);
[all …]
/external/boringssl/src/crypto/fipsmodule/ec/
Dmake_tables.go38 curve := elliptic.P256()
41 row := makeMultiples(curve, 64, shift)
79 if err := writeTables(f, curve, tables, true, 4, writeBNMont); err != nil {
90 curve := elliptic.P256()
92 makeComb(curve, 64, 4, 0),
93 makeComb(curve, 64, 4, 32),
159 if err := writeTables(f, curve, tables, true, 4, writeU64Mont); err != nil {
165 if err := writeTables(f, curve, tables, true, 4, writeU32Mont); err != nil {
177 func makeMultiples(curve elliptic.Curve, n, shift int) [][2]*big.Int {
179 x, y := curve.Params().Gx, curve.Params().Gy
[all …]
/external/skia/src/pathops/
DSkOpEdgeBuilder.cpp33 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) { in can_add_curve() argument
38 curve[index] = force_small_to_zero(curve[index]); in can_add_curve()
40 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve()
89 SkPoint curve[4]; in preFetch() local
96 closeContour(curve[0], curveStart); in preFetch()
99 curve[0] = force_small_to_zero(pts[0]); in preFetch()
100 *fPathPts.append() = curve[0]; in preFetch()
101 curveStart = curve[0]; in preFetch()
105 curve[1] = force_small_to_zero(pts[1]); in preFetch()
106 if (SkDPoint::ApproximatelyEqual(curve[0], curve[1])) { in preFetch()
[all …]
DSkPathOpsRect.h52 void setBounds(const SkDConic& curve) { in setBounds()
53 setBounds(curve, curve, 0, 1); in setBounds()
56 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd);
58 void setBounds(const SkDCubic& curve) { in setBounds()
59 setBounds(curve, curve, 0, 1); in setBounds()
62 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, double tEnd);
64 void setBounds(const SkDQuad& curve) { in setBounds()
65 setBounds(curve, curve, 0, 1); in setBounds()
68 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, double tEnd);
70 void setBounds(const SkTCurve& curve);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECPoint.java16 protected static ECFieldElement[] getInitialZCoords(ECCurve curve) in getInitialZCoords() argument
19 int coord = null == curve ? ECCurve.COORD_AFFINE : curve.getCoordinateSystem(); in getInitialZCoords()
30 ECFieldElement one = curve.fromBigInteger(ECConstants.ONE); in getInitialZCoords()
41 return new ECFieldElement[]{ one, curve.getA() }; in getInitialZCoords()
47 protected ECCurve curve; field in ECPoint
55 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() argument
57 this(curve, x, y, getInitialZCoords(curve)); in ECPoint()
60 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() argument
62 this.curve = curve; in ECPoint()
72 if (ECConstants.ONE.equals(curve.getCofactor())) in satisfiesOrder()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/
DECPoint.java18 protected static ECFieldElement[] getInitialZCoords(ECCurve curve) in getInitialZCoords() argument
21 int coord = null == curve ? ECCurve.COORD_AFFINE : curve.getCoordinateSystem(); in getInitialZCoords()
32 ECFieldElement one = curve.fromBigInteger(ECConstants.ONE); in getInitialZCoords()
43 return new ECFieldElement[]{ one, curve.getA() }; in getInitialZCoords()
49 protected ECCurve curve; field in ECPoint
57 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() argument
59 this(curve, x, y, getInitialZCoords(curve)); in ECPoint()
62 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() argument
64 this.curve = curve; in ECPoint()
74 if (ECConstants.ONE.equals(curve.getCofactor())) in satisfiesOrder()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DECPoint.java18 protected static ECFieldElement[] getInitialZCoords(ECCurve curve) in getInitialZCoords() argument
21 int coord = null == curve ? ECCurve.COORD_AFFINE : curve.getCoordinateSystem(); in getInitialZCoords()
32 ECFieldElement one = curve.fromBigInteger(ECConstants.ONE); in getInitialZCoords()
43 return new ECFieldElement[]{ one, curve.getA() }; in getInitialZCoords()
49 protected ECCurve curve; field in ECPoint
57 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) in ECPoint() argument
59 this(curve, x, y, getInitialZCoords(curve)); in ECPoint()
62 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) in ECPoint() argument
64 this.curve = curve; in ECPoint()
74 if (ECConstants.ONE.equals(curve.getCofactor())) in satisfiesOrder()
[all …]
/external/skqp/src/pathops/
DSkPathOpsRect.h52 void setBounds(const SkDConic& curve) { in setBounds()
53 setBounds(curve, curve, 0, 1); in setBounds()
56 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd);
58 void setBounds(const SkDCubic& curve) { in setBounds()
59 setBounds(curve, curve, 0, 1); in setBounds()
62 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, double tEnd);
64 void setBounds(const SkDQuad& curve) { in setBounds()
65 setBounds(curve, curve, 0, 1); in setBounds()
68 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, double tEnd);
70 void setBounds(const SkTCurve& curve);
/external/wpa_supplicant_8/src/common/
Ddpp_pkex.c56 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_req() local
64 Qi = dpp_pkex_derive_Qi(curve, pkex->own_mac, pkex->code, in dpp_pkex_build_exchange_req()
80 pkex->x = dpp_gen_keypair(curve); in dpp_pkex_build_exchange_req()
83 pkex->x = dpp_gen_keypair(curve); in dpp_pkex_build_exchange_req()
109 attr_len += 4 + 2 * curve->prime_len; in dpp_pkex_build_exchange_req()
124 wpabuf_put_le16(msg, curve->ike_group); in dpp_pkex_build_exchange_req()
146 wpabuf_put_le16(msg, 2 * curve->prime_len); in dpp_pkex_build_exchange_req()
151 if (dpp_test_gen_invalid_key(msg, curve) < 0) in dpp_pkex_build_exchange_req()
157 if (dpp_bn2bin_pad(Mx, wpabuf_put(msg, curve->prime_len), in dpp_pkex_build_exchange_req()
158 curve->prime_len) < 0 || in dpp_pkex_build_exchange_req()
[all …]
/external/rust/crates/ring/src/ec/
Dkeys.rs25 curve: &'static Curve, field
31 curve: &'static Curve, in generate()
37 curve, in generate()
40 (curve.generate_private_key)(rng, &mut r.bytes[..curve.elem_scalar_seed_len])?; in generate()
45 curve: &'static Curve, in from_bytes()
50 if curve.elem_scalar_seed_len != bytes.len() { in from_bytes()
53 (curve.check_private_key_bytes)(bytes)?; in from_bytes()
56 curve, in from_bytes()
59 r.bytes[..curve.elem_scalar_seed_len].copy_from_slice(bytes); in from_bytes()
64 &self.bytes[..self.curve.elem_scalar_seed_len] in bytes_less_safe()
[all …]
/external/python/cryptography/vectors/cryptography_vectors/asymmetric/ECDSA/FIPS_186-2/
DPKV.rsp11 Result = F (2 - Point not on curve)
19 Result = F (2 - Point not on curve)
27 Result = F (2 - Point not on curve)
55 Result = F (2 - Point not on curve)
61 Result = F (2 - Point not on curve)
65 Result = F (2 - Point not on curve)
69 Result = F (2 - Point not on curve)
85 Result = F (2 - Point not on curve)
115 Result = F (2 - Point not on curve)
119 Result = F (2 - Point not on curve)
[all …]
/external/python/cryptography/tests/hazmat/primitives/
Dfixtures_ec.py17 curve=ec.SECT571R1(),
37 curve=ec.SECT409R1(),
55 curve=ec.SECT283R1(),
73 curve=ec.SECT233R1(),
90 curve=ec.SECT163R2(),
107 curve=ec.SECT571K1(),
127 curve=ec.SECT409K1(),
145 curve=ec.SECT283K1(),
163 curve=ec.SECT233K1(),
180 curve=ec.SECT163K1(),
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DECDomainParameters.java16 private final ECCurve curve; field in ECDomainParameters
30 ECCurve curve, in ECDomainParameters() argument
34 this(curve, G, n, ONE, null); in ECDomainParameters()
38 ECCurve curve, in ECDomainParameters() argument
43 this(curve, G, n, h, null); in ECDomainParameters()
47 ECCurve curve, in ECDomainParameters() argument
53 if (curve == null) in ECDomainParameters()
63 this.curve = curve; in ECDomainParameters()
64 this.G = validatePublicPoint(curve, G); in ECDomainParameters()
72 return curve; in getCurve()
[all …]

12345678910>>...17