Home
last modified time | relevance | path

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

12

/external/boringssl/src/crypto/bn/
Dbn_test.cc379 if (!BN_is_zero(c.get())) { in test_add()
425 if (!BN_is_zero(c.get())) { in test_sub()
479 if (!BN_is_zero(d.get())) { in test_div()
494 if (!BN_is_zero(d.get()) || BN_is_negative(d.get())) { in test_div()
506 if (!BN_is_zero(c.get()) || BN_is_negative(c.get())) { in test_div()
537 if (!BN_is_zero(a.get())) { in test_lshift1()
577 if (!BN_is_zero(d.get())) { in test_rshift()
609 if (!BN_is_zero(c.get()) && !BN_abs_is_word(c.get(), 1)) { in test_rshift1()
653 if (!BN_is_zero(d.get())) { in test_lshift()
707 if (!BN_is_zero(d.get()) || !BN_is_zero(e.get())) { in test_mul()
[all …]
Dconvert.c160 if (BN_is_zero(in)) { in BN_bn2bin_padded()
210 if (BN_is_zero(bn)) { in BN_bn2hex()
331 if (!BN_is_zero(ret)) { in bn_x2bn()
379 if (BN_is_zero(t)) { in BN_bn2dec()
387 while (!BN_is_zero(t)) { in BN_bn2dec()
440 if (*orig_in == '-' && !BN_is_zero(*outp)) { in BN_asc2bn()
455 if (BN_is_zero(a) && BIO_write(bp, "0", 1) != 1) { in BN_print()
Dsqrt.c93 if (BN_is_zero(a) || BN_is_one(a)) { in BN_mod_sqrt()
250 if (BN_is_zero(y)) { in BN_mod_sqrt()
317 if (BN_is_zero(t)) /* special case: p = 2^e + 1 */ in BN_mod_sqrt()
322 if (BN_is_zero(t)) { in BN_mod_sqrt()
334 if (BN_is_zero(x)) { in BN_mod_sqrt()
440 if (BN_is_zero(in)) { in BN_sqrt()
Dkronecker.c91 if (BN_is_zero(B)) { in BN_kronecker()
136 if (BN_is_zero(A)) { in BN_kronecker()
Dgcd.c120 while (!BN_is_zero(b)) { in euclid()
286 while (!BN_is_zero(B)) { in BN_mod_inverse()
372 while (!BN_is_zero(B)) { in BN_mod_inverse()
593 while (!BN_is_zero(B)) { in BN_mod_inverse_no_branch()
Dadd.c172 if (BN_is_zero(a)) { in BN_add_word()
180 if (!BN_is_zero(a)) { in BN_add_word()
355 if (BN_is_zero(a)) { in BN_sub_word()
Drandom.c188 if (range->neg || BN_is_zero(range)) { in BN_rand_range()
266 if (BN_is_zero(range)) { in BN_generate_dsa_nonce()
Dbn.c235 if (BN_is_zero(bn)) { in BN_num_bits()
275 if (sign && !BN_is_zero(bn)) { in BN_set_negative()
Dcmp.c186 int BN_is_zero(const BIGNUM *bn) { in BN_is_zero() function
Dexponentiation.c347 r->neg = BN_is_zero(r) ? 0 : m->neg; in BN_div_recp()
467 if (BN_is_zero(val[0])) { in mod_exp_recp()
659 if (BN_is_zero(aa)) { in BN_mod_exp_mont()
1422 if (BN_is_zero(a_mod_m)) { in BN_mod_exp2_mont()
1457 if (BN_is_zero(a_mod_m)) { in BN_mod_exp2_mont()
Dmontgomery.c222 if (!BN_is_zero(Ri)) { in BN_MONT_CTX_set()
261 if (!BN_is_zero(Ri)) { in BN_MONT_CTX_set()
Ddiv.c137 if (BN_is_zero(divisor)) { in BN_div()
368 if (!BN_is_zero(rm)) { in BN_div()
Dshift.c192 if (BN_is_zero(a)) { in BN_rshift1()
Dprime.c543 if (BN_is_zero(A1)) { in BN_is_prime_fasttest_ex()
/external/boringssl/src/crypto/ec/
Dsimple.c315 if (BN_is_zero(a)) { in ec_GFp_simple_group_check_discriminant()
316 if (BN_is_zero(b)) { in ec_GFp_simple_group_check_discriminant()
319 } else if (!BN_is_zero(b)) { in ec_GFp_simple_group_check_discriminant()
334 BN_is_zero(a)) { in ec_GFp_simple_group_check_discriminant()
707 if (BN_is_zero(n5)) { in ec_GFp_simple_add()
708 if (BN_is_zero(n6)) { in ec_GFp_simple_add()
928 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(&point->Y)) { in ec_GFp_simple_invert()
937 return !point->Z_is_one && BN_is_zero(&point->Z); in ec_GFp_simple_is_at_infinity()
1239 if (!BN_is_zero(&points[0]->Z)) { in ec_GFp_simple_points_make_affine()
1256 if (!BN_is_zero(&points[i]->Z)) { in ec_GFp_simple_points_make_affine()
[all …]
Dec_key.c329 if (BN_is_zero(order)) { in EC_KEY_check_key()
454 } while (BN_is_zero(priv_key)); in EC_KEY_generate_key()
Dwnaf.c158 if (BN_is_zero(scalar)) { in compute_wNAF()
723 if (BN_is_zero(order)) { in ec_wNAF_precompute_mult()
Dec.c542 return !BN_is_zero(order); in EC_GROUP_get_order()
551 return !BN_is_zero(&group->cofactor); in EC_GROUP_get_cofactor()
Doct.c417 if (BN_is_zero(y)) { in ec_GFp_simple_set_compressed_coordinates()
/external/boringssl/src/crypto/dsa/
Ddsa_impl.c122 } while (BN_is_zero(&k)); in sign_setup()
260 if (BN_is_zero(r) || BN_is_zero(s)) { in sign()
320 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in verify()
325 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in verify()
417 } while (BN_is_zero(priv_key)); in keygen()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c181 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ECDSA_do_verify()
182 BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) || in ECDSA_do_verify()
293 } while (BN_is_zero(k)); in ecdsa_sign_setup()
322 } while (BN_is_zero(r)); in ecdsa_sign_setup()
427 if (BN_is_zero(s)) { in ECDSA_do_sign_ex()
/external/boringssl/src/crypto/asn1/
Dt_pkey.c73 if (BN_is_zero(num)) in ASN1_bn_print()
Da_int.c419 if (BN_is_negative(bn) && !BN_is_zero(bn)) in BN_to_ASN1_INTEGER()
/external/boringssl/src/crypto/dh/
Ddh_impl.c223 } while (BN_is_zero(priv_key) || BN_is_one(priv_key)); in generate_key()
/external/boringssl/src/include/openssl/
Dbn.h430 OPENSSL_EXPORT int BN_is_zero(const BIGNUM *bn);

12