Home
last modified time | relevance | path

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

123

/openssl-master/crypto/rsa/
A Drsa_sp800_56b_check.c56 && (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()
354 return BN_cmp(rsa->d, BN_value_one()) >= 0 && BN_cmp(rsa->d, rsa->n) < 0;
390 if (BN_cmp(efixed, rsa->e) != 0) {
[all …]
A Drsa_chk.c100 if (BN_cmp(i, key->n) != 0) { in rsa_validate_keypair_multiprime()
166 if (BN_cmp(j, key->dmp1) != 0) { in rsa_validate_keypair_multiprime()
180 if (BN_cmp(j, key->dmq1) != 0) { in rsa_validate_keypair_multiprime()
190 if (BN_cmp(i, key->iqmp) != 0) { in rsa_validate_keypair_multiprime()
207 if (BN_cmp(j, pinfo->d) != 0) { in rsa_validate_keypair_multiprime()
216 if (BN_cmp(i, pinfo->t) != 0) { in rsa_validate_keypair_multiprime()
/openssl-master/crypto/ffc/
A Dffc_key_validate.c37 if (BN_cmp(pub_key, tmp) <= 0) { in ossl_ffc_validate_public_key_partial()
45 if (BN_cmp(pub_key, tmp) >= 0) { in ossl_ffc_validate_public_key_partial()
110 if (BN_cmp(priv, BN_value_one()) < 0) { in ossl_ffc_validate_private_key()
114 if (BN_cmp(priv, upper) >= 0) { in ossl_ffc_validate_private_key()
A Dffc_key_generate.c44 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()
A Dffc_dh.c113 if (BN_cmp(p, dh_named_groups[i].p) == 0 in ossl_ffc_numbers_to_dh_named_group()
114 && BN_cmp(g, dh_named_groups[i].g) == 0 in ossl_ffc_numbers_to_dh_named_group()
116 && (q == NULL || BN_cmp(q, dh_named_groups[i].q) == 0)) in ossl_ffc_numbers_to_dh_named_group()
A Dffc_params_validate.c33 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()
A Dffc_params_generate.c111 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()
A Dffc_params.c205 return BN_cmp(a->p, b->p) == 0 in ossl_ffc_params_cmp()
206 && BN_cmp(a->g, b->g) == 0 in ossl_ffc_params_cmp()
207 && (ignore_q || BN_cmp(a->q, b->q) == 0); /* Note: q may be NULL */ in ossl_ffc_params_cmp()
/openssl-master/doc/man3/
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
/openssl-master/crypto/dh/
A Ddh_check.c92 if (BN_cmp(dh->params.g, tmp) >= 0) in DH_check_params()
168 if (BN_cmp(dh->params.g, BN_value_one()) <= 0) in DH_check()
170 else if (BN_cmp(dh->params.g, dh->params.p) >= 0) in DH_check()
190 && BN_cmp(dh->params.j, t1)) in DH_check()
268 if (BN_cmp(two_powN, dh->params.q) < 0) in ossl_dh_check_priv_key()
307 ret = BN_cmp(pub_key, dh->pub_key) == 0; in ossl_dh_check_pairwise()
A Ddh_key.c89 || BN_cmp(z, BN_value_one()) <= 0 in ossl_dh_compute_key()
90 || BN_cmp(z, pminus1) == 0) { in ossl_dh_compute_key()
/openssl-master/crypto/sm2/
A Dsm2_key.c41 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()
A Dsm2_sign.c274 if (BN_cmp(rk, order) == 0) in sm2_sig_gen()
353 if (BN_cmp(r, BN_value_one()) < 0 in sm2_sig_verify()
354 || BN_cmp(s, BN_value_one()) < 0 in sm2_sig_verify()
355 || BN_cmp(order, r) <= 0 in sm2_sig_verify()
356 || BN_cmp(order, s) <= 0) { in sm2_sig_verify()
382 if (BN_cmp(r, t) == 0) in sm2_sig_verify()
/openssl-master/test/
A Dexptest.c179 if (BN_cmp(r_simple, r_mont) != 0) in test_mod_exp()
181 if (BN_cmp(r_simple, r_mont_const) != 0) in test_mod_exp()
183 if (BN_cmp(r_simple, r_recp) != 0) in test_mod_exp()
267 if (BN_cmp(r_simple1, r_mont_const_x2_1) != 0) in test_mod_exp_x2()
269 if (BN_cmp(r_simple2, r_mont_const_x2_2) != 0) in test_mod_exp_x2()
A Dparam_build_test.c126 || !TEST_int_eq(BN_cmp(bn_res, bn), 0)) in template_public_test()
261 || !TEST_int_eq(BN_cmp(bn_res, bn), 0)) in template_private_test()
412 || !TEST_int_eq(BN_cmp(bn_pub_res, bn_pub), 0) in builder_merge_test()
417 || !TEST_int_eq(BN_cmp(bn_priv_res, bn_priv), 0)) in builder_merge_test()
/openssl-master/crypto/bn/
A Dbn_rand.c166 if (BN_cmp(r, range) >= 0) { in bnrand_range()
169 if (BN_cmp(r, range) >= 0) in bnrand_range()
180 while (BN_cmp(r, range) >= 0); in bnrand_range()
193 while (BN_cmp(r, range) >= 0); in bnrand_range()
A Dbn_prime.c279 if (BN_cmp(w, BN_value_one()) <= 0) in bn_is_prime_int()
408 if (BN_is_one(z) || BN_cmp(z, w1) == 0) in ossl_bn_miller_rabin_is_prime()
416 if (BN_cmp(z, w1) == 0) in ossl_bn_miller_rabin_is_prime()
A Dbn_mod.c251 if (BN_cmp(r, m) >= 0) in BN_mod_lshift1_quick()
317 if (BN_cmp(r, m) >= 0) { in BN_mod_lshift_quick()
/openssl-master/fuzz/
A Dbndiv.c95 success = success && BN_cmp(b5, b1) == 0; in FuzzerTestOneInput()
112 BN_cmp(b5, b1)); in FuzzerTestOneInput()
A Dbignum.c80 success = BN_cmp(b4, b5) == 0; in FuzzerTestOneInput()
/openssl-master/crypto/ec/
A Dec_key.c420 || BN_cmp(x, key->group->field) >= 0 in ec_key_public_range_check()
422 || BN_cmp(y, key->group->field) >= 0) { in ec_key_public_range_check()
516 if (BN_cmp(eckey->priv_key, BN_value_one()) < 0 in ossl_ec_key_private_check()
517 || BN_cmp(eckey->priv_key, eckey->group->order) >= 0) { in ossl_ec_key_private_check()
634 if (BN_cmp(x, tx) || BN_cmp(y, ty)) { in EC_KEY_set_public_key_affine_coordinates()
A Dec2_smpl.c332 if (BN_cmp(point->Z, BN_value_one())) { in ossl_ec_GF2m_simple_point_get_affine_coordinates()
598 return ((BN_cmp(a->X, b->X) == 0) && BN_cmp(a->Y, b->Y) == 0) ? 0 : 1; in ossl_ec_GF2m_simple_cmp()
621 ret = ((BN_cmp(aX, bX) == 0) && BN_cmp(aY, bY) == 0) ? 0 : 1; in ossl_ec_GF2m_simple_cmp()
/openssl-master/crypto/dsa/
A Ddsa_check.c90 ret = BN_cmp(pub_key, dsa->pub_key) == 0; in ossl_dsa_check_pairwise()
/openssl-master/providers/implementations/keymgmt/
A Drsa_kmgmt.c145 ok = ok && BN_cmp(RSA_get0_e(rsa1), RSA_get0_e(rsa2)) == 0; in rsa_match()
147 ok = ok && BN_cmp(RSA_get0_n(rsa1), RSA_get0_n(rsa2)) == 0; in rsa_match()
149 ok = ok && BN_cmp(RSA_get0_d(rsa1), RSA_get0_d(rsa2)) == 0; in rsa_match()
/openssl-master/crypto/srp/
A Dsrp_lib.c316 if (BN_cmp(knowngN[i].g, g) == 0 && BN_cmp(knowngN[i].N, N) == 0) in SRP_check_known_gN_param()

Completed in 28 milliseconds

123