Lines Matching refs:curve
226 const struct lws_ec_curves *curve;
231 curve = lws_genec_curve(curve_table,
233 if (!curve)
237 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) ||
238 el[LWS_GENCRYPTO_EC_KEYEL_X].len != curve->key_bytes ||
239 el[LWS_GENCRYPTO_EC_KEYEL_Y].len != curve->key_bytes)
248 if (lws_genec_eckey_import(curve->tls_lib_nid, pkey, el)) {
347 const struct lws_ec_curves *curve;
354 curve = lws_genec_curve(ctx->curve_table, curve_name);
355 if (!curve) {
356 lwsl_err("%s: curve '%s' not supported\n",
362 ec = EC_KEY_new_by_curve_name(curve->tls_lib_nid);
364 lwsl_err("%s: unknown nid %d\n", __func__, curve->tls_lib_nid);
426 el[n].len = curve->key_bytes;
427 el[n].buf = lws_malloc(curve->key_bytes, "ec");