Lines Matching defs:group
358 static void dpp_debug_print_point(const char *title, const EC_GROUP *group,
372 EC_POINT_get_affine_coordinates_GFp(group, point, x, y, ctx) != 1)
515 static EVP_PKEY * dpp_set_pubkey_point_group(const EC_GROUP *group,
531 point = EC_POINT_new(group);
539 if (!EC_POINT_set_affine_coordinates_GFp(group, point, x, y, ctx)) {
546 if (!EC_POINT_is_on_curve(group, point, ctx) ||
547 EC_POINT_is_at_infinity(group, point)) {
551 dpp_debug_print_point("DPP: dpp_set_pubkey_point_group", group, point);
555 EC_KEY_set_group(eckey, group) != 1 ||
588 const EC_GROUP *group;
601 group = EC_KEY_get0_group(eckey);
602 if (group)
603 pkey = dpp_set_pubkey_point_group(group, buf, buf + len / 2,
606 wpa_printf(MSG_ERROR, "DPP: Could not get EC group");
654 * cases. For example, group 19 has shown cases where secret_len
1177 const EC_GROUP *group;
1201 group = EC_KEY_get0_group(eckey);
1203 if (group && point)
1204 dpp_debug_print_point(title, group, point);
1305 const EC_GROUP *group;
1319 group = EC_KEY_get0_group(eckey);
1320 if (!group) {
1325 nid = EC_GROUP_get_curve_name(group);
1368 const EC_GROUP *group;
1379 group = EC_KEY_get0_group(eckey);
1381 if (!group || !point)
1383 dpp_debug_print_point("DPP: bootstrap public key", group, point);
1384 nid = EC_GROUP_get_curve_name(group);
1392 len = EC_POINT_point2oct(group, point, POINT_CONVERSION_COMPRESSED,
1400 len = EC_POINT_point2oct(group, point, POINT_CONVERSION_COMPRESSED,
2696 const EC_GROUP *group;
2717 group = EC_KEY_get0_group(BI);
2718 if (!group)
2729 if (EC_GROUP_get_order(group, q, bnctx) != 1 ||
2732 l = EC_POINT_new(group);
2734 EC_POINT_mul(group, l, NULL, BI_point, sum, bnctx) != 1 ||
2735 EC_POINT_get_affine_coordinates_GFp(group, l, lx, NULL,
2763 const EC_GROUP *group;
2788 group = EC_KEY_get0_group(bI);
2790 if (!group || !bI_bn)
2792 sum = EC_POINT_new(group);
2793 l = EC_POINT_new(group);
2795 EC_POINT_add(group, sum, BR_point, PR_point, bnctx) != 1 ||
2796 EC_POINT_mul(group, l, NULL, sum, bI_bn, bnctx) != 1 ||
2797 EC_POINT_get_affine_coordinates_GFp(group, l, lx, NULL,
5233 EC_GROUP *group;
5287 group = EC_GROUP_new_by_curve_name(OBJ_txt2nid(curve->name));
5288 if (!group) {
5289 wpa_printf(MSG_DEBUG, "DPP: Could not prepare group for JWK");
5293 pkey = dpp_set_pubkey_point_group(group, wpabuf_head(x), wpabuf_head(y),
5295 EC_GROUP_free(group);
5421 "DPP: connector group: groupId='%s' netRole='%s'",
5572 const EC_GROUP *group;
5578 group = EC_KEY_get0_group(eckey);
5579 if (!group)
5581 nid = EC_GROUP_get_curve_name(group);
5585 wpa_printf(MSG_DEBUG, "DPP: C-sign-key group: %s", curve->jwk_crv);
6362 "DPP: peer connector group: groupId='%s' netRole='%s'",
6367 "DPP: Compatible group/netRole in own connector");
6535 "DPP: Peer connector does not include compatible group netrole with own connector");
6617 EC_GROUP *group;
6651 group = EC_GROUP_new_by_curve_name(OBJ_txt2nid(curve->name));
6652 if (!group)
6654 res = dpp_set_pubkey_point_group(group, x, y, len);
6655 EC_GROUP_free(group);
6674 const EC_GROUP *group = NULL;
6708 group = EC_KEY_get0_group(Pi_ec);
6709 if (!group)
6711 group2 = EC_GROUP_dup(group);
6723 if (EC_POINT_is_at_infinity(group, Qi)) {
6727 dpp_debug_print_point("DPP: Qi", group, Qi);
6758 const EC_GROUP *group = NULL;
6792 group = EC_KEY_get0_group(Pr_ec);
6793 if (!group)
6795 group2 = EC_GROUP_dup(group);
6807 if (EC_POINT_is_at_infinity(group, Qr)) {
6811 dpp_debug_print_point("DPP: Qr", group, Qr);
6835 EC_GROUP *group;
6838 group = EC_GROUP_new_by_curve_name(OBJ_txt2nid(curve->name));
6839 if (!group)
6843 point = EC_POINT_new(group);
6858 if (EC_POINT_set_affine_coordinates_GFp(group, point, x, y,
6870 if (!EC_POINT_is_on_curve(group, point, ctx))
6888 EC_GROUP_free(group);
6900 EC_GROUP *group = NULL;
6915 pkex->identifier, bnctx, &group);
6945 dpp_debug_print_point("DPP: X", group, X_point);
6946 M = EC_POINT_new(group);
6950 EC_POINT_add(group, M, X_point, Qi, bnctx) != 1 ||
6951 EC_POINT_get_affine_coordinates_GFp(group, M, Mx, My, bnctx) != 1)
6953 dpp_debug_print_point("DPP: M", group, M);
6955 /* Initiator -> Responder: group, [identifier,] M */
7022 EC_GROUP_free(group);
7267 EC_GROUP *group = NULL;
7340 &group);
7345 X = EC_POINT_new(group);
7346 M = EC_POINT_new(group);
7350 EC_POINT_set_affine_coordinates_GFp(group, M, Mx, My, bnctx) != 1 ||
7351 EC_POINT_is_at_infinity(group, M) ||
7352 !EC_POINT_is_on_curve(group, M, bnctx) ||
7353 EC_POINT_invert(group, Qi, bnctx) != 1 ||
7354 EC_POINT_add(group, X, M, Qi, bnctx) != 1 ||
7355 EC_POINT_is_at_infinity(group, X) ||
7356 !EC_POINT_is_on_curve(group, X, bnctx)) {
7362 dpp_debug_print_point("DPP: M", group, M);
7363 dpp_debug_print_point("DPP: X'", group, X);
7386 EC_KEY_set_group(X_ec, group) != 1 ||
7425 dpp_debug_print_point("DPP: Y", group, Y_point);
7426 N = EC_POINT_new(group);
7430 EC_POINT_add(group, N, Y_point, Qr, bnctx) != 1 ||
7431 EC_POINT_get_affine_coordinates_GFp(group, N, Nx, Ny, bnctx) != 1)
7433 dpp_debug_print_point("DPP: N", group, N);
7472 EC_GROUP_free(group);
7601 EC_GROUP *group = NULL;
7649 "Peer indicated mismatching PKEX group - proposed %u",
7682 pkex->identifier, bnctx, &group);
7687 Y = EC_POINT_new(group);
7688 N = EC_POINT_new(group);
7692 EC_POINT_set_affine_coordinates_GFp(group, N, Nx, Ny, bnctx) != 1 ||
7693 EC_POINT_is_at_infinity(group, N) ||
7694 !EC_POINT_is_on_curve(group, N, bnctx) ||
7695 EC_POINT_invert(group, Qr, bnctx) != 1 ||
7696 EC_POINT_add(group, Y, N, Qr, bnctx) != 1 ||
7697 EC_POINT_is_at_infinity(group, Y) ||
7698 !EC_POINT_is_on_curve(group, Y, bnctx)) {
7703 dpp_debug_print_point("DPP: N", group, N);
7704 dpp_debug_print_point("DPP: Y'", group, Y);
7711 EC_KEY_set_group(Y_ec, group) != 1 ||
7775 EC_GROUP_free(group);
8318 wpa_printf(MSG_DEBUG, "DPP: Peer used different group for PFS");