Lines Matching refs:curve
58 const struct lws_ec_curves *curve;
71 curve = lws_genec_curve(ctx->curve_table,
73 if (!curve)
82 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) ||
83 el[LWS_GENCRYPTO_EC_KEYEL_X].len != curve->key_bytes ||
84 el[LWS_GENCRYPTO_EC_KEYEL_Y].len != curve->key_bytes)
89 (mbedtls_ecp_group_id)curve->tls_lib_nid))
121 /* verify the key is consistent with the claimed curve */
133 /* verify the key is consistent with the claimed curve */
241 const struct lws_ec_curves *curve;
250 curve = lws_genec_curve(ctx->curve_table, curve_name);
251 if (!curve) {
252 lwsl_err("%s: curve '%s' not supported\n",
259 n = mbedtls_ecdsa_genkey(&ecdsa, (mbedtls_ecp_group_id)curve->tls_lib_nid,
294 el[n].len = curve->key_bytes;
295 el[n].buf = lws_malloc(curve->key_bytes, "ec");
300 curve->key_bytes))
324 const struct lws_ec_curves *curve;
332 curve = lws_genec_curve(ctx->curve_table, curve_name);
333 if (!curve) {
334 lwsl_err("%s: curve '%s' not supported\n",
341 n = mbedtls_ecdsa_genkey(ctx->u.ctx_ecdsa, (mbedtls_ecp_group_id)curve->tls_lib_nid,
368 el[n].len = curve->key_bytes;
369 el[n].buf = lws_malloc(curve->key_bytes, "ec");