Searched refs:BN_cmp (Results 1 - 25 of 112) sorted by relevance

12345

/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/dh/
H A Ddh_rfc7919.c53 if (!BN_cmp(dh->p, &_bignum_ffdhe2048_p))
55 else if (!BN_cmp(dh->p, &_bignum_ffdhe3072_p))
57 else if (!BN_cmp(dh->p, &_bignum_ffdhe4096_p))
59 else if (!BN_cmp(dh->p, &_bignum_ffdhe6144_p))
61 else if (!BN_cmp(dh->p, &_bignum_ffdhe8192_p))
69 if (q == NULL || !BN_rshift1(q, q) || !BN_cmp(dh->q, q))
H A Ddh_check.c59 if (BN_cmp(dh->g, tmp) >= 0)
117 if (BN_cmp(dh->g, BN_value_one()) <= 0)
119 else if (BN_cmp(dh->g, dh->p) >= 0)
138 if (dh->j && BN_cmp(dh->j, t1))
194 if (BN_cmp(pub_key, tmp) <= 0)
198 if (BN_cmp(pub_key, tmp) >= 0)
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/ffc/
H A Dffc_key_generate.c44 m = (BN_cmp(two_powN, params->q) > 0) ? params->q : two_powN;
52 if (BN_cmp(priv, m) < 0)
H A Dffc_key_validate.c42 if (BN_cmp(pub_key, tmp) <= 0)
48 if (BN_cmp(pub_key, tmp) >= 0)
113 if (BN_cmp(priv, BN_value_one()) < 0) {
117 if (BN_cmp(priv, upper) >= 0) {
H A Dffc_dh.c121 if (BN_cmp(p, dh_named_groups[i].p) == 0
122 && BN_cmp(g, dh_named_groups[i].g) == 0
124 && (q == NULL || BN_cmp(q, dh_named_groups[i].q) == 0))
H A Dffc_params_validate.c33 if (BN_cmp(g, BN_value_one()) <= 0 || BN_cmp(g, p) >= 0) {
45 if (BN_cmp(tmp, BN_value_one()) != 0) {
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/sm2/
H A Dsm2_key.c41 if (BN_cmp(priv_key, BN_value_one()) < 0
42 || BN_cmp(priv_key, max) >= 0) {
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dtest_bn.c274 if (BN_cmp(a, b) != 0)
276 if (BN_cmp(b, a) != 0)
282 if (BN_cmp(a, b) >= 0)
284 if (BN_cmp(b, a) <= 0)
289 if (BN_cmp(a, b) <= 0)
291 if (BN_cmp(b, a) >= 0)
300 if (BN_cmp(a, b) >= 0)
302 if (BN_cmp(b, a) <= 0)
307 if (BN_cmp(a, b) <= 0)
309 if (BN_cmp(
[all...]
H A Dbn.h52 #define BN_cmp hc_BN_cmp macro
111 int BN_cmp(const BIGNUM *, const BIGNUM *);
/netbsd-current/tests/crypto/libcrypto/bn/div/
H A Ddivtest.c42 else if (BN_cmp(c, C) != 0 || BN_cmp(c, C) != 0)
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/rsa/
H A Drsa_sp800_56b_check.c56 && (BN_cmp(rsa->dmp1, BN_value_one()) > 0)
57 && (BN_cmp(rsa->dmp1, p1) < 0)
59 && (BN_cmp(rsa->dmq1, BN_value_one()) > 0)
60 && (BN_cmp(rsa->dmq1, q1) < 0)
62 && (BN_cmp(rsa->iqmp, BN_value_one()) > 0)
63 && (BN_cmp(rsa->iqmp, rsa->p) < 0)
121 if (BN_cmp(p, low) <= 0)
207 && (BN_cmp(rsa->d, lcm) < 0)
234 return BN_is_odd(e) && BN_cmp(e, BN_value_one()) > 0;
360 return BN_cmp(rs
[all...]
H A Drsa_chk.c100 if (BN_cmp(i, key->n) != 0) {
170 if (BN_cmp(j, key->dmp1) != 0) {
184 if (BN_cmp(j, key->dmq1) != 0) {
194 if (BN_cmp(i, key->iqmp) != 0) {
211 if (BN_cmp(j, pinfo->d) != 0) {
220 if (BN_cmp(i, pinfo->t) != 0) {
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/rsa/
H A Drsa_chk.c97 if (BN_cmp(i, key->n) != 0) {
164 if (BN_cmp(j, key->dmp1) != 0) {
178 if (BN_cmp(j, key->dmq1) != 0) {
188 if (BN_cmp(i, key->iqmp) != 0) {
205 if (BN_cmp(j, pinfo->d) != 0) {
214 if (BN_cmp(i, pinfo->t) != 0) {
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/dh/
H A Ddh_check.c92 if (BN_cmp(dh->params.g, tmp) >= 0)
182 if (BN_cmp(dh->params.g, BN_value_one()) <= 0)
184 else if (BN_cmp(dh->params.g, dh->params.p) >= 0)
204 && BN_cmp(dh->params.j, t1))
316 if (BN_cmp(two_powN, dh->params.q) < 0)
355 ret = BN_cmp(pub_key, dh->pub_key) == 0;
/netbsd-current/crypto/external/bsd/openssl.old/dist/fuzz/
H A Dbndiv.c95 success = success && BN_cmp(b5, b1) == 0;
112 BN_cmp(b5, b1));
H A Dbignum.c80 success = BN_cmp(b4, b5) == 0;
/netbsd-current/crypto/external/bsd/openssl/dist/fuzz/
H A Dbndiv.c95 success = success && BN_cmp(b5, b1) == 0;
112 BN_cmp(b5, b1));
H A Dbignum.c80 success = BN_cmp(b4, b5) == 0;
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/bn/
H A Dbn_rand.c144 if (BN_cmp(r, range) >= 0) {
147 if (BN_cmp(r, range) >= 0)
158 while (BN_cmp(r, range) >= 0);
170 while (BN_cmp(r, range) >= 0);
/netbsd-current/crypto/external/bsd/netpgp/dist/src/librsa/
H A Drsa.c83 if (BN_cmp(decbn, rsa->n) >= 0) {
123 if (BN_cmp(decbn, rsa->n) >= 0) {
124 printf("BN_cmp failed\n");
161 if (BN_cmp(rsa->n, rsa->e) <= 0) {
173 if (BN_cmp(encbn, rsa->n) >= 0) {
205 if (BN_cmp(rsa->n, rsa->e) <= 0) {
228 if (BN_cmp(encbn, rsa->n) >= 0) {
448 BN_cmp(sig->r, dsa->q) >= 0) {
453 BN_cmp(sig->s, dsa->q) >= 0) {
477 ret = (BN_cmp(
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/test/
H A Dexptest.c208 if (BN_cmp(r_simple, r_mont) != 0)
210 if (BN_cmp(r_simple, r_mont_const) != 0)
212 if (BN_cmp(r_simple, r_recp) != 0)
296 if (BN_cmp(r_simple1, r_mont_const_x2_1) != 0)
298 if (BN_cmp(r_simple2, r_mont_const_x2_2) != 0)
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/sm2/
H A Dsm2_sign.c252 if (BN_cmp(rk, order) == 0)
326 if (BN_cmp(r, BN_value_one()) < 0
327 || BN_cmp(s, BN_value_one()) < 0
328 || BN_cmp(order, r) <= 0
329 || BN_cmp(order, s) <= 0) {
355 if (BN_cmp(r, t) == 0)
/netbsd-current/external/mpl/dhcp/bind/dist/lib/dns/
H A Dopenssldh_link.c208 if (BN_cmp(p1, p2) != 0 || BN_cmp(g1, g2) != 0 ||
209 BN_cmp(pub_key1, pub_key2) != 0)
218 if (BN_cmp(priv_key1, priv_key2) != 0) {
242 if (BN_cmp(p1, p2) != 0 || BN_cmp(g1, g2) != 0) {
408 if (BN_cmp(g, bn2) == 0 &&
409 (BN_cmp(p, bn768) == 0 || BN_cmp(p, bn1024) == 0 ||
410 BN_cmp(
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/bn/
H A Dbn_rand.c171 if (BN_cmp(r, range) >= 0) {
174 if (BN_cmp(r, range) >= 0)
185 while (BN_cmp(r, range) >= 0);
198 while (BN_cmp(r, range) >= 0);
/netbsd-current/crypto/external/bsd/openssl.old/dist/test/
H A Dexptest.c199 if (BN_cmp(r_simple, r_mont) != 0)
201 if (BN_cmp(r_simple, r_mont_const) != 0)
203 if (BN_cmp(r_simple, r_recp) != 0)

Completed in 317 milliseconds

12345