Lines Matching refs:Z
33 BN_ULONG Z[P256_LIMBS]; member
133 is_equal(a->Z, b->Z)
196 if (is_zeros(P->Z)) { in ecp_sm2p256_point_double()
198 R->Z[i] = 0; in ecp_sm2p256_point_double()
203 ecp_sm2p256_sqr(tmp0, P->Z); in ecp_sm2p256_point_double()
209 ecp_sm2p256_mul(R->Z, R->Y, P->Z); in ecp_sm2p256_point_double()
234 if (is_zeros(P->Z)) { in ecp_sm2p256_point_add_affine()
238 R->Z[i] = 0; in ecp_sm2p256_point_add_affine()
240 R->Z[0] = 1; in ecp_sm2p256_point_add_affine()
245 ecp_sm2p256_sqr(tmp0, P->Z); in ecp_sm2p256_point_add_affine()
246 ecp_sm2p256_mul(tmp1, tmp0, P->Z); in ecp_sm2p256_point_add_affine()
260 K.Z[i] = 0; in ecp_sm2p256_point_add_affine()
262 K.Z[0] = 1; in ecp_sm2p256_point_add_affine()
266 R->Z[i] = 0; in ecp_sm2p256_point_add_affine()
272 ecp_sm2p256_mul(R->Z, P->Z, tmp0); in ecp_sm2p256_point_add_affine()
296 if (is_zeros(P->Z)) { 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()
308 R->Z[i] = P->Z[i]; in ecp_sm2p256_point_add()
318 ecp_sm2p256_sqr(tmp0, P->Z); in ecp_sm2p256_point_add()
319 ecp_sm2p256_mul(tmp1, tmp0, P->Z); 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()
328 ecp_sm2p256_mul(R->Z, tmp0, R->Z); in ecp_sm2p256_point_add()
360 R->Z[0] = 1; in ecp_sm2p256_point_G_mul_by_scalar()
395 precomputed[1].Z[0] = 1; in ecp_sm2p256_point_P_mul_by_scalar()
396 precomputed[1].Z[1] = 0; in ecp_sm2p256_point_P_mul_by_scalar()
397 precomputed[1].Z[2] = 0; in ecp_sm2p256_point_P_mul_by_scalar()
398 precomputed[1].Z[3] = 0; in ecp_sm2p256_point_P_mul_by_scalar()
433 if (is_one(P->Z)) { in ecp_sm2p256_point_get_affine()
439 ecp_sm2p256_mod_inverse(z_inv3, P->Z); in ecp_sm2p256_point_get_affine()
479 || ecp_sm2p256_bignum_field_elem(point_z, point->Z) <= 0) { in ecp_sm2p256_get_affine()
549 || ecp_sm2p256_bignum_field_elem(p.p.Z, point[i]->Z) <= 0) { in ecp_sm2p256_windowed_mul()
636 || !bn_set_words(r->Z, p.p.Z, P256_LIMBS)) in ecp_sm2p256_points_mul()
638 r->Z_is_one = is_equal(bn_get_words(r->Z), ONE) & 1; in ecp_sm2p256_points_mul()