Lines Matching refs:group
3154 EC_GROUP *group = NULL; in ec_group_new_from_data() local
3182 if ((group = ossl_ec_group_new_ex(libctx, propq, meth)) == NULL) { in ec_group_new_from_data()
3186 if (group->meth->group_full_init != NULL) { in ec_group_new_from_data()
3187 if (!group->meth->group_full_init(group, params)){ in ec_group_new_from_data()
3191 EC_GROUP_set_curve_name(group, curve.nid); in ec_group_new_from_data()
3193 return group; in ec_group_new_from_data()
3206 if (group != NULL) { in ec_group_new_from_data()
3207 if (group->meth->group_set_curve(group, p, a, b, ctx) == 0) { in ec_group_new_from_data()
3212 if ((group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) == NULL) { in ec_group_new_from_data()
3221 if ((group = EC_GROUP_new_curve_GF2m(p, a, b, ctx)) == NULL) { in ec_group_new_from_data()
3228 EC_GROUP_set_curve_name(group, curve.nid); in ec_group_new_from_data()
3230 if ((P = EC_POINT_new(group)) == NULL) { in ec_group_new_from_data()
3240 if (!EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) { in ec_group_new_from_data()
3249 if (!EC_GROUP_set_generator(group, P, order, x)) { in ec_group_new_from_data()
3254 if (!EC_GROUP_set_seed(group, params - seed_len, seed_len)) { in ec_group_new_from_data()
3261 if (EC_GROUP_get_asn1_flag(group) == OPENSSL_EC_NAMED_CURVE) { in ec_group_new_from_data()
3281 EC_GROUP_set_asn1_flag(group, OPENSSL_EC_EXPLICIT_CURVE); in ec_group_new_from_data()
3299 EC_GROUP_free(group); in ec_group_new_from_data()
3300 group = NULL; in ec_group_new_from_data()
3310 return group; in ec_group_new_from_data()
3376 int ossl_ec_curve_nid_from_params(const EC_GROUP *group, BN_CTX *ctx) in ossl_ec_curve_nid_from_params() argument
3389 nid = EC_GROUP_get_curve_name(group); in ossl_ec_curve_nid_from_params()
3390 field_type = EC_GROUP_get_field_type(group); in ossl_ec_curve_nid_from_params()
3391 seed_len = EC_GROUP_get_seed_len(group); in ossl_ec_curve_nid_from_params()
3392 seed = EC_GROUP_get0_seed(group); in ossl_ec_curve_nid_from_params()
3393 cofactor = EC_GROUP_get0_cofactor(group); in ossl_ec_curve_nid_from_params()
3403 param_len = BN_num_bytes(group->order); in ossl_ec_curve_nid_from_params()
3404 len = BN_num_bytes(group->field); in ossl_ec_curve_nid_from_params()
3423 if (!(EC_GROUP_get_curve(group, bn[0], bn[1], bn[2], ctx) in ossl_ec_curve_nid_from_params()
3424 && ((generator = EC_GROUP_get0_generator(group)) != NULL) in ossl_ec_curve_nid_from_params()
3426 && EC_POINT_get_affine_coordinates(group, generator, bn[3], bn[4], ctx) in ossl_ec_curve_nid_from_params()
3428 && EC_GROUP_get_order(group, bn[5], ctx))) in ossl_ec_curve_nid_from_params()