Lines Matching defs:point
646 EC_POINT *point = NULL;
670 if ((point = EC_POINT_new(group)) == NULL)
678 if (!EC_POINT_mul(group, point, order, NULL, NULL, ctx))
680 if (!EC_POINT_is_at_infinity(group, point)) {
691 EC_POINT_free(point);
796 EC_POINT *point = NULL;
803 if ((point = calloc(1, sizeof(*point))) == NULL) {
808 if ((point->X = BN_new()) == NULL)
810 if ((point->Y = BN_new()) == NULL)
812 if ((point->Z = BN_new()) == NULL)
815 point->meth = group->meth;
817 return point;
820 EC_POINT_free(point);
827 EC_POINT_free(EC_POINT *point)
829 if (point == NULL)
832 BN_free(point->X);
833 BN_free(point->Y);
834 BN_free(point->Z);
836 freezero(point, sizeof *point);
841 EC_POINT_clear_free(EC_POINT *point)
843 EC_POINT_free(point);
872 EC_POINT *point = NULL;
877 if ((point = EC_POINT_new(group)) == NULL)
880 if (!EC_POINT_copy(point, in_point))
883 return point;
886 EC_POINT_free(point);
893 EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point)
895 if (group->meth != point->meth) {
900 BN_zero(point->Z);
901 point->Z_is_one = 0;
908 EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point,
923 if (group->meth != point->meth) {
927 if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx))
930 if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
946 EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
949 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx);
954 EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point,
960 if (EC_POINT_is_at_infinity(group, point) > 0) {
974 if (group->meth != point->meth) {
978 ret = group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
989 EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point,
992 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx);
997 EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
1085 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
1101 EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
1104 return EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx);
1199 EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
1201 if (group->meth != point->meth) {
1206 return BN_is_zero(point->Z);
1211 EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
1226 if (group->meth != point->meth) {
1230 ret = group->meth->point_is_on_curve(group, point, ctx);
1271 EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx_in)
1289 if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
1291 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
1308 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx_in)
1324 if (g_scalar != NULL && point == NULL && p_scalar == NULL) {
1335 } else if (g_scalar == NULL && point != NULL && p_scalar != NULL) {
1340 * public point. To protect the secret scalar, we ignore if
1344 ret = group->meth->mul_single_ct(group, r, p_scalar, point, ctx);
1345 } else if (g_scalar != NULL && point != NULL && p_scalar != NULL) {
1353 p_scalar, point, ctx);
1373 EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
1383 const EC_POINT *point, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx)
1426 EC_POINT_method_of(const EC_POINT *point)