Home
last modified time | relevance | path

Searched refs:BN_cmp (Results 1 – 25 of 41) sorted by relevance

12

/third_party/openssl/crypto/dh/
Ddh_rfc7919.c53 if (!BN_cmp(dh->p, &_bignum_ffdhe2048_p)) in DH_get_nid()
55 else if (!BN_cmp(dh->p, &_bignum_ffdhe3072_p)) in DH_get_nid()
57 else if (!BN_cmp(dh->p, &_bignum_ffdhe4096_p)) in DH_get_nid()
59 else if (!BN_cmp(dh->p, &_bignum_ffdhe6144_p)) in DH_get_nid()
61 else if (!BN_cmp(dh->p, &_bignum_ffdhe8192_p)) in DH_get_nid()
69 if (q == NULL || !BN_rshift1(q, q) || !BN_cmp(dh->q, q)) in DH_get_nid()
Ddh_check.c59 if (BN_cmp(dh->g, tmp) >= 0) in DH_check_params()
130 if (BN_cmp(dh->g, BN_value_one()) <= 0) in DH_check()
132 else if (BN_cmp(dh->g, dh->p) >= 0) in DH_check()
151 if (dh->j && BN_cmp(dh->j, t1)) in DH_check()
207 if (BN_cmp(pub_key, tmp) <= 0) in DH_check_pub_key()
211 if (BN_cmp(pub_key, tmp) >= 0) in DH_check_pub_key()
Ddh_ameth.c364 if (BN_cmp(a->pkey.dh->p, b->pkey.dh->p) || in dh_cmp_parameters()
365 BN_cmp(a->pkey.dh->g, b->pkey.dh->g)) in dh_cmp_parameters()
368 if (BN_cmp(a->pkey.dh->q, b->pkey.dh->q)) in dh_cmp_parameters()
456 if (BN_cmp(b->pkey.dh->pub_key, a->pkey.dh->pub_key) != 0) in dh_pub_cmp()
/third_party/openssl/crypto/rsa/
Drsa_chk.c97 if (BN_cmp(i, key->n) != 0) { in RSA_check_key_ex()
164 if (BN_cmp(j, key->dmp1) != 0) { in RSA_check_key_ex()
178 if (BN_cmp(j, key->dmq1) != 0) { in RSA_check_key_ex()
188 if (BN_cmp(i, key->iqmp) != 0) { in RSA_check_key_ex()
205 if (BN_cmp(j, pinfo->d) != 0) { in RSA_check_key_ex()
214 if (BN_cmp(i, pinfo->t) != 0) { in RSA_check_key_ex()
Drsa_gen.c184 if (!BN_cmp(prime, prev_prime)) { in rsa_builtin_keygen()
286 if (BN_cmp(rsa->p, rsa->q) < 0) { in rsa_builtin_keygen()
/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…
11 int BN_cmp(const BIGNUM *a, const BIGNUM *b);
22 BN_cmp() compares the numbers I<a> and I<b>. BN_ucmp() compares their
31 BN_cmp() returns -1 if I<a> E<lt> I<b>, 0 if I<a> == I<b> and 1 if
/third_party/openssl/crypto/bn/
Dbn_rand.c144 if (BN_cmp(r, range) >= 0) { in bnrand_range()
147 if (BN_cmp(r, range) >= 0) in bnrand_range()
158 while (BN_cmp(r, range) >= 0); in bnrand_range()
170 while (BN_cmp(r, range) >= 0); in bnrand_range()
Dbn_prime.c165 if (!BN_is_odd(a) || BN_cmp(a, BN_value_one()) <= 0) in BN_is_prime_fasttest_ex()
253 if (BN_cmp(w, a1) == 0) in witness()
261 if (BN_cmp(w, a1) == 0) in witness()
Dbn_mod.c247 if (BN_cmp(r, m) >= 0) in BN_mod_lshift1_quick()
313 if (BN_cmp(r, m) >= 0) { in BN_mod_lshift_quick()
Dbn_sqrt.c350 if (!err && 0 != BN_cmp(x, A)) { in BN_mod_sqrt()
/third_party/openssl/crypto/sm2/
Dsm2_sign.c252 if (BN_cmp(rk, order) == 0) in sm2_sig_gen()
326 if (BN_cmp(r, BN_value_one()) < 0 in sm2_sig_verify()
327 || BN_cmp(s, BN_value_one()) < 0 in sm2_sig_verify()
328 || BN_cmp(order, r) <= 0 in sm2_sig_verify()
329 || BN_cmp(order, s) <= 0) { in sm2_sig_verify()
355 if (BN_cmp(r, t) == 0) in sm2_sig_verify()
/third_party/openssl/test/
Dexptest.c170 if (BN_cmp(r_simple, r_mont) != 0) in test_mod_exp()
172 if (BN_cmp(r_simple, r_mont_const) != 0) in test_mod_exp()
174 if (BN_cmp(r_simple, r_recp) != 0) in test_mod_exp()
Dsrptest.c122 if (BN_cmp(bn, tmp) != 0) in check_bn()
/third_party/openssl/fuzz/
Dbndiv.c95 success = success && BN_cmp(b5, b1) == 0; in FuzzerTestOneInput()
112 BN_cmp(b5, b1)); in FuzzerTestOneInput()
Dbignum.c80 success = BN_cmp(b4, b5) == 0; in FuzzerTestOneInput()
/third_party/openssl/crypto/ec/
Dec_key.c317 if (BN_cmp(eckey->priv_key, order) >= 0) { in ec_key_simple_check_key()
375 if (BN_cmp(x, tx) || BN_cmp(y, ty) in EC_KEY_set_public_key_affine_coordinates()
376 || (BN_cmp(x, key->group->field) >= 0) in EC_KEY_set_public_key_affine_coordinates()
377 || (BN_cmp(y, key->group->field) >= 0)) { in EC_KEY_set_public_key_affine_coordinates()
Dec2_smpl.c324 if (BN_cmp(point->Z, BN_value_one())) { in ec_GF2m_simple_point_get_affine_coordinates()
575 return ((BN_cmp(a->X, b->X) == 0) && BN_cmp(a->Y, b->Y) == 0) ? 0 : 1; in ec_GF2m_simple_cmp()
596 ret = ((BN_cmp(aX, bX) == 0) && BN_cmp(aY, bY) == 0) ? 0 : 1; in ec_GF2m_simple_cmp()
Dec_lib.c618 if (r || BN_cmp(a1, b1) || BN_cmp(a2, b2) || BN_cmp(a3, b3)) in EC_GROUP_cmp()
638 if (BN_cmp(ao, bo) || BN_cmp(ac, bc)) in EC_GROUP_cmp()
Decp_smpl.c183 group->a_is_minus3 = (0 == BN_cmp(tmp_a, group->field)); in ec_GFp_simple_group_set_curve()
1079 return ((BN_cmp(a->X, b->X) == 0) && BN_cmp(a->Y, b->Y) == 0) ? 0 : 1; in ec_GFp_simple_cmp()
1124 if (BN_cmp(tmp1_, tmp2_) != 0) { in ec_GFp_simple_cmp()
1147 if (BN_cmp(tmp1_, tmp2_) != 0) { in ec_GFp_simple_cmp()
Decp_nistp224.c1311 if ((BN_cmp(curve_p, p)) || (BN_cmp(curve_a, a)) || (BN_cmp(curve_b, b))) {
/third_party/openssl/crypto/dsa/
Ddsa_ameth.c308 if (BN_cmp(a->pkey.dsa->p, b->pkey.dsa->p) || in dsa_cmp_parameters()
309 BN_cmp(a->pkey.dsa->q, b->pkey.dsa->q) || in dsa_cmp_parameters()
310 BN_cmp(a->pkey.dsa->g, b->pkey.dsa->g)) in dsa_cmp_parameters()
318 if (BN_cmp(b->pkey.dsa->pub_key, a->pkey.dsa->pub_key) != 0) in dsa_pub_cmp()
Ddsa_gen.c227 if (BN_cmp(p, test) >= 0) { in dsa_builtin_paramgen()
506 if (BN_cmp(p, test) >= 0) { in dsa_builtin_paramgen2()
/third_party/openssl/crypto/srp/
Dsrp_lib.c273 if (BN_cmp(knowngN[i].g, g) == 0 && BN_cmp(knowngN[i].N, N) == 0) in SRP_check_known_gN_param()
/third_party/ffmpeg/libavformat/
Drtmpdh.c146 #define bn_cmp(a, b) BN_cmp(a, b)
149 #define bn_cmp_1(bn) BN_cmp(bn, BN_value_one())
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-x509.c775 m = BN_cmp(dummy[2], dummy[0]) | BN_cmp(dummy[3], dummy[1]); in lws_x509_jwk_privkey_pem()

12