/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/dh/ |
H A 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()
|
H A D | dh_check.c | 59 if (BN_cmp(dh->g, tmp) >= 0) in DH_check_params() 117 if (BN_cmp(dh->g, BN_value_one()) <= 0) in DH_check() 119 else if (BN_cmp(dh->g, dh->p) >= 0) in DH_check() 138 if (dh->j && BN_cmp(dh->j, t1)) in DH_check() 194 if (BN_cmp(pub_key, tmp) <= 0) in DH_check_pub_key() 198 if (BN_cmp(pub_key, tmp) >= 0) in DH_check_pub_key()
|
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
H A D | test_bn.c | 274 if (BN_cmp(a, b) != 0) in test_BN_cmp() 276 if (BN_cmp(b, a) != 0) in test_BN_cmp() 282 if (BN_cmp(a, b) >= 0) in test_BN_cmp() 284 if (BN_cmp(b, a) <= 0) in test_BN_cmp() 289 if (BN_cmp(a, b) <= 0) in test_BN_cmp() 291 if (BN_cmp(b, a) >= 0) in test_BN_cmp() 300 if (BN_cmp(a, b) >= 0) in test_BN_cmp() 302 if (BN_cmp(b, a) <= 0) in test_BN_cmp() 307 if (BN_cmp(a, b) <= 0) in test_BN_cmp() 309 if (BN_cmp(b, a) >= 0) in test_BN_cmp()
|
H A D | bn.h | 52 #define BN_cmp hc_BN_cmp macro 111 int BN_cmp(const BIGNUM *, const BIGNUM *);
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/rsa/ |
H A D | rsa_sp800_56b_check.c | 56 && (BN_cmp(rsa->dmp1, BN_value_one()) > 0) in ossl_rsa_check_crt_components() 57 && (BN_cmp(rsa->dmp1, p1) < 0) in ossl_rsa_check_crt_components() 59 && (BN_cmp(rsa->dmq1, BN_value_one()) > 0) in ossl_rsa_check_crt_components() 60 && (BN_cmp(rsa->dmq1, q1) < 0) in ossl_rsa_check_crt_components() 62 && (BN_cmp(rsa->iqmp, BN_value_one()) > 0) in ossl_rsa_check_crt_components() 63 && (BN_cmp(rsa->iqmp, rsa->p) < 0) in ossl_rsa_check_crt_components() 121 if (BN_cmp(p, low) <= 0) in ossl_rsa_check_prime_factor_range() 207 && (BN_cmp(rsa->d, lcm) < 0) in ossl_rsa_check_private_exponent() 234 return BN_is_odd(e) && BN_cmp(e, BN_value_one()) > 0; in ossl_rsa_check_public_exponent() 360 return BN_cmp(rsa->d, BN_value_one()) >= 0 && BN_cmp(rsa->d, rsa->n) < 0; [all …]
|
H A D | rsa_chk.c | 100 if (BN_cmp(i, key->n) != 0) { in rsa_validate_keypair_multiprime() 170 if (BN_cmp(j, key->dmp1) != 0) { in rsa_validate_keypair_multiprime() 184 if (BN_cmp(j, key->dmq1) != 0) { in rsa_validate_keypair_multiprime() 194 if (BN_cmp(i, key->iqmp) != 0) { in rsa_validate_keypair_multiprime() 211 if (BN_cmp(j, pinfo->d) != 0) { in rsa_validate_keypair_multiprime() 220 if (BN_cmp(i, pinfo->t) != 0) { in rsa_validate_keypair_multiprime()
|
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
H A D | openssldh_link.c | 208 if (BN_cmp(p1, p2) != 0 || BN_cmp(g1, g2) != 0 || in openssldh_compare() 209 BN_cmp(pub_key1, pub_key2) != 0) in openssldh_compare() 218 if (BN_cmp(priv_key1, priv_key2) != 0) { in openssldh_compare() 242 if (BN_cmp(p1, p2) != 0 || BN_cmp(g1, g2) != 0) { in openssldh_paramcompare() 408 if (BN_cmp(g, bn2) == 0 && in openssldh_todns() 409 (BN_cmp(p, bn768) == 0 || BN_cmp(p, bn1024) == 0 || in openssldh_todns() 410 BN_cmp(p, bn1536) == 0)) in openssldh_todns() 427 if (BN_cmp(p, bn768) == 0) { in openssldh_todns() 429 } else if (BN_cmp(p, bn1024) == 0) { in openssldh_todns() 535 if (g != NULL && BN_cmp(g, bn2) != 0) { in openssldh_fromdns()
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/rsa/ |
H A 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()
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ffc/ |
H A D | ffc_key_validate.c | 42 if (BN_cmp(pub_key, tmp) <= 0) in ossl_ffc_validate_public_key_partial() 48 if (BN_cmp(pub_key, tmp) >= 0) in ossl_ffc_validate_public_key_partial() 113 if (BN_cmp(priv, BN_value_one()) < 0) { in ossl_ffc_validate_private_key() 117 if (BN_cmp(priv, upper) >= 0) { in ossl_ffc_validate_private_key()
|
H A D | ffc_dh.c | 121 if (BN_cmp(p, dh_named_groups[i].p) == 0 in ossl_ffc_numbers_to_dh_named_group() 122 && BN_cmp(g, dh_named_groups[i].g) == 0 in ossl_ffc_numbers_to_dh_named_group() 124 && (q == NULL || BN_cmp(q, dh_named_groups[i].q) == 0)) in ossl_ffc_numbers_to_dh_named_group()
|
H A D | ffc_params_validate.c | 33 if (BN_cmp(g, BN_value_one()) <= 0 || BN_cmp(g, p) >= 0) { in ossl_ffc_params_validate_unverifiable_g() 45 if (BN_cmp(tmp, BN_value_one()) != 0) { in ossl_ffc_params_validate_unverifiable_g()
|
H A D | ffc_key_generate.c | 44 m = (BN_cmp(two_powN, params->q) > 0) ? params->q : two_powN; in ossl_ffc_generate_private_key() 52 if (BN_cmp(priv, m) < 0) in ossl_ffc_generate_private_key()
|
H A D | ffc_params_generate.c | 111 if (BN_cmp(g, BN_value_one()) > 0) in generate_unverifiable_g() 115 if (!BN_add_word(hbn, 1) || BN_cmp(hbn, pm1) >= 0) in generate_unverifiable_g() 181 if (BN_cmp(g, BN_value_one()) > 0) { in generate_canonical_g() 286 if (BN_cmp(p, test) >= 0) { in generate_p() 687 if (verify && (BN_cmp(q, params->q) != 0)) { in ossl_ffc_params_FIPS186_4_gen_verify() 719 if (verify && (pcounter != counter || (BN_cmp(p, params->p) != 0))) in ossl_ffc_params_FIPS186_4_gen_verify() 754 if (verify && BN_cmp(g, params->g) != 0) { in ossl_ffc_params_FIPS186_4_gen_verify() 969 if (BN_cmp(p, params->p) != 0) { in ossl_ffc_params_FIPS186_2_gen_verify()
|
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/ |
H A 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
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/ |
H A 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
|
/netbsd-src/crypto/external/bsd/netpgp/dist/src/librsa/ |
H A D | rsa.c | 83 if (BN_cmp(decbn, rsa->n) >= 0) { in lowlevel_rsa_private_encrypt() 123 if (BN_cmp(decbn, rsa->n) >= 0) { in lowlevel_rsa_public_encrypt() 161 if (BN_cmp(rsa->n, rsa->e) <= 0) { in lowlevel_rsa_private_decrypt() 173 if (BN_cmp(encbn, rsa->n) >= 0) { in lowlevel_rsa_private_decrypt() 205 if (BN_cmp(rsa->n, rsa->e) <= 0) { in lowlevel_rsa_public_decrypt() 228 if (BN_cmp(encbn, rsa->n) >= 0) { in lowlevel_rsa_public_decrypt() 448 BN_cmp(sig->r, dsa->q) >= 0) { in dsa_do_verify() 453 BN_cmp(sig->s, dsa->q) >= 0) { in dsa_do_verify() 477 ret = (BN_cmp(M, sig->r) == 0); in dsa_do_verify() 573 if (BN_cmp(calcn, rsa->n) != 0) { in RSA_check_key()
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/dh/ |
H A D | dh_check.c | 92 if (BN_cmp(dh->params.g, tmp) >= 0) in DH_check_params() 182 if (BN_cmp(dh->params.g, BN_value_one()) <= 0) in DH_check() 184 else if (BN_cmp(dh->params.g, dh->params.p) >= 0) in DH_check() 204 && BN_cmp(dh->params.j, t1)) in DH_check() 316 if (BN_cmp(two_powN, dh->params.q) < 0) in ossl_dh_check_priv_key() 355 ret = BN_cmp(pub_key, dh->pub_key) == 0; in ossl_dh_check_pairwise()
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/bn/ |
H A 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()
|
/netbsd-src/external/mpl/bind/dist/lib/dns/ |
H A D | openssldh_link.c |
|
/netbsd-src/crypto/external/bsd/openssl/dist/test/ |
H A D | exptest.c | 208 if (BN_cmp(r_simple, r_mont) != 0) in test_mod_exp() 210 if (BN_cmp(r_simple, r_mont_const) != 0) in test_mod_exp() 212 if (BN_cmp(r_simple, r_recp) != 0) in test_mod_exp() 296 if (BN_cmp(r_simple1, r_mont_const_x2_1) != 0) in test_mod_exp_x2() 298 if (BN_cmp(r_simple2, r_mont_const_x2_2) != 0) in test_mod_exp_x2()
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/sm2/ |
H A D | sm2_key.c | 41 if (BN_cmp(priv_key, BN_value_one()) < 0 in ossl_sm2_key_private_check() 42 || BN_cmp(priv_key, max) >= 0) { in ossl_sm2_key_private_check()
|
H A D | sm2_sign.c | 281 if (BN_cmp(rk, order) == 0) in sm2_sig_gen() 360 if (BN_cmp(r, BN_value_one()) < 0 in sm2_sig_verify() 361 || BN_cmp(s, BN_value_one()) < 0 in sm2_sig_verify() 362 || BN_cmp(order, r) <= 0 in sm2_sig_verify() 363 || BN_cmp(order, s) <= 0) { in sm2_sig_verify() 389 if (BN_cmp(r, t) == 0) in sm2_sig_verify()
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/sm2/ |
H A 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()
|
/netbsd-src/tests/crypto/libcrypto/bn/div/ |
H A D | divtest.c | 42 else if (BN_cmp(c, C) != 0 || BN_cmp(c, C) != 0) in main()
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/bn/ |
H A D | bn_rand.c | 171 if (BN_cmp(r, range) >= 0) { in bnrand_range() 174 if (BN_cmp(r, range) >= 0) in bnrand_range() 185 while (BN_cmp(r, range) >= 0); in bnrand_range() 198 while (BN_cmp(r, range) >= 0); in bnrand_range()
|