Lines Matching defs:group
24 int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
27 if (group->meth->point_set_compressed_coordinates == NULL
28 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
32 if (!ec_point_is_compat(point, group)) {
36 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
37 if (group->meth->field_type == NID_X9_62_prime_field)
38 return ossl_ec_GFp_simple_set_compressed_coordinates(group, point, x,
47 return ossl_ec_GF2m_simple_set_compressed_coordinates(group, point,
51 return group->meth->point_set_compressed_coordinates(group, point, x,
56 int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group,
60 return EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx);
64 int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group,
68 return EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx);
73 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point,
81 if (group->meth->point2oct == 0
82 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
86 if (!ec_point_is_compat(point, group)) {
90 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
91 if (group->meth->field_type == NID_X9_62_prime_field)
92 return ossl_ec_GFp_simple_point2oct(group, point, form, buf, len,
101 return ossl_ec_GF2m_simple_point2oct(group, point,
106 return group->meth->point2oct(group, point, form, buf, len, ctx);
109 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
112 if (group->meth->oct2point == 0
113 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
117 if (!ec_point_is_compat(point, group)) {
121 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
122 if (group->meth->field_type == NID_X9_62_prime_field)
123 return ossl_ec_GFp_simple_oct2point(group, point, buf, len, ctx);
131 return ossl_ec_GF2m_simple_oct2point(group, point, buf, len, ctx);
134 return group->meth->oct2point(group, point, buf, len, ctx);
137 size_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,
144 len = EC_POINT_point2oct(group, point, form, NULL, 0, NULL);
151 len = EC_POINT_point2oct(group, point, form, buf, len, ctx);