/third_party/openssl/crypto/dh/ |
D | dh_rfc7919.c | 53 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()
|
D | dh_check.c | 59 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()
|
D | dh_ameth.c | 364 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/ |
D | rsa_chk.c | 97 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()
|
D | rsa_gen.c | 184 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/ |
D | BN_cmp.pod | 5 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/ |
D | bn_rand.c | 144 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()
|
D | bn_prime.c | 165 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()
|
D | bn_mod.c | 247 if (BN_cmp(r, m) >= 0) in BN_mod_lshift1_quick() 313 if (BN_cmp(r, m) >= 0) { in BN_mod_lshift_quick()
|
D | bn_sqrt.c | 350 if (!err && 0 != BN_cmp(x, A)) { in BN_mod_sqrt()
|
/third_party/openssl/crypto/sm2/ |
D | sm2_sign.c | 252 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/ |
D | exptest.c | 170 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()
|
D | srptest.c | 122 if (BN_cmp(bn, tmp) != 0) in check_bn()
|
/third_party/openssl/fuzz/ |
D | bndiv.c | 95 success = success && BN_cmp(b5, b1) == 0; in FuzzerTestOneInput() 112 BN_cmp(b5, b1)); in FuzzerTestOneInput()
|
D | bignum.c | 80 success = BN_cmp(b4, b5) == 0; in FuzzerTestOneInput()
|
/third_party/openssl/crypto/ec/ |
D | ec_key.c | 317 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()
|
D | ec2_smpl.c | 324 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()
|
D | ec_lib.c | 618 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()
|
D | ecp_smpl.c | 183 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()
|
D | ecp_nistp224.c | 1311 if ((BN_cmp(curve_p, p)) || (BN_cmp(curve_a, a)) || (BN_cmp(curve_b, b))) {
|
/third_party/openssl/crypto/dsa/ |
D | dsa_ameth.c | 308 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()
|
D | dsa_gen.c | 227 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/ |
D | srp_lib.c | 273 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/ |
D | rtmpdh.c | 146 #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/ |
D | openssl-x509.c | 775 m = BN_cmp(dummy[2], dummy[0]) | BN_cmp(dummy[3], dummy[1]); in lws_x509_jwk_privkey_pem()
|