Lines Matching refs:Q

225                                          const P256_POINT_AFFINE *Q)  in ecp_sm2p256_point_add_affine()  argument
236 R->X[i] = Q->X[i]; in ecp_sm2p256_point_add_affine()
237 R->Y[i] = Q->Y[i]; in ecp_sm2p256_point_add_affine()
247 ecp_sm2p256_mul(tmp0, tmp0, Q->X); in ecp_sm2p256_point_add_affine()
248 ecp_sm2p256_mul(tmp1, tmp1, Q->Y); in ecp_sm2p256_point_add_affine()
258 K.X[i] = Q->X[i]; in ecp_sm2p256_point_add_affine()
259 K.Y[i] = Q->Y[i]; in ecp_sm2p256_point_add_affine()
288 const P256_POINT *Q) in ecp_sm2p256_point_add() argument
298 R->X[i] = Q->X[i]; in ecp_sm2p256_point_add()
299 R->Y[i] = Q->Y[i]; in ecp_sm2p256_point_add()
300 R->Z[i] = Q->Z[i]; in ecp_sm2p256_point_add()
304 } else if (is_zeros(Q->Z)) { in ecp_sm2p256_point_add()
312 } else if (is_point_equal(P, Q)) { in ecp_sm2p256_point_add()
313 ecp_sm2p256_point_double(R, Q); in ecp_sm2p256_point_add()
320 ecp_sm2p256_mul(tmp0, tmp0, Q->X); in ecp_sm2p256_point_add()
321 ecp_sm2p256_mul(tmp1, tmp1, Q->Y); in ecp_sm2p256_point_add()
322 ecp_sm2p256_mul(R->Y, P->Y, Q->Z); in ecp_sm2p256_point_add()
323 ecp_sm2p256_mul(R->Z, Q->Z, P->Z); in ecp_sm2p256_point_add()
324 ecp_sm2p256_sqr(tmp2, Q->Z); in ecp_sm2p256_point_add()
348 P256_POINT_AFFINE Q; in ecp_sm2p256_point_G_mul_by_scalar() local
369 memcpy(Q.X, ecp_sm2p256_precomputed + index, 32); in ecp_sm2p256_point_G_mul_by_scalar()
370 memcpy(Q.Y, ecp_sm2p256_precomputed + index + P256_LIMBS, 32); in ecp_sm2p256_point_G_mul_by_scalar()
371 ecp_sm2p256_point_add_affine(R, R, &Q); in ecp_sm2p256_point_G_mul_by_scalar()