Lines Matching refs:curve
268 CBS params, field_id, field_type, curve, base;
280 !CBS_get_asn1(¶ms, &curve, CBS_ASN1_SEQUENCE) ||
281 !CBS_get_asn1(&curve, out_a, CBS_ASN1_OCTETSTRING) ||
282 !CBS_get_asn1(&curve, out_b, CBS_ASN1_OCTETSTRING) ||
283 // |curve| has an optional BIT STRING seed which we ignore.
292 // in |curve|, a group already has arbitrarily many encodings. Parse enough to
293 // uniquely determine the curve.
335 // Look for a matching curve.
338 const struct built_in_curve *curve = &curves->curves[i];
339 if (CBS_len(&named_curve) == curve->oid_len &&
340 OPENSSL_memcmp(CBS_data(&named_curve), curve->oid, curve->oid_len) ==
342 return EC_GROUP_new_by_curve_name(curve->nid);
359 const struct built_in_curve *curve = &curves->curves[i];
360 if (curve->nid == nid) {
363 CBB_add_bytes(&child, curve->oid, curve->oid_len) &&
387 // Look for a matching prime curve.
390 const struct built_in_curve *curve = &curves->curves[i];
391 const unsigned param_len = curve->param_len;
392 // |curve->params| is ordered p, a, b, x, y, order, each component
397 if (integers_equal(&prime, curve->params, param_len) &&
398 integers_equal(&a, curve->params + param_len, param_len) &&
399 integers_equal(&b, curve->params + param_len * 2, param_len) &&
400 integers_equal(&base_x, curve->params + param_len * 3, param_len) &&
401 integers_equal(&base_y, curve->params + param_len * 4, param_len) &&
402 integers_equal(&order, curve->params + param_len * 5, param_len)) {
403 return EC_GROUP_new_by_curve_name(curve->nid);