| /src/crypto/openssl/test/ |
| H A D | exptest.c | 197 if (!TEST_true(BN_mod(a, a, m, ctx)) in test_mod_exp() 198 || !TEST_true(BN_mod(b, b, m, ctx)) in test_mod_exp() 284 if (!TEST_true(BN_mod(a1, a1, m1, ctx)) in test_mod_exp_x2() 285 || !TEST_true(BN_mod(b1, b1, m1, ctx)) in test_mod_exp_x2() 286 || !TEST_true(BN_mod(a2, a2, m2, ctx)) in test_mod_exp_x2() 287 || !TEST_true(BN_mod(b2, b2, m2, ctx)) in test_mod_exp_x2()
|
| H A D | bntest.c | 410 if (!(TEST_true(BN_mod(c, a, b, ctx)) in test_mod()
|
| /src/crypto/openssl/crypto/rsa/ |
| H A D | rsa_chk.c | 166 if (!BN_mod(j, key->d, i, ctx)) { in rsa_validate_keypair_multiprime() 180 if (!BN_mod(j, key->d, i, ctx)) { in rsa_validate_keypair_multiprime() 207 if (!BN_mod(j, key->d, i, ctx)) { in rsa_validate_keypair_multiprime()
|
| H A D | rsa_x931g.c | 125 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx)) in RSA_X931_derive_ex() 132 if (!BN_mod(rsa->dmq1, rsa->d, r2, ctx)) in RSA_X931_derive_ex()
|
| H A D | rsa_ossl.c | 924 if (!BN_mod(r1, c, rsa->q, ctx)) { in rsa_ossl_mod_exp() 949 if (!BN_mod(r1, c, rsa->p, ctx)) { in rsa_ossl_mod_exp() 997 if (!BN_mod(r1, cc, pinfo->r, ctx)) { in rsa_ossl_mod_exp() 1034 if (!BN_mod(r0, pr1, rsa->p, ctx)) { in rsa_ossl_mod_exp() 1079 if (!BN_mod(r1, pr2, pinfo->r, ctx)) { in rsa_ossl_mod_exp() 1127 if (!BN_mod(vrfy, vrfy, rsa->n, ctx)) in rsa_ossl_mod_exp()
|
| H A D | rsa_sp800_56b_gen.c | 299 if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq() 308 if (!BN_mod(rsa->dmq1, rsa->d, q1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
|
| H A D | rsa_gen.c | 198 if (!BN_mod(dmp1, rsa->d, r1, ctx)) in DEFINE_STACK_OF() 204 if (!BN_mod(dmq1, rsa->d, r2, ctx)) in DEFINE_STACK_OF() 215 if (!BN_mod(newexp, rsa->d, newpd, ctx)) in DEFINE_STACK_OF()
|
| /src/contrib/ntp/util/ |
| H A D | ntp-keygen.c | 1196 BN_mod(b, b, q, ctx); in gen_iffkey() 1220 BN_mod(r, r, q, ctx); in gen_iffkey() 1228 BN_mod(k, k, q, ctx); in gen_iffkey() 1231 BN_mod(v, v, q, ctx); /* y = k + b r mod q */ in gen_iffkey() 1378 BN_mod(b, b, n, ctx); in gen_gqkey() 1385 BN_mod(u, u, n, ctx); in gen_gqkey() 1420 BN_mod(r, r, n, ctx); in gen_gqkey() 1428 BN_mod(k, k, n, ctx); in gen_gqkey() 1667 BN_mod(g, g, p, ctx); in gen_mvkey() 1693 BN_mod(x[j], x[j], q, ctx); in gen_mvkey() [all …]
|
| /src/crypto/openssl/crypto/bn/ |
| H A D | bn_exp2.c | 71 if (!BN_mod(val1[0], a1, m, ctx)) in BN_mod_exp2_mont() 99 if (!BN_mod(val2[0], a2, m, ctx)) in BN_mod_exp2_mont()
|
| H A D | bn_mod.c | 26 if (!(BN_mod(r, m, d, ctx))) in BN_nnmod() 240 return BN_mod(r, r, m, ctx); in BN_mod_sqr()
|
| H A D | bn_prime.c | 568 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
|
| H A D | bn_mont.c | 395 if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx)) in BN_MONT_CTX_set()
|
| H A D | bn_exp.c | 1169 (BN_mod(t, r, m, ctx) && (swap_tmp = r, r = t, t = swap_tmp, 1)))) in BN_mod_exp_mont_word()
|
| /src/crypto/openssl/doc/man3/ |
| H A D | BN_add.pod | 5 BN_add, BN_sub, BN_mul, BN_sqr, BN_div, BN_mod, BN_nnmod, BN_mod_add, 24 int BN_mod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); 71 BN_mod() corresponds to BN_div() with I<dv> set to B<NULL>.
|
| /src/crypto/openssl/crypto/dsa/ |
| H A D | dsa_ossl.c | 334 if (!BN_mod(r, r, dsa->params.q, ctx)) in dsa_sign_setup() 443 if (!BN_mod(u1, t1, dsa->params.q, ctx)) in dsa_do_verify()
|
| /src/crypto/openssh/ |
| H A D | ssh-rsa.c | 387 (BN_mod(*rsa_dmq1, d_consttime, aux, ctx) == 0) || in ssh_rsa_complete_crt_parameters() 389 (BN_mod(*rsa_dmp1, d_consttime, aux, ctx) == 0)) { in ssh_rsa_complete_crt_parameters()
|
| /src/contrib/ntp/ntpd/ |
| H A D | ntp_crypto.c | 2190 BN_mod(peer->iffval, peer->iffval, q, bctx); in crypto_alice() 2282 BN_mod(bn, bn, q, bctx); /* k + b r mod q */ in crypto_bob() 2528 BN_mod(peer->iffval, peer->iffval, n, bctx); in crypto_alice2() 2612 BN_mod(k, k, n, bctx); in crypto_bob2() 2870 BN_mod(peer->iffval, peer->iffval, p, bctx); in crypto_alice3() 2958 BN_mod(k, k, q, bctx); in crypto_bob3()
|
| /src/crypto/openssl/providers/implementations/kem/ |
| H A D | ec_kem.c | 90 rv = BN_mod(rem, priv, order, bnctx) in eckey_check()
|
| /src/crypto/openssl/include/openssl/ |
| H A D | bn.h | 276 #define BN_mod(rem, m, d, ctx) BN_div(NULL, (rem), (m), (d), (ctx)) macro
|
| /src/crypto/openssl/crypto/ffc/ |
| H A D | ffc_params_generate.c | 270 || !BN_mod(c, X, tmp, ctx) in generate_p()
|
| /src/crypto/openssl/util/ |
| H A D | other.syms | 288 BN_mod define
|
| /src/contrib/wpa/src/crypto/ |
| H A D | crypto_openssl.c | 2010 res = BN_mod((BIGNUM *) c, (const BIGNUM *) a, (const BIGNUM *) b, in crypto_bignum_mod()
|
| /src/secure/lib/libcrypto/man/man3/ |
| H A D | Makefile | 1134 MLINKS+= BN_add.3 BN_mod.3
|
| /src/crypto/openssl/ |
| H A D | CHANGES.md | 15526 problems with BN_mod() and BN_nnmod(). 16147 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that 16177 `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r`
|