Lines Matching refs:point

746 void EC_POINT_free(EC_POINT *point)  in EC_POINT_free()  argument
748 if (point == NULL) in EC_POINT_free()
751 if (point->meth->point_finish != 0) in EC_POINT_free()
752 point->meth->point_finish(point); in EC_POINT_free()
753 OPENSSL_free(point); in EC_POINT_free()
756 void EC_POINT_clear_free(EC_POINT *point) in EC_POINT_clear_free() argument
758 if (point == NULL) in EC_POINT_clear_free()
761 if (point->meth->point_clear_finish != 0) in EC_POINT_clear_free()
762 point->meth->point_clear_finish(point); in EC_POINT_clear_free()
763 else if (point->meth->point_finish != 0) in EC_POINT_clear_free()
764 point->meth->point_finish(point); in EC_POINT_clear_free()
765 OPENSSL_clear_free(point, sizeof(*point)); in EC_POINT_clear_free()
806 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point) in EC_POINT_method_of() argument
808 return point->meth; in EC_POINT_method_of()
812 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point) in EC_POINT_set_to_infinity() argument
818 if (group->meth != point->meth) { in EC_POINT_set_to_infinity()
822 return group->meth->point_set_to_infinity(group, point); in EC_POINT_set_to_infinity()
827 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_Jprojective_coordinates_GFp() argument
835 if (!ec_point_is_compat(point, group)) { in EC_POINT_set_Jprojective_coordinates_GFp()
839 return ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group, point, in EC_POINT_set_Jprojective_coordinates_GFp()
844 const EC_POINT *point, BIGNUM *x, in EC_POINT_get_Jprojective_coordinates_GFp() argument
852 if (!ec_point_is_compat(point, group)) { in EC_POINT_get_Jprojective_coordinates_GFp()
856 return ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp(group, point, in EC_POINT_get_Jprojective_coordinates_GFp()
861 int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, in EC_POINT_set_affine_coordinates() argument
869 if (!ec_point_is_compat(point, group)) { in EC_POINT_set_affine_coordinates()
873 if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx)) in EC_POINT_set_affine_coordinates()
876 if (EC_POINT_is_on_curve(group, point, ctx) <= 0) { in EC_POINT_set_affine_coordinates()
885 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_affine_coordinates_GFp() argument
888 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); in EC_POINT_set_affine_coordinates_GFp()
893 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_affine_coordinates_GF2m() argument
896 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); in EC_POINT_set_affine_coordinates_GF2m()
902 const EC_POINT *point, BIGNUM *x, BIGNUM *y, in EC_POINT_get_affine_coordinates() argument
909 if (!ec_point_is_compat(point, group)) { in EC_POINT_get_affine_coordinates()
913 if (EC_POINT_is_at_infinity(group, point)) { in EC_POINT_get_affine_coordinates()
917 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates()
922 const EC_POINT *point, BIGNUM *x, in EC_POINT_get_affine_coordinates_GFp() argument
925 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates_GFp()
930 const EC_POINT *point, BIGNUM *x, in EC_POINT_get_affine_coordinates_GF2m() argument
933 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates_GF2m()
980 int EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point) in EC_POINT_is_at_infinity() argument
986 if (!ec_point_is_compat(point, group)) { in EC_POINT_is_at_infinity()
990 return group->meth->is_at_infinity(group, point); in EC_POINT_is_at_infinity()
1000 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_is_on_curve() argument
1007 if (!ec_point_is_compat(point, group)) { in EC_POINT_is_on_curve()
1011 return group->meth->is_on_curve(group, point, ctx); in EC_POINT_is_on_curve()
1029 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx) in EC_POINT_make_affine() argument
1035 if (!ec_point_is_compat(point, group)) { in EC_POINT_make_affine()
1039 return group->meth->make_affine(group, point, ctx); in EC_POINT_make_affine()
1116 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx) in EC_POINT_mul() argument
1125 || (point != NULL && !ec_point_is_compat(point, group))) { in EC_POINT_mul()
1142 num = (point != NULL && p_scalar != NULL) ? 1 : 0; in EC_POINT_mul()
1144 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()
1147 ret = ossl_ec_wNAF_mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()
1409 const EC_POINT *point = EC_GROUP_get0_generator(group); in ec_group_explicit_to_named() local
1415 || !EC_GROUP_set_generator(dup, point, order, NULL)) in ec_group_explicit_to_named()
1543 EC_POINT *point = NULL; in EC_GROUP_new_from_params() local
1666 if ((point = EC_POINT_new(group)) == NULL) in EC_GROUP_new_from_params()
1670 if (!EC_POINT_oct2point(group, point, buf, ptmp->data_size, bnctx)) { in EC_GROUP_new_from_params()
1695 if (!EC_GROUP_set_generator(group, point, order, cofactor)) { in EC_GROUP_new_from_params()
1731 EC_POINT_free(point); in EC_GROUP_new_from_params()