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

12

/openjdk10/jdk/src/java.desktop/share/classes/sun/awt/geom/
H A DCurveLink.java29 Curve curve; field in class:CurveLink
36 public CurveLink(Curve curve, double ystart, double yend, int etag) { argument
37 this.curve = curve;
41 if (ytop < curve.getYTop() || ybot > curve.getYBot()) {
42 throw new InternalError("bad curvelink ["+ytop+"=>"+ybot+"] for "+curve);
47 return absorb(link.curve, link.ytop, link.ybot, link.etag);
50 public boolean absorb(Curve curve, double ystart, double yend, int etag) { argument
51 if (this.curve !
[all...]
H A DEdge.java32 Curve curve; field in class:Edge
43 this.curve = c;
49 return curve;
90 int ret = curve.compareTo(other.curve, yrange);
117 return ("Edge["+curve+
/openjdk10/jdk/src/java.base/share/classes/java/security/spec/
H A DECParameterSpec.java31 * used with elliptic curve cryptography (ECC).
41 private final EllipticCurve curve; field in class:ECParameterSpec
47 * Creates elliptic curve domain parameters based on the
49 * @param curve the elliptic curve which this parameter
54 * @exception NullPointerException if {@code curve},
59 public ECParameterSpec(EllipticCurve curve, ECPoint g, argument
61 if (curve == null) {
62 throw new NullPointerException("curve is null");
76 this.curve
[all...]
H A DEllipticCurve.java33 * an elliptic curve.
70 * Creates an elliptic curve with the specified elliptic field
73 * @param field the finite field that this elliptic curve is over.
74 * @param a the first coefficient of this elliptic curve.
75 * @param b the second coefficient of this elliptic curve.
87 * Creates an elliptic curve with the specified elliptic field
89 * {@code b}, and the {@code seed} used for curve generation.
90 * @param field the finite field that this elliptic curve is over.
91 * @param a the first coefficient of this elliptic curve.
92 * @param b the second coefficient of this elliptic curve
[all...]
/openjdk10/jdk/test/java/security/spec/
H A DEllipticCurveMatch.java27 * @summary Check EllipticCurve.equals() does not compare seed value of curve.
46 private static EllipticCurve addSeedToCurve(EllipticCurve curve) argument
52 return new EllipticCurve (curve.getField(), curve.getA(), curve.getB(),
71 throw new Exception("Original curve doesn't equal itself");
74 throw new Exception ("Original curve doesn't equal seeded curve");
77 throw new Exception ("Seeded curve doesn't equal itself");
80 throw new Exception ("Seeded curve does
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/security/util/
H A DNamedCurve.java51 NamedCurve(String name, String oid, EllipticCurve curve, argument
53 super(curve, g, n, h);
H A DECUtil.java45 public static ECPoint decodePoint(byte[] data, EllipticCurve curve) argument
53 if (n != ((curve.getField().getFieldSize() + 7 ) >> 3)) {
64 public static byte[] encodePoint(ECPoint point, EllipticCurve curve) { argument
66 int n = (curve.getField().getFieldSize() + 7) >> 3;
152 throw new RuntimeException("Not a known named curve: " + spec);
H A DCurveDB.java43 private static final int P = 1; // prime curve
44 private static final int B = 2; // binary curve
45 private static final int PD = 5; // prime curve, mark as default
46 private static final int BD = 6; // binary curve, mark as default
85 // If params does not represent a known named curve, return null.
93 // This can go away once we decide how to expose curve names in the
120 // everything matches our named curve, return it
144 EllipticCurve curve = new EllipticCurve(field, bi(a), bi(b));
147 NamedCurve params = new NamedCurve(name, soid, curve, g, bi(n), h);
162 // the curve i
[all...]
/openjdk10/jdk/src/java.desktop/share/classes/sun/java2d/pisces/
H A DDasher.java59 // temporary storage for the current curve
142 // fullCurve is true iff the curve in pts has not been split.
223 // that contains the curve we want to dash in the first type elements
233 int curCurveoff = 0; // initially the current curve is at curCurvepts[0...type]
262 private static boolean pointCurve(float[] curve, int type) { argument
264 if (curve[i] != curve[i-2]) {
272 // t values where the left side of the curve has a specified length.
273 // It does this by subdividing the input curve until a certain error
278 // through the tree when we need the next subdivided curve)
[all...]
/openjdk10/jdk/src/java.xml.crypto/share/classes/org/jcp/xml/dsig/internal/dom/
H A DDOMKeyValue.java329 /* Supported curve, secp256r1 */
342 /* Supported curve secp384r1 */
355 /* Supported curve secp521r1 */
373 EllipticCurve curve = new EllipticCurve(field, bigInt(a),
376 return new Curve(name, oid, curve, g, bigInt(n), h);
391 private static ECPoint decodePoint(byte[] data, EllipticCurve curve) argument
400 if (n != ((curve.getField().getFieldSize() + 7) >> 3)) {
410 private static byte[] encodePoint(ECPoint point, EllipticCurve curve) { argument
412 int n = (curve.getField().getFieldSize() + 7) >> 3;
440 // of the curve
454 matchCurve(ECParameterSpec params, Curve curve) argument
562 Curve(String name, String oid, EllipticCurve curve, ECPoint g, BigInteger n, int h) argument
[all...]
/openjdk10/jdk/src/java.desktop/share/classes/sun/java2d/marlin/
H A DDDasher.java69 // temporary storage for the current curve
359 // that contains the curve we want to dash in the first type elements
366 // initially the current curve is at curCurvepts[0...type]
399 private static boolean pointCurve(double[] curve, int type) { argument
401 if (curve[i] != curve[i-2]) {
409 // t values where the left side of the curve has a specified length.
410 // It does this by subdividing the input curve until a certain error
415 // through the tree when we need the next subdivided curve). This saves
424 // (i.e. the original curve) i
[all...]
H A DDasher.java70 // temporary storage for the current curve
360 // that contains the curve we want to dash in the first type elements
367 // initially the current curve is at curCurvepts[0...type]
400 private static boolean pointCurve(float[] curve, int type) { argument
402 if (curve[i] != curve[i-2]) {
410 // t values where the left side of the curve has a specified length.
411 // It does this by subdividing the input curve until a certain error
416 // through the tree when we need the next subdivided curve). This saves
425 // (i.e. the original curve) i
[all...]
H A DDRendererContext.java59 // shared curve (dirty) (Renderer / Stroker)
60 final DCurve curve = new DCurve(); field in class:DRendererContext
H A DRendererContext.java59 // shared curve (dirty) (Renderer / Stroker)
60 final Curve curve = new Curve(); field in class:RendererContext
H A DDRenderer.java76 // curve break into lines
228 // x0, y0 and x3,y3 are the endpoints of the curve. We could compute these
505 // dirty curve
506 private final DCurve curve; field in class:DRenderer
528 this.curve = rdrCtx.curve;
697 curve.set(x0, y0, tosubpixx(x1), tosubpixy(y1),
699 curveBreakIntoLinesAndAdd(x0, y0, curve, xe, ye);
708 curve.set(x0, y0, tosubpixx(x1), tosubpixy(y1), xe, ye);
709 quadBreakIntoLinesAndAdd(x0, y0, curve, x
[all...]
H A DRenderer.java77 // curve break into lines
229 // x0, y0 and x3,y3 are the endpoints of the curve. We could compute these
509 // dirty curve
510 private final Curve curve; field in class:Renderer
532 this.curve = rdrCtx.curve;
701 curve.set(x0, y0, tosubpixx(x1), tosubpixy(y1),
703 curveBreakIntoLinesAndAdd(x0, y0, curve, xe, ye);
712 curve.set(x0, y0, tosubpixx(x1), tosubpixy(y1), xe, ye);
713 quadBreakIntoLinesAndAdd(x0, y0, curve, x
[all...]
H A DDStroker.java36 private static final int DRAWING_OP_TO = 1; // ie. curve, line, or quad
108 // This is where the curve to be processed is put. We give it
118 // dirty curve
119 final DCurve curve; field in class:DStroker
129 this.curve = rdrCtx.curve;
252 // need 1 curve to approximate the circle section that joins omx,omy
305 // just return to avoid generating a flat curve:
311 // define the bezier curve we're computing.
679 // a curve wit
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/security/ssl/
H A DJsseJce.java366 static ECPoint decodePoint(byte[] encoded, EllipticCurve curve) argument
368 return ECUtil.decodePoint(encoded, curve);
371 static byte[] encodePoint(ECPoint point, EllipticCurve curve) { argument
372 return ECUtil.encodePoint(point, curve);
/openjdk10/jdk/test/sun/security/pkcs11/
H A DPKCS11Test.java530 String curve;
545 // Each set of curve names is enclosed with brackets.
564 curve = kcProp.substring(begin, end);
565 ECParameterSpec e = getECParameterSpec(p, curve);
566 System.out.print("\t "+ curve + ": ");
600 // Check support for a curve with a provided Vector of EC support
602 ECParameterSpec curve) {
604 if (ec.equals(curve)) {
601 checkSupport(List<ECParameterSpec> supportedEC, ECParameterSpec curve) argument
/openjdk10/jdk/src/jdk.crypto.ec/share/native/libsunec/impl/
H A Dec.c86 * the curve whose parameters are encoded in params with base point G.
176 /* Set up mp_ints containing the curve coefficients */
182 SECITEM_TO_MPINT( params->curve.a, &a );
183 SECITEM_TO_MPINT( params->curve.b, &b );
245 * point multiplication of that value with the curve's base point.
300 CHECK_SEC_OK(SECITEM_CopyItem(arena, &key->ecParams.curve.a,
301 &ecParams->curve.a, kmflag));
302 CHECK_SEC_OK(SECITEM_CopyItem(arena, &key->ecParams.curve.b,
303 &ecParams->curve.b, kmflag));
304 CHECK_SEC_OK(SECITEM_CopyItem(arena, &key->ecParams.curve
[all...]
H A Decdecode.c55 #include "ecl-curve.h"
134 CHECK_OK(hexString2SECItem(NULL, &params->curve.a,
136 CHECK_OK(hexString2SECItem(NULL, &params->curve.b,
334 * (the NIST K-163 curve)
348 * (the NIST B-163 curve)
368 * (the NIST K-233 curve)
376 * (the NIST B-233 curve)
390 * (the NIST K-283 curve)
398 * (the NIST B-283 curve)
406 * (the NIST K-409 curve)
[all...]
H A Decc_impl.h200 ECCurve curve; member in struct:ECParamsStr
212 SECItem publicValue; /* elliptic curve point encoded as
/openjdk10/jdk/src/demo/share/java2d/J2DBench/src/j2dbench/tests/
H A DRenderTests.java853 CubicCurve2D curve = new CubicCurve2D.Float(); field in class:RenderTests.FillCubics.Context
868 CubicCurve2D curve = cctx.curve;
874 curve.setCurve(x, y+size/2.0,
882 g2d.fill(curve);
907 CubicCurve2D curve = new CubicCurve2D.Float(); field in class:RenderTests.DrawCubics.Context
922 CubicCurve2D curve = cctx.curve;
928 curve.setCurve(x, y+size/2.0,
936 g2d.draw(curve);
[all...]
/openjdk10/jdk/src/jdk.crypto.ec/share/native/libsunec/
H A DECC_JNI.cpp64 SECITEM_FreeItem(&ecparams->curve.a, B_FALSE);
65 SECITEM_FreeItem(&ecparams->curve.b, B_FALSE);
66 SECITEM_FreeItem(&ecparams->curve.seed, B_FALSE);
104 // The curve is supported if we can get parameters for it
114 /* bad curve OID */
118 // If we make it to here, then the curve is supported
163 /* bad curve OID */
278 /* bad curve OID */
391 /* bad curve OID */
474 /* bad curve OI
[all...]
/openjdk10/jdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/
H A DP11ECKeyFactory.java74 // Check that spec is a known supported curve and convert it to our
88 static ECPoint decodePoint(byte[] encoded, EllipticCurve curve) throws IOException { argument
89 return ECUtil.decodePoint(encoded, curve);

Completed in 247 milliseconds

12