Lines Matching defs:point
745 void EC_POINT_free(EC_POINT *point)
747 if (point == NULL)
750 if (point->meth->point_finish != 0)
751 point->meth->point_finish(point);
752 OPENSSL_free(point);
755 void EC_POINT_clear_free(EC_POINT *point)
757 if (point == NULL)
760 if (point->meth->point_clear_finish != 0)
761 point->meth->point_clear_finish(point);
762 else if (point->meth->point_finish != 0)
763 point->meth->point_finish(point);
764 OPENSSL_clear_free(point, sizeof(*point));
805 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point)
807 return point->meth;
811 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point)
817 if (group->meth != point->meth) {
821 return group->meth->point_set_to_infinity(group, point);
826 EC_POINT *point, const BIGNUM *x,
834 if (!ec_point_is_compat(point, group)) {
838 return ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group, point,
843 const EC_POINT *point, BIGNUM *x,
851 if (!ec_point_is_compat(point, group)) {
855 return ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp(group, point,
860 int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point,
868 if (!ec_point_is_compat(point, group)) {
872 if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx))
875 if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
884 EC_POINT *point, const BIGNUM *x,
887 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx);
892 EC_POINT *point, const BIGNUM *x,
895 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx);
901 const EC_POINT *point, BIGNUM *x, BIGNUM *y,
908 if (!ec_point_is_compat(point, group)) {
912 if (EC_POINT_is_at_infinity(group, point)) {
916 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
921 const EC_POINT *point, BIGNUM *x,
924 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx);
929 const EC_POINT *point, BIGNUM *x,
932 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx);
979 int EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
985 if (!ec_point_is_compat(point, group)) {
989 return group->meth->is_at_infinity(group, point);
995 * 1: The point is on the curve
996 * 0: The point is not on the curve
999 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
1006 if (!ec_point_is_compat(point, group)) {
1010 return group->meth->is_on_curve(group, point, ctx);
1028 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
1034 if (!ec_point_is_compat(point, group)) {
1038 return group->meth->make_affine(group, point, ctx);
1061 * Functions for point multiplication. If group->meth->mul is 0, we use the
1115 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx)
1124 || (point != NULL && !ec_point_is_compat(point, group))) {
1141 num = (point != NULL && p_scalar != NULL) ? 1 : 0;
1143 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx);
1146 ret = ossl_ec_wNAF_mul(group, r, g_scalar, num, &point, &p_scalar, ctx);
1409 const EC_POINT *point = EC_GROUP_get0_generator(group);
1415 || !EC_GROUP_set_generator(dup, point, order, NULL))
1548 EC_POINT *point = NULL;
1679 /* generator base point */
1687 if ((point = EC_POINT_new(group)) == NULL)
1691 if (!EC_POINT_oct2point(group, point, buf, ptmp->data_size, bnctx)) {
1716 if (!EC_GROUP_set_generator(group, point, order, cofactor)) {
1754 EC_POINT_free(point);