Lines Matching refs:point

744 void EC_POINT_free(EC_POINT *point)  in EC_POINT_free()  argument
746 if (point == NULL) in EC_POINT_free()
750 EC_POINT_clear_free(point); in EC_POINT_free()
752 if (point->meth->point_finish != 0) in EC_POINT_free()
753 point->meth->point_finish(point); in EC_POINT_free()
754 OPENSSL_free(point); in EC_POINT_free()
758 void EC_POINT_clear_free(EC_POINT *point) in EC_POINT_clear_free() argument
760 if (point == NULL) in EC_POINT_clear_free()
763 if (point->meth->point_clear_finish != 0) in EC_POINT_clear_free()
764 point->meth->point_clear_finish(point); in EC_POINT_clear_free()
765 else if (point->meth->point_finish != 0) in EC_POINT_clear_free()
766 point->meth->point_finish(point); in EC_POINT_clear_free()
767 OPENSSL_clear_free(point, sizeof(*point)); in EC_POINT_clear_free()
808 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point) in EC_POINT_method_of() argument
810 return point->meth; in EC_POINT_method_of()
814 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point) in EC_POINT_set_to_infinity() argument
820 if (group->meth != point->meth) { in EC_POINT_set_to_infinity()
824 return group->meth->point_set_to_infinity(group, point); in EC_POINT_set_to_infinity()
829 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_Jprojective_coordinates_GFp() argument
837 if (!ec_point_is_compat(point, group)) { in EC_POINT_set_Jprojective_coordinates_GFp()
841 return ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group, point, in EC_POINT_set_Jprojective_coordinates_GFp()
846 const EC_POINT *point, BIGNUM *x, in EC_POINT_get_Jprojective_coordinates_GFp() argument
854 if (!ec_point_is_compat(point, group)) { in EC_POINT_get_Jprojective_coordinates_GFp()
858 return ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp(group, point, in EC_POINT_get_Jprojective_coordinates_GFp()
863 int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, in EC_POINT_set_affine_coordinates() argument
871 if (!ec_point_is_compat(point, group)) { in EC_POINT_set_affine_coordinates()
875 if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx)) in EC_POINT_set_affine_coordinates()
878 if (EC_POINT_is_on_curve(group, point, ctx) <= 0) { in EC_POINT_set_affine_coordinates()
887 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_affine_coordinates_GFp() argument
890 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); in EC_POINT_set_affine_coordinates_GFp()
895 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_affine_coordinates_GF2m() argument
898 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); in EC_POINT_set_affine_coordinates_GF2m()
904 const EC_POINT *point, BIGNUM *x, BIGNUM *y, in EC_POINT_get_affine_coordinates() argument
911 if (!ec_point_is_compat(point, group)) { in EC_POINT_get_affine_coordinates()
915 if (EC_POINT_is_at_infinity(group, point)) { in EC_POINT_get_affine_coordinates()
919 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates()
924 const EC_POINT *point, BIGNUM *x, in EC_POINT_get_affine_coordinates_GFp() argument
927 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates_GFp()
932 const EC_POINT *point, BIGNUM *x, in EC_POINT_get_affine_coordinates_GF2m() argument
935 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); in EC_POINT_get_affine_coordinates_GF2m()
982 int EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point) in EC_POINT_is_at_infinity() argument
988 if (!ec_point_is_compat(point, group)) { in EC_POINT_is_at_infinity()
992 return group->meth->is_at_infinity(group, point); in EC_POINT_is_at_infinity()
1002 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_is_on_curve() argument
1009 if (!ec_point_is_compat(point, group)) { in EC_POINT_is_on_curve()
1013 return group->meth->is_on_curve(group, point, ctx); in EC_POINT_is_on_curve()
1031 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx) in EC_POINT_make_affine() argument
1037 if (!ec_point_is_compat(point, group)) { in EC_POINT_make_affine()
1041 return group->meth->make_affine(group, point, ctx); in EC_POINT_make_affine()
1118 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx) in EC_POINT_mul() argument
1127 || (point != NULL && !ec_point_is_compat(point, group))) { in EC_POINT_mul()
1144 num = (point != NULL && p_scalar != NULL) ? 1 : 0; in EC_POINT_mul()
1146 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()
1149 ret = ossl_ec_wNAF_mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()
1412 const EC_POINT *point = EC_GROUP_get0_generator(group); in ec_group_explicit_to_named() local
1418 || !EC_GROUP_set_generator(dup, point, order, NULL)) in ec_group_explicit_to_named()
1551 EC_POINT *point = NULL; in EC_GROUP_new_from_params() local
1690 if ((point = EC_POINT_new(group)) == NULL) in EC_GROUP_new_from_params()
1694 if (!EC_POINT_oct2point(group, point, buf, ptmp->data_size, bnctx)) { in EC_GROUP_new_from_params()
1719 if (!EC_GROUP_set_generator(group, point, order, cofactor)) { in EC_GROUP_new_from_params()
1757 EC_POINT_free(point); in EC_GROUP_new_from_params()