Home
last modified time | relevance | path

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

12

/external/openssl/crypto/bn/
Dbntest.c349 if(!BN_is_zero(&c)) in test_add()
400 if(!BN_is_zero(&c)) in test_sub()
462 if(!BN_is_zero(&d)) in test_div()
537 if(!BN_is_zero(&b)) in test_div_word()
601 if(!BN_is_zero(&d)) in test_div_recp()
662 if(!BN_is_zero(&d) || !BN_is_zero(&e)) in test_mul()
706 if(!BN_is_zero(&d) || !BN_is_zero(&e)) in test_sqr()
779 if(!BN_is_zero(&d)) in test_mont()
828 if(!BN_is_zero(e)) in test_mod()
879 if ((a->neg ^ b->neg) && !BN_is_zero(e)) in test_mod_mul()
[all …]
Dbn_sqrt.c98 if (BN_is_zero(a) || BN_is_one(a)) in BN_mod_sqrt()
227 if (BN_is_zero(y)) in BN_mod_sqrt()
287 if (BN_is_zero(t)) /* special case: p = 2^e + 1 */ in BN_mod_sqrt()
290 if (BN_is_zero(t)) in BN_mod_sqrt()
303 if (BN_is_zero(x)) in BN_mod_sqrt()
Dbn_print.c82 if (BN_is_zero(a)) *(p++)='0'; in BN_bn2hex()
130 if (BN_is_zero(t)) in BN_bn2dec()
141 while (!BN_is_zero(t)) in BN_bn2dec()
340 if (BN_is_zero(a) && (BIO_write(bp,"0",1) != 1)) goto end; in BN_print()
Dbn_word.c137 if(BN_is_zero(a)) return BN_set_word(a, w); in BN_add_word()
143 if (!BN_is_zero(a)) in BN_add_word()
181 if(BN_is_zero(a)) in BN_sub_word()
Dbn_kron.c98 if (BN_is_zero(B)) in BN_kronecker()
148 if (BN_is_zero(A)) in BN_kronecker()
Dbn_div.c76 if (BN_is_zero(d))
120 rem->neg=BN_is_zero(rem)?0:m->neg;
211 if (BN_is_zero(divisor)) in BN_div()
410 if (!BN_is_zero(rm)) in BN_div()
440 if (BN_is_zero(divisor)) in BN_div_no_branch()
637 if (!BN_is_zero(rm)) in BN_div_no_branch()
Dbn_gcd.c156 while (!BN_is_zero(b)) in euclid()
264 while (!BN_is_zero(B)) in BN_mod_inverse()
345 while (!BN_is_zero(B)) in BN_mod_inverse()
557 while (!BN_is_zero(B)) in BN_mod_inverse_no_branch()
Dbn_exp2.c180 if (BN_is_zero(a_mod_m)) in BN_mod_exp2_mont()
214 if (BN_is_zero(a_mod_m)) in BN_mod_exp2_mont()
Dbn_gf2m.c542 if (BN_is_zero(u)) goto err; in BN_GF2m_mod_inv()
548 if (BN_is_zero(u)) goto err; in BN_GF2m_mod_inv()
744 if (BN_is_zero(b)) in BN_GF2m_mod_exp_arr()
884 if (BN_is_zero(a)) in BN_GF2m_mod_solve_quad_arr()
924 } while (BN_is_zero(w) && (count < MAX_ITERATIONS)); in BN_GF2m_mod_solve_quad_arr()
925 if (BN_is_zero(w)) in BN_GF2m_mod_solve_quad_arr()
989 if (BN_is_zero(a)) in BN_GF2m_poly2arr()
Ddivtest.c31 if (BN_is_zero(b)) continue; in main()
Dbn_rand.c236 if (range->neg || BN_is_zero(range)) in bn_rand_range()
Dbn_shift.c107 if (BN_is_zero(a)) in BN_rshift1()
Dbn_exp.c283 if (BN_is_zero(val[0])) in BN_mod_exp_recp()
429 if (BN_is_zero(aa)) in BN_mod_exp_mont()
906 if (BN_is_zero(val[0])) in BN_mod_exp_simple()
Dbn_recp.c202 r->neg=BN_is_zero(r)?0:m->neg; in BN_div_recp()
Dbn_mont.c452 if (!BN_is_zero(Ri)) in BN_MONT_CTX_set()
482 if (!BN_is_zero(Ri)) in BN_MONT_CTX_set()
/external/openssl/crypto/ecdsa/
Decs_ossl.c145 while (BN_is_zero(k)); in ecdsa_sign_setup()
185 while (BN_is_zero(r)); in ecdsa_sign_setup()
315 if (BN_is_zero(s)) in ecdsa_do_sign()
393 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ecdsa_do_verify()
394 BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) || in ecdsa_do_verify()
/external/openssl/crypto/ec/
Decp_smpl.c318 if (BN_is_zero(a)) in ec_GFp_simple_group_check_discriminant()
320 if (BN_is_zero(b)) goto err; in ec_GFp_simple_group_check_discriminant()
322 else if (!BN_is_zero(b)) in ec_GFp_simple_group_check_discriminant()
334 if (BN_is_zero(a)) goto err; in ec_GFp_simple_group_check_discriminant()
732 if (BN_is_zero(y)) in ec_GFp_simple_set_compressed_coordinates()
1088 if (BN_is_zero(n5)) in ec_GFp_simple_add()
1090 if (BN_is_zero(n6)) in ec_GFp_simple_add()
1285 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(&point->Y)) in ec_GFp_simple_invert()
1295 return BN_is_zero(&point->Z); in ec_GFp_simple_is_at_infinity()
1609 if ((heap[2*i + 1] == NULL) || BN_is_zero(heap[2*i + 1])) in ec_GFp_simple_points_make_affine()
[all …]
Dec2_smpl.c281 if (BN_is_zero(b)) goto err; in ec_GF2m_simple_group_check_discriminant()
451 if (BN_is_zero(x)) in ec_GF2m_simple_set_compressed_coordinates()
561 if ((form != POINT_CONVERSION_UNCOMPRESSED) && !BN_is_zero(x)) in ec_GF2m_simple_point2oct()
813 if (BN_GF2m_cmp(y0, y1) || BN_is_zero(x1)) in ec_GF2m_simple_add()
855 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(&point->Y)) in ec_GF2m_simple_invert()
867 return BN_is_zero(&point->Z); in ec_GF2m_simple_is_at_infinity()
916 ret = BN_is_zero(lh); in ec_GF2m_simple_is_on_curve()
Dec2_mult.c156 if (BN_is_zero(z1)) in gf2m_Mxy()
163 if (BN_is_zero(z2)) in gf2m_Mxy()
229 if ((scalar == NULL) || BN_is_zero(scalar) || (point == NULL) || in ec_GF2m_montgomery_point_multiply()
Dec_check.c100 if (BN_is_zero(order)) in EC_GROUP_check()
Dec_key.c264 while (BN_is_zero(priv_key)); in EC_KEY_generate_key()
327 if (BN_is_zero(order)) in EC_KEY_check_key()
/external/openssl/crypto/dsa/
Ddsa_ossl.c229 while (BN_is_zero(&k)); in dsa_sign_setup()
325 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in dsa_do_verify()
331 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in dsa_do_verify()
Ddsa_key.c93 while (BN_is_zero(priv_key)); in dsa_builtin_keygen()
/external/openssl/crypto/asn1/
Dt_pkey.c75 if (BN_is_zero(num)) in ASN1_bn_print()
/external/openssl/crypto/jpake/
Djpake.c174 OPENSSL_assert(!BN_is_zero(p->zkpx.gr)); in zkp_hash()
291 if(BN_is_negative(gx) || BN_is_zero(gx) || BN_cmp(gx, ctx->p.p) >= 0) in is_legal()

12