Home
last modified time | relevance | path

Searched refs:BN_is_zero (Results 1 – 25 of 58) 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.c127 } while (BN_is_zero(blind)); in dsa_do_sign()
160 if (BN_is_zero(ret->r) || BN_is_zero(ret->s)) in dsa_do_sign()
198 if (BN_is_zero(dsa->p) || BN_is_zero(dsa->q) || BN_is_zero(dsa->g)) { in dsa_sign_setup()
237 } while (BN_is_zero(k)); in dsa_sign_setup()
332 if (BN_is_zero(r) || BN_is_negative(r) || in dsa_do_verify()
337 if (BN_is_zero(s) || BN_is_negative(s) || in dsa_do_verify()
Ddsa_key.c43 while (BN_is_zero(priv_key)) ; in dsa_builtin_keygen()
/third_party/openssl/crypto/bn/
Dbn_sqrt.c46 if (BN_is_zero(a) || BN_is_one(a)) { in BN_mod_sqrt()
191 if (BN_is_zero(y)) in BN_mod_sqrt()
256 if (BN_is_zero(t)) { /* special case: p = 2^e + 1 */ in BN_mod_sqrt()
259 if (BN_is_zero(t)) { in BN_mod_sqrt()
269 if (BN_is_zero(x)) { in BN_mod_sqrt()
Dbn_gcd.c81 while (!BN_is_zero(B)) { in bn_mod_inverse_no_branch()
205 if (BN_abs_is_word(n, 1) || BN_is_zero(n)) { in int_bn_mod_inverse()
267 while (!BN_is_zero(B)) { in int_bn_mod_inverse()
355 while (!BN_is_zero(B)) { in int_bn_mod_inverse()
556 if (BN_is_zero(in_b)) { in BN_gcd()
561 if (BN_is_zero(in_a)) { in BN_gcd()
Dbn_print.c26 if (BN_is_zero(a)) in BN_bn2hex()
83 if (BN_is_zero(t)) { in BN_bn2dec()
90 while (!BN_is_zero(t)) { in BN_bn2dec()
311 if (BN_is_zero(a) && BIO_write(bp, "0", 1) != 1) in BN_print()
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_gf2m.c572 if (BN_is_zero(u)) in BN_GF2m_mod_inv_vartime()
583 if (BN_is_zero(u)) in BN_GF2m_mod_inv_vartime()
738 } while (BN_is_zero(b)); in BN_GF2m_mod_inv()
860 if (BN_is_zero(b)) in BN_GF2m_mod_exp_arr()
1007 if (BN_is_zero(a)) { in BN_GF2m_mod_solve_quad_arr()
1054 } while (BN_is_zero(w) && (count < MAX_ITERATIONS)); in BN_GF2m_mod_solve_quad_arr()
1055 if (BN_is_zero(w)) { in BN_GF2m_mod_solve_quad_arr()
1121 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_intern.c30 if (BN_is_zero(scalar)) { in bn_compute_wNAF()
/third_party/openssl/test/testutil/
Dtests.c357 DEFINE_BN_COMPARISONS(eq, ==, BN_is_zero(a))
358 DEFINE_BN_COMPARISONS(ne, !=, !BN_is_zero(a))
359 DEFINE_BN_COMPARISONS(gt, >, !BN_is_negative(a) && !BN_is_zero(a))
360 DEFINE_BN_COMPARISONS(ge, >=, !BN_is_negative(a) || BN_is_zero(a))
361 DEFINE_BN_COMPARISONS(lt, <, BN_is_negative(a) && !BN_is_zero(a))
362 DEFINE_BN_COMPARISONS(le, <=, BN_is_negative(a) || BN_is_zero(a))
/third_party/openssl/crypto/ec/
Dec2_smpl.c201 if (BN_is_zero(b)) in ec_GF2m_simple_group_check_discriminant()
421 if (BN_GF2m_cmp(y0, y1) || BN_is_zero(x1)) { in ec_GF2m_simple_add()
472 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(point->Y)) in ec_GF2m_simple_invert()
485 return BN_is_zero(point->Z); in ec_GF2m_simple_is_at_infinity()
545 ret = BN_is_zero(lh); in ec_GF2m_simple_is_on_curve()
704 } while (BN_is_zero(s->Z)); in ec_GF2m_simple_ladder_pre()
719 } while (BN_is_zero(r->Y)); in ec_GF2m_simple_ladder_pre()
779 if (BN_is_zero(r->Z)) in ec_GF2m_simple_ladder_post()
782 if (BN_is_zero(s->Z)) { in ec_GF2m_simple_ladder_post()
858 if (num > 1 || BN_is_zero(group->order) || BN_is_zero(group->cofactor)) in ec_GF2m_simple_points_mul()
Decdsa_ossl.c104 } while (BN_is_zero(k)); in ecdsa_sign_setup()
121 } while (BN_is_zero(r)); in ecdsa_sign_setup()
259 if (BN_is_zero(s)) { in ossl_ecdsa_sign_sig()
361 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ossl_ecdsa_verify_sig()
362 BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) || in ossl_ecdsa_verify_sig()
Decp_smpl.c284 if (BN_is_zero(a)) { in ec_GFp_simple_group_check_discriminant()
285 if (BN_is_zero(b)) in ec_GFp_simple_group_check_discriminant()
287 } else if (!BN_is_zero(b)) { in ec_GFp_simple_group_check_discriminant()
304 if (BN_is_zero(a)) in ec_GFp_simple_group_check_discriminant()
706 if (BN_is_zero(n5)) { in ec_GFp_simple_add()
707 if (BN_is_zero(n6)) { in ec_GFp_simple_add()
938 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(point->Y)) in ec_GFp_simple_invert()
947 return BN_is_zero(point->Z); in ec_GFp_simple_is_at_infinity()
1238 if (!BN_is_zero(points[0]->Z)) { in ec_GFp_simple_points_make_affine()
1252 if (!BN_is_zero(points[i]->Z)) { in ec_GFp_simple_points_make_affine()
[all …]
Dec2_oct.c63 if (BN_is_zero(x)) { in ec_GF2m_simple_set_compressed_coordinates()
173 if ((form != POINT_CONVERSION_UNCOMPRESSED) && !BN_is_zero(x)) { in ec_GF2m_simple_point2oct()
333 if (BN_is_zero(x)) { in ec_GF2m_simple_oct2point()
Dec_mult.c155 if (BN_is_zero(group->order)) { in ec_scalar_mul_ladder()
159 if (BN_is_zero(group->cofactor)) { in ec_scalar_mul_ladder()
431 if (!BN_is_zero(group->order) && !BN_is_zero(group->cofactor)) { in ec_wNAF_mul()
854 if (BN_is_zero(order)) { in ec_wNAF_precompute_mult()
Dec_check.c54 if (BN_is_zero(order)) { in EC_GROUP_check()
Dec_key.c224 while (BN_is_zero(priv_key)) ; in ec_key_simple_generate_key()
300 if (BN_is_zero(order)) { in ec_key_simple_check_key()
436 if (order == NULL || BN_is_zero(order)) in EC_KEY_set_private_key()
Dec_lib.c339 if (group->field == NULL || BN_is_zero(group->field) in EC_GROUP_set_generator()
350 if (order == NULL || BN_is_zero(order) || BN_is_negative(order) in EC_GROUP_set_generator()
378 if (cofactor != NULL && !BN_is_zero(cofactor)) { in EC_GROUP_set_generator()
417 return !BN_is_zero(order); in EC_GROUP_get_order()
439 return !BN_is_zero(group->cofactor); in EC_GROUP_get_cofactor()
/third_party/openssl/crypto/asn1/
Dt_pkey.c58 if (BN_is_zero(num)) { in ASN1_bn_print()

123