Lines Matching refs:Z

226     point->Z = BN_new();  in ossl_ec_GF2m_simple_point_init()
228 if (point->X == NULL || point->Y == NULL || point->Z == NULL) { in ossl_ec_GF2m_simple_point_init()
231 BN_free(point->Z); in ossl_ec_GF2m_simple_point_init()
242 BN_free(point->Z); in ossl_ec_GF2m_simple_point_finish()
250 BN_clear_free(point->Z); in ossl_ec_GF2m_simple_point_clear_finish()
264 if (!BN_copy(dest->Z, src->Z)) in ossl_ec_GF2m_simple_point_copy()
280 BN_zero(point->Z); in ossl_ec_GF2m_simple_point_set_to_infinity()
306 if (!BN_copy(point->Z, BN_value_one())) in ossl_ec_GF2m_simple_point_set_affine_coordinates()
308 BN_set_negative(point->Z, 0); in ossl_ec_GF2m_simple_point_set_affine_coordinates()
332 if (BN_cmp(point->Z, BN_value_one())) { in ossl_ec_GF2m_simple_point_get_affine_coordinates()
500 return BN_is_zero(point->Z); in ossl_ec_GF2m_simple_is_at_infinity()
664 if (!BN_one(point->Z)) in ossl_ec_GF2m_simple_make_affine()
732 if (!BN_priv_rand_ex(s->Z, BN_num_bits(group->field) - 1, in ec_GF2m_simple_ladder_pre()
737 } while (BN_is_zero(s->Z)); in ec_GF2m_simple_ladder_pre()
741 && !group->meth->field_encode(group, s->Z, s->Z, ctx)) in ec_GF2m_simple_ladder_pre()
742 || !group->meth->field_mul(group, s->X, p->X, s->Z, ctx)) in ec_GF2m_simple_ladder_pre()
756 || !group->meth->field_sqr(group, r->Z, p->X, ctx) in ec_GF2m_simple_ladder_pre()
757 || !group->meth->field_sqr(group, r->X, r->Z, ctx) in ec_GF2m_simple_ladder_pre()
759 || !group->meth->field_mul(group, r->Z, r->Z, r->Y, ctx) in ec_GF2m_simple_ladder_pre()
779 if (!group->meth->field_mul(group, r->Y, r->Z, s->X, ctx) in ec_GF2m_simple_ladder_step()
780 || !group->meth->field_mul(group, s->X, r->X, s->Z, ctx) in ec_GF2m_simple_ladder_step()
781 || !group->meth->field_sqr(group, s->Y, r->Z, ctx) in ec_GF2m_simple_ladder_step()
782 || !group->meth->field_sqr(group, r->Z, r->X, ctx) in ec_GF2m_simple_ladder_step()
783 || !BN_GF2m_add(s->Z, r->Y, s->X) in ec_GF2m_simple_ladder_step()
784 || !group->meth->field_sqr(group, s->Z, s->Z, ctx) in ec_GF2m_simple_ladder_step()
786 || !group->meth->field_mul(group, r->Y, s->Z, p->X, ctx) in ec_GF2m_simple_ladder_step()
788 || !group->meth->field_sqr(group, r->Y, r->Z, ctx) in ec_GF2m_simple_ladder_step()
789 || !group->meth->field_mul(group, r->Z, r->Z, s->Y, ctx) in ec_GF2m_simple_ladder_step()
812 if (BN_is_zero(r->Z)) in ec_GF2m_simple_ladder_post()
815 if (BN_is_zero(s->Z)) { in ec_GF2m_simple_ladder_post()
833 if (!group->meth->field_mul(group, t0, r->Z, s->Z, ctx) in ec_GF2m_simple_ladder_post()
834 || !group->meth->field_mul(group, t1, p->X, r->Z, ctx) in ec_GF2m_simple_ladder_post()
836 || !group->meth->field_mul(group, t2, p->X, s->Z, ctx) in ec_GF2m_simple_ladder_post()
837 || !group->meth->field_mul(group, r->Z, r->X, t2, ctx) in ec_GF2m_simple_ladder_post()
847 || !group->meth->field_mul(group, r->X, r->Z, t2, ctx) in ec_GF2m_simple_ladder_post()
851 || !BN_one(r->Z)) in ec_GF2m_simple_ladder_post()