Lines Matching refs:field
100 group->field = BN_new(); in ossl_ec_GFp_simple_group_init()
103 if (group->field == NULL || group->a == NULL || group->b == NULL) { in ossl_ec_GFp_simple_group_init()
104 BN_free(group->field); in ossl_ec_GFp_simple_group_init()
115 BN_free(group->field); in ossl_ec_GFp_simple_group_finish()
122 BN_clear_free(group->field); in ossl_ec_GFp_simple_group_clear_finish()
129 if (!BN_copy(dest->field, src->field)) in ossl_ec_GFp_simple_group_copy()
167 if (!BN_copy(group->field, p)) in ossl_ec_GFp_simple_group_set_curve()
169 BN_set_negative(group->field, 0); in ossl_ec_GFp_simple_group_set_curve()
190 group->a_is_minus3 = (0 == BN_cmp(tmp_a, group->field)); in ossl_ec_GFp_simple_group_set_curve()
207 if (!BN_copy(p, group->field)) in ossl_ec_GFp_simple_group_get_curve()
247 return BN_num_bits(group->field); in ossl_ec_GFp_simple_group_get_degree()
255 const BIGNUM *p = group->field; in ossl_ec_GFp_simple_group_check_discriminant()
392 if (!BN_nnmod(point->X, x, group->field, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
401 if (!BN_nnmod(point->Y, y, group->field, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
412 if (!BN_nnmod(point->Z, z, group->field, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
571 if (!BN_mod_sqr(Z_2, Z_1, group->field, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
592 if (!BN_mod_mul(Z_3, Z_2, Z_1, group->field, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
633 p = group->field; in ossl_ec_GFp_simple_add()
817 p = group->field; in ossl_ec_GFp_simple_dbl()
947 return BN_usub(point->Y, group->field, point->Y); in ossl_ec_GFp_simple_invert()
972 p = group->field; in ossl_ec_GFp_simple_is_on_curve()
1368 return BN_mod_mul(r, a, b, group->field, ctx); in ossl_ec_GFp_simple_field_mul()
1374 return BN_mod_sqr(r, a, group->field, ctx); in ossl_ec_GFp_simple_field_sqr()
1399 if (!BN_priv_rand_range_ex(e, group->field, 0, ctx)) in ossl_ec_GFp_simple_field_inv()
1407 if (!BN_mod_inverse(r, r, group->field, ctx)) { in ossl_ec_GFp_simple_field_inv()
1452 ret = BN_priv_rand_range_ex(lambda, group->field, 0, ctx); in ossl_ec_GFp_simple_blind_coordinates()
1507 || !BN_mod_sub_quick(t4, t3, group->a, group->field) in ossl_ec_GFp_simple_ladder_pre()
1510 || !BN_mod_lshift_quick(t5, t5, 3, group->field) in ossl_ec_GFp_simple_ladder_pre()
1512 || !BN_mod_sub_quick(r->X, t4, t5, group->field) in ossl_ec_GFp_simple_ladder_pre()
1513 || !BN_mod_add_quick(t1, t3, group->a, group->field) in ossl_ec_GFp_simple_ladder_pre()
1515 || !BN_mod_add_quick(t2, group->b, t2, group->field) in ossl_ec_GFp_simple_ladder_pre()
1517 || !BN_mod_lshift_quick(r->Z, t2, 2, group->field)) in ossl_ec_GFp_simple_ladder_pre()
1522 if (!BN_priv_rand_range_ex(r->Y, group->field, 0, ctx)) in ossl_ec_GFp_simple_ladder_pre()
1528 if (!BN_priv_rand_range_ex(s->Z, group->field, 0, ctx)) in ossl_ec_GFp_simple_ladder_pre()
1585 || !BN_mod_add_quick(t5, t6, t5, group->field) in ossl_ec_GFp_simple_ladder_step()
1586 || !BN_mod_add_quick(t6, t3, t4, group->field) in ossl_ec_GFp_simple_ladder_step()
1589 || !BN_mod_lshift_quick(t2, group->b, 2, group->field) in ossl_ec_GFp_simple_ladder_step()
1591 || !BN_mod_lshift1_quick(t5, t5, group->field) in ossl_ec_GFp_simple_ladder_step()
1592 || !BN_mod_sub_quick(t3, t4, t3, group->field) in ossl_ec_GFp_simple_ladder_step()
1596 || !BN_mod_add_quick(t0, t0, t5, group->field) in ossl_ec_GFp_simple_ladder_step()
1598 || !BN_mod_sub_quick(s->X, t0, t4, group->field) in ossl_ec_GFp_simple_ladder_step()
1602 || !BN_mod_add_quick(t1, r->X, r->Z, group->field) in ossl_ec_GFp_simple_ladder_step()
1604 || !BN_mod_sub_quick(t1, t1, t4, group->field) in ossl_ec_GFp_simple_ladder_step()
1605 || !BN_mod_sub_quick(t1, t1, t5, group->field) in ossl_ec_GFp_simple_ladder_step()
1606 || !BN_mod_sub_quick(t3, t4, t6, group->field) in ossl_ec_GFp_simple_ladder_step()
1611 || !BN_mod_sub_quick(r->X, t3, t0, group->field) in ossl_ec_GFp_simple_ladder_step()
1612 || !BN_mod_add_quick(t3, t4, t6, group->field) in ossl_ec_GFp_simple_ladder_step()
1616 || !BN_mod_lshift1_quick(t1, t1, group->field) in ossl_ec_GFp_simple_ladder_step()
1618 || !BN_mod_add_quick(r->Z, t4, t1, group->field)) in ossl_ec_GFp_simple_ladder_step()
1678 || !BN_mod_lshift1_quick(t4, p->Y, group->field) in ossl_ec_GFp_simple_ladder_post()
1682 || !BN_mod_lshift1_quick(t1, group->b, group->field) in ossl_ec_GFp_simple_ladder_post()
1688 || !BN_mod_add_quick(t1, t1, t6, group->field) in ossl_ec_GFp_simple_ladder_post()
1691 || !BN_mod_add_quick(t6, r->X, t0, group->field) in ossl_ec_GFp_simple_ladder_post()
1693 || !BN_mod_add_quick(t6, t6, t2, group->field) in ossl_ec_GFp_simple_ladder_post()
1694 || !BN_mod_sub_quick(t0, t0, r->X, group->field) in ossl_ec_GFp_simple_ladder_post()
1697 || !BN_mod_sub_quick(t0, t6, t0, group->field) in ossl_ec_GFp_simple_ladder_post()