Lines Matching defs:Q
97 EC_POINT *Q = EC_POINT_new(group);
99 if (P == NULL || Q == NULL)
114 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx))
116 if (!EC_POINT_is_at_infinity(group, Q))
120 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx))
122 if (!EC_POINT_is_at_infinity(group, Q))
131 if (!EC_POINT_mul(group, Q, NULL, P, n1, ctx))
133 if (0 != EC_POINT_cmp(group, Q, P, ctx))
138 if (!EC_POINT_mul(group, Q, NULL, P, n2, ctx))
140 if (0 != EC_POINT_cmp(group, Q, P, ctx))
145 if (!EC_POINT_mul(group, Q, NULL, P, n2, ctx))
147 if (0 != EC_POINT_cmp(group, Q, P, ctx))
151 EC_POINT_free(Q);
162 EC_POINT *P, *Q, *R;
209 Q = EC_POINT_new(group);
211 if (!P || !Q || !R)
220 if (!EC_POINT_oct2point(group, Q, buf, 1, ctx))
223 if (!EC_POINT_add(group, P, P, Q, ctx))
236 if (!EC_POINT_set_compressed_coordinates(group, Q, x, 1, ctx))
238 if (EC_POINT_is_on_curve(group, Q, ctx) <= 0) {
239 if (!EC_POINT_get_affine_coordinates(group, Q, x, y, ctx))
268 if (!EC_POINT_add(group, P, P, Q, ctx))
279 if (!EC_POINT_add(group, P, Q, R, ctx))
284 len = EC_POINT_point2oct(group, Q, POINT_CONVERSION_COMPRESSED, buf, sizeof buf, ctx);
289 if (0 != EC_POINT_cmp(group, P, Q, ctx))
295 len = EC_POINT_point2oct(group, Q, POINT_CONVERSION_UNCOMPRESSED, buf, sizeof buf, ctx);
300 if (0 != EC_POINT_cmp(group, P, Q, ctx))
306 len = EC_POINT_point2oct(group, Q, POINT_CONVERSION_HYBRID, buf, sizeof buf, ctx);
311 if (0 != EC_POINT_cmp(group, P, Q, ctx))
624 if (!EC_POINT_copy(Q, P))
626 if (EC_POINT_is_at_infinity(group, Q))
633 /* Q := -P */
634 if (!EC_POINT_invert(group, Q, ctx))
637 if (!EC_POINT_add(group, R, P, Q, ctx))
639 /* R := R + Q = P - P = infty */
640 if (!EC_POINT_add(group, R, R, Q, ctx))
653 EC_POINT_free(Q);