Home
last modified time | relevance | path

Searched refs:BN_is_zero (Results 1 – 25 of 63) sorted by relevance

123

/third_party/openssl/fuzz/
Dbndiv.c78 if (BN_is_zero(b2)) { in FuzzerTestOneInput()
84 if (BN_is_zero(b1)) in FuzzerTestOneInput()
85 success = BN_is_zero(b3) && BN_is_zero(b4); in FuzzerTestOneInput()
87 success = (BN_is_negative(b3) != BN_is_negative(b2) || BN_is_zero(b3)) in FuzzerTestOneInput()
88 && (BN_is_negative(b4) || BN_is_zero(b4)); in FuzzerTestOneInput()
90 success = (BN_is_negative(b3) == BN_is_negative(b2) || BN_is_zero(b3)) in FuzzerTestOneInput()
91 && (!BN_is_negative(b4) || BN_is_zero(b4)); in FuzzerTestOneInput()
109 BN_is_negative(b3), BN_is_negative(b4), BN_is_zero(b4), in FuzzerTestOneInput()
111 && (BN_is_negative(b4) || BN_is_zero(b4)), in FuzzerTestOneInput()
Dbignum.c72 if (BN_is_zero(b3)) { in FuzzerTestOneInput()
/third_party/openssl/doc/man3/
DBN_cmp.pod5 BN_cmp, BN_ucmp, BN_is_zero, BN_is_one, BN_is_word, BN_abs_is_word, BN_is_odd - BIGNUM comparison a…
14 int BN_is_zero(const BIGNUM *a);
25 BN_is_zero(), BN_is_one(), BN_is_word() and BN_abs_is_word() test if
35 BN_is_zero(), BN_is_one() BN_is_word(), BN_abs_is_word() and
40 Prior to OpenSSL 1.1.0, BN_is_zero(), BN_is_one(), BN_is_word(),
/third_party/openssl/crypto/dsa/
Ddsa_ossl.c137 } while (BN_is_zero(blind)); in ossl_dsa_do_sign_int()
170 if (BN_is_zero(ret->r) || BN_is_zero(ret->s)) in ossl_dsa_do_sign_int()
213 if (BN_is_zero(dsa->params.p) in dsa_sign_setup()
214 || BN_is_zero(dsa->params.q) in dsa_sign_setup()
215 || BN_is_zero(dsa->params.g)) { in dsa_sign_setup()
255 } while (BN_is_zero(k)); in dsa_sign_setup()
354 if (BN_is_zero(r) || BN_is_negative(r) || in dsa_do_verify()
359 if (BN_is_zero(s) || BN_is_negative(s) || in dsa_do_verify()
/third_party/openssl/crypto/bn/
Dbn_sqrt.c47 if (BN_is_zero(a) || BN_is_one(a)) { in BN_mod_sqrt()
193 if (BN_is_zero(y)) in BN_mod_sqrt()
258 if (BN_is_zero(t)) { /* special case: p = 2^e + 1 */ in BN_mod_sqrt()
261 if (BN_is_zero(t)) { in BN_mod_sqrt()
271 if (BN_is_zero(x)) { in BN_mod_sqrt()
Dbn_gcd.c82 while (!BN_is_zero(B)) { in bn_mod_inverse_no_branch()
206 if (BN_abs_is_word(n, 1) || BN_is_zero(n)) { in int_bn_mod_inverse()
269 while (!BN_is_zero(B)) { in int_bn_mod_inverse()
357 while (!BN_is_zero(B)) { in int_bn_mod_inverse()
558 if (BN_is_zero(in_b)) { in BN_gcd()
563 if (BN_is_zero(in_a)) { in BN_gcd()
Dbn_word.c110 if (BN_is_zero(a)) in BN_add_word()
116 if (!BN_is_zero(a)) in BN_add_word()
145 if (BN_is_zero(a)) { in BN_sub_word()
Dbn_kron.c56 if (BN_is_zero(B)) { in BN_kronecker()
102 if (BN_is_zero(A)) { in BN_kronecker()
Dbn_conv.c23 if (BN_is_zero(a)) in BN_bn2hex()
82 if (BN_is_zero(t)) { in BN_bn2dec()
89 while (!BN_is_zero(t)) { in BN_bn2dec()
Dbn_gf2m.c581 if (BN_is_zero(u)) in BN_GF2m_mod_inv_vartime()
592 if (BN_is_zero(u)) in BN_GF2m_mod_inv_vartime()
747 } while (BN_is_zero(b)); in BN_GF2m_mod_inv()
869 if (BN_is_zero(b)) in BN_GF2m_mod_exp_arr()
1026 if (BN_is_zero(a)) { in BN_GF2m_mod_solve_quad_arr()
1074 } while (BN_is_zero(w) && (count < MAX_ITERATIONS)); in BN_GF2m_mod_solve_quad_arr()
1075 if (BN_is_zero(w)) { in BN_GF2m_mod_solve_quad_arr()
1146 if (BN_is_zero(a)) in BN_GF2m_poly2arr()
Dbn_exp2.c77 if (BN_is_zero(a_mod_m)) { in BN_mod_exp2_mont()
106 if (BN_is_zero(a_mod_m)) { in BN_mod_exp2_mont()
Dbn_div.c26 if (BN_is_zero(d)) {
80 rem->neg = BN_is_zero(rem) ? 0 : m->neg;
214 if (BN_is_zero(divisor)) { in BN_div()
Dbn_mont.c268 if (BN_is_zero(mod)) in BN_MONT_CTX_set()
320 if (!BN_is_zero(Ri)) { in BN_MONT_CTX_set()
355 if (!BN_is_zero(Ri)) { in BN_MONT_CTX_set()
Dbn_print.c38 if (BN_is_zero(a) && BIO_write(bp, "0", 1) != 1) in BN_print()
Dbn_intern.c30 if (BN_is_zero(scalar)) { in bn_compute_wNAF()
/third_party/openssl/crypto/ec/
Dec2_smpl.c208 if (BN_is_zero(b)) in ossl_ec_GF2m_simple_group_check_discriminant()
432 if (BN_GF2m_cmp(y0, y1) || BN_is_zero(x1)) { in ossl_ec_GF2m_simple_add()
486 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(point->Y)) in ossl_ec_GF2m_simple_invert()
500 return BN_is_zero(point->Z); in ossl_ec_GF2m_simple_is_at_infinity()
564 ret = BN_is_zero(lh); in ossl_ec_GF2m_simple_is_on_curve()
737 } while (BN_is_zero(s->Z)); in ec_GF2m_simple_ladder_pre()
752 } while (BN_is_zero(r->Y)); in ec_GF2m_simple_ladder_pre()
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()
891 if (num > 1 || BN_is_zero(group->order) || BN_is_zero(group->cofactor)) in ec_GF2m_simple_points_mul()
Decp_smpl.c291 if (BN_is_zero(a)) { in ossl_ec_GFp_simple_group_check_discriminant()
292 if (BN_is_zero(b)) in ossl_ec_GFp_simple_group_check_discriminant()
294 } else if (!BN_is_zero(b)) { in ossl_ec_GFp_simple_group_check_discriminant()
311 if (BN_is_zero(a)) in ossl_ec_GFp_simple_group_check_discriminant()
710 if (BN_is_zero(n5)) { in ossl_ec_GFp_simple_add()
711 if (BN_is_zero(n6)) { in ossl_ec_GFp_simple_add()
943 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(point->Y)) in ossl_ec_GFp_simple_invert()
953 return BN_is_zero(point->Z); in ossl_ec_GFp_simple_is_at_infinity()
1244 if (!BN_is_zero(points[0]->Z)) { in ossl_ec_GFp_simple_points_make_affine()
1258 if (!BN_is_zero(points[i]->Z)) { in ossl_ec_GFp_simple_points_make_affine()
[all …]
Decdsa_ossl.c143 } while (BN_is_zero(k)); in ecdsa_sign_setup()
160 } while (BN_is_zero(r)); in ecdsa_sign_setup()
298 if (BN_is_zero(s)) { in ossl_ecdsa_simple_sign_sig()
400 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ossl_ecdsa_simple_verify_sig()
401 BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) || in ossl_ecdsa_simple_verify_sig()
Dec2_oct.c68 if (BN_is_zero(x)) { in ossl_ec_GF2m_simple_set_compressed_coordinates()
190 if ((form != POINT_CONVERSION_UNCOMPRESSED) && !BN_is_zero(x)) { in ossl_ec_GF2m_simple_point2oct()
358 if (BN_is_zero(x)) { in ossl_ec_GF2m_simple_oct2point()
Dec_lib.c372 if (group->field == NULL || BN_is_zero(group->field) in EC_GROUP_set_generator()
383 if (order == NULL || BN_is_zero(order) || BN_is_negative(order) in EC_GROUP_set_generator()
411 if (cofactor != NULL && !BN_is_zero(cofactor)) { in EC_GROUP_set_generator()
450 return !BN_is_zero(order); in EC_GROUP_get_order()
472 return !BN_is_zero(group->cofactor); in EC_GROUP_get_cofactor()
701 if (!BN_is_zero(ac) && !BN_is_zero(bc) && BN_cmp(ac, bc) != 0) in EC_GROUP_cmp()
1634 if (BN_is_negative(p) || BN_is_zero(p)) { in EC_GROUP_new_from_params()
1699 || (BN_is_negative(order) || BN_is_zero(order)) in EC_GROUP_new_from_params()
Dec_mult.c161 if (BN_is_zero(group->order)) { in ossl_ec_scalar_mul_ladder()
165 if (BN_is_zero(group->cofactor)) { in ossl_ec_scalar_mul_ladder()
438 if (!BN_is_zero(group->order) && !BN_is_zero(group->cofactor)) { in ossl_ec_wNAF_mul()
868 if (BN_is_zero(order)) { in ossl_ec_wNAF_precompute_mult()
Dec_check.c99 if (BN_is_zero(order)) { in EC_GROUP_check()
/third_party/openssl/test/testutil/
Dtests.c381 DEFINE_BN_COMPARISONS(eq, ==, BN_is_zero(a))
382 DEFINE_BN_COMPARISONS(ne, !=, !BN_is_zero(a))
383 DEFINE_BN_COMPARISONS(gt, >, !BN_is_negative(a) && !BN_is_zero(a))
384 DEFINE_BN_COMPARISONS(ge, >=, !BN_is_negative(a) || BN_is_zero(a))
385 DEFINE_BN_COMPARISONS(lt, <, BN_is_negative(a) && !BN_is_zero(a))
386 DEFINE_BN_COMPARISONS(le, <=, BN_is_negative(a) || BN_is_zero(a))
/third_party/openssl/crypto/sm2/
Dsm2_sign.c266 if (BN_is_zero(r)) in sm2_sig_gen()
287 if (BN_is_zero(s)) in sm2_sig_gen()
366 if (BN_is_zero(t)) { in sm2_sig_verify()
/third_party/openssl/crypto/asn1/
Dt_pkey.c58 if (BN_is_zero(num)) { in ASN1_bn_print()

123