Home
last modified time | relevance | path

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

12

/freebsd-13.1/crypto/openssl/crypto/dh/
H A 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()
H A Ddh_check.c59 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()
H A 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()
/freebsd-13.1/crypto/openssl/crypto/rsa/
H A 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()
H A 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()
/freebsd-13.1/crypto/openssl/doc/man3/
H A 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
/freebsd-13.1/crypto/openssl/crypto/bn/
H A 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()
H A 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()
H A 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()
H A Dbn_sqrt.c350 if (!err && 0 != BN_cmp(x, A)) { in BN_mod_sqrt()
/freebsd-13.1/crypto/openssl/crypto/sm2/
H A 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()
/freebsd-13.1/crypto/openssh/
H A Ddh.c145 if (BN_cmp(dhg->g, BN_value_one()) <= 0) { in parse_prime()
250 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */ in dh_pub_is_valid()
260 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */ in dh_pub_is_valid()
/freebsd-13.1/crypto/openssl/crypto/ec/
H A 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()
H A 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()
H A 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()
H A 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()
H A Decp_nistp224.c1311 if ((BN_cmp(curve_p, p)) || (BN_cmp(curve_a, a)) || (BN_cmp(curve_b, b))) {
/freebsd-13.1/crypto/openssl/crypto/dsa/
H A 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()
H A Ddsa_gen.c227 if (BN_cmp(p, test) >= 0) { in dsa_builtin_paramgen()
506 if (BN_cmp(p, test) >= 0) { in dsa_builtin_paramgen2()
/freebsd-13.1/tools/tools/crypto/
H A Dcryptokeytest.c212 if (BN_cmp(a, c) > 0) { in testit()
223 if (BN_cmp(r1, r2) != 0) { in testit()
/freebsd-13.1/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_crypto.c268 ASSERT_INT_EQ(BN_cmp(bn_x, bn), 0); in sshbuf_getput_crypto_tests()
269 ASSERT_INT_EQ(BN_cmp(bn_y, bn2), 0); in sshbuf_getput_crypto_tests()
/freebsd-13.1/crypto/openssl/crypto/srp/
H A Dsrp_lib.c273 if (BN_cmp(knowngN[i].g, g) == 0 && BN_cmp(knowngN[i].N, N) == 0) in SRP_check_known_gN_param()
/freebsd-13.1/usr.bin/factor/
H A Dfactor.c211 if (BN_cmp(bnfact, val) > 0 || in pr_fact()
/freebsd-13.1/contrib/ntp/util/
H A Dntp-keygen.c1224 temp = BN_cmp(u, v); in gen_iffkey()
1424 temp = BN_cmp(y, g); in gen_gqkey()
1590 if (BN_cmp(s1[i], s1[j]) == 0) in gen_mvkey()
1629 if (BN_cmp(u, s1[i]) == 0) in gen_mvkey()
/freebsd-13.1/usr.bin/dc/
H A Dinout.c379 while (BN_cmp(mult, stop) < 0) { in printnumber()

12