Home
last modified time | relevance | path

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

12

/external/boringssl/src/crypto/bn/
Dbn_test.cc371 if (!BN_is_zero(c.get())) { in test_add()
417 if (!BN_is_zero(c.get())) { in test_sub()
481 if (!BN_is_zero(d.get())) { in test_div()
496 if (!BN_is_zero(d.get()) || BN_is_negative(d.get())) { in test_div()
508 if (!BN_is_zero(c.get()) || BN_is_negative(c.get())) { in test_div()
539 if (!BN_is_zero(a.get())) { in test_lshift1()
579 if (!BN_is_zero(d.get())) { in test_rshift()
611 if (!BN_is_zero(c.get()) && !BN_abs_is_word(c.get(), 1)) { in test_rshift1()
655 if (!BN_is_zero(d.get())) { in test_lshift()
709 if (!BN_is_zero(d.get()) || !BN_is_zero(e.get())) { in test_mul()
[all …]
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()
Dconvert.c167 if (BN_is_zero(in)) { in BN_bn2bin_padded()
222 if (BN_is_zero(bn)) { in BN_bn2hex()
355 if (!BN_is_zero(ret)) { in bn_x2bn()
403 if (BN_is_zero(t)) { in BN_bn2dec()
411 while (!BN_is_zero(t)) { in BN_bn2dec()
464 if (*orig_in == '-' && !BN_is_zero(*outp)) { in BN_asc2bn()
479 if (BN_is_zero(a) && BIO_write(bp, "0", 1) != 1) { in BN_print()
Dkronecker.c91 if (BN_is_zero(B)) { in BN_kronecker()
136 if (BN_is_zero(A)) { in BN_kronecker()
Dadd.c174 if (BN_is_zero(a)) { in BN_add_word()
182 if (!BN_is_zero(a)) { in BN_add_word()
338 if (BN_is_zero(a)) { in BN_sub_word()
Dgcd.c120 while (!BN_is_zero(b)) { in euclid()
289 while (!BN_is_zero(B)) { in BN_mod_inverse_ex()
375 while (!BN_is_zero(B)) { in BN_mod_inverse_ex()
606 while (!BN_is_zero(B)) { in BN_mod_inverse_no_branch()
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.c234 if (BN_is_zero(bn)) { in BN_num_bits()
274 if (sign && !BN_is_zero(bn)) { in BN_set_negative()
Dmontgomery.c171 if (BN_is_zero(mod)) { in BN_MONT_CTX_set()
217 if (!BN_is_zero(Ri)) { in BN_MONT_CTX_set()
256 if (!BN_is_zero(Ri)) { in BN_MONT_CTX_set()
Dcmp.c186 int BN_is_zero(const BIGNUM *bn) { in BN_is_zero() function
Dexponentiation.c358 r->neg = BN_is_zero(r) ? 0 : m->neg; in BN_div_recp()
482 if (BN_is_zero(val[0])) { in mod_exp_recp()
673 if (BN_is_zero(aa)) { in BN_mod_exp_mont()
1415 if (BN_is_zero(a_mod_m)) { in BN_mod_exp2_mont()
1450 if (BN_is_zero(a_mod_m)) { in BN_mod_exp2_mont()
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()
/external/boringssl/src/crypto/ec/
Dsimple.c270 if (BN_is_zero(a)) { in ec_GFp_simple_group_check_discriminant()
271 if (BN_is_zero(b)) { in ec_GFp_simple_group_check_discriminant()
274 } else if (!BN_is_zero(b)) { in ec_GFp_simple_group_check_discriminant()
289 BN_is_zero(a)) { in ec_GFp_simple_group_check_discriminant()
659 if (BN_is_zero(n5)) { in ec_GFp_simple_add()
660 if (BN_is_zero(n6)) { in ec_GFp_simple_add()
880 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(&point->Y)) { in ec_GFp_simple_invert()
889 return !point->Z_is_one && BN_is_zero(&point->Z); in ec_GFp_simple_is_at_infinity()
1191 if (!BN_is_zero(&points[0]->Z)) { in ec_GFp_simple_points_make_affine()
1208 if (!BN_is_zero(&points[i]->Z)) { in ec_GFp_simple_points_make_affine()
[all …]
Dec.c617 assert(!BN_is_zero(&group->order)); in EC_GROUP_get0_order()
634 return !BN_is_zero(&group->cofactor); in EC_GROUP_get_cofactor()
Dwnaf.c101 if (BN_is_zero(scalar)) { in compute_wNAF()
Doct.c371 if (BN_is_zero(y)) { in ec_GFp_simple_set_compressed_coordinates()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c180 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ECDSA_do_verify()
181 BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) || in ECDSA_do_verify()
288 } while (BN_is_zero(k)); in ecdsa_sign_setup()
317 } while (BN_is_zero(r)); in ecdsa_sign_setup()
434 if (BN_is_zero(s)) { in ECDSA_do_sign_ex()
/external/boringssl/src/crypto/dsa/
Ddsa.c419 } while (BN_is_zero(priv_key)); in DSA_generate_key()
541 if (BN_is_zero(r) || BN_is_zero(s)) { in DSA_do_sign()
614 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in DSA_do_check_signature()
619 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in DSA_do_check_signature()
796 } while (BN_is_zero(&k)); in DSA_sign_setup()
/external/boringssl/src/crypto/asn1/
Dt_pkey.c73 if (BN_is_zero(num)) in ASN1_bn_print()
/external/tpm2/
DRSAKeySieve.c281 if(BN_is_zero(bnB)) in MillerRabin()
861 if(!BN_is_zero(bnQ)) in _cpri__GenerateKeyRSA()
881 if(BN_is_zero(bnQ)) in _cpri__GenerateKeyRSA()
908 || BN_is_zero(bnT)) in _cpri__GenerateKeyRSA()
DCpriECC.c864 if(BN_is_zero(bnR)) in SignEcdsa()
919 if(!BN_is_zero(bnD)) in SignEcdsa()
1138 if(BN_is_zero(bnR)) in SchnorrEcc()
1287 || BN_is_zero(bnK)) in SignSM2()
1307 if(BN_is_zero(bnR) || BN_ucmp(bnT, bnN) == 0) in SignSM2()
1331 if(BN_is_zero(bnS)) in SignSM2()
1689 if(BN_is_zero(bnT)) { in ValidateSignatureSM2Dsa()
DCpriRSA.c1284 if(!BN_is_zero(bnQ)) in _cpri__GenerateKeyRSA()
1311 if(BN_is_zero(bnQ)) in _cpri__GenerateKeyRSA()
1338 if(BN_mod_inverse(bnT, bnE, bnT, context) == NULL || BN_is_zero(bnT)) in _cpri__GenerateKeyRSA()
/external/boringssl/src/crypto/dh/
Ddh.c284 } while (BN_is_zero(priv_key) || BN_is_one(priv_key)); in DH_generate_key()
/external/boringssl/src/ssl/
Dssl_ecdh.c66 } while (BN_is_zero(private_key)); in ssl_ec_point_generate_keypair()

12