| /freebsd-14.2/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() 283 if (!TEST_true(BN_mod(a1, a1, m1, ctx)) in test_mod_exp_x2() 284 || !TEST_true(BN_mod(b1, b1, m1, ctx)) in test_mod_exp_x2() 285 || !TEST_true(BN_mod(a2, a2, m2, ctx)) in test_mod_exp_x2() 286 || !TEST_true(BN_mod(b2, b2, m2, ctx)) in test_mod_exp_x2()
|
| H A D | bntest.c | 391 if (!(TEST_true(BN_mod(c, a, b, ctx)) in test_mod()
|
| /freebsd-14.2/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 | 734 if (!BN_mod(r1, c, rsa->q, ctx)) { in rsa_ossl_mod_exp() 759 if (!BN_mod(r1, c, rsa->p, ctx)) { in rsa_ossl_mod_exp() 807 if (!BN_mod(r1, cc, pinfo->r, ctx)) { in rsa_ossl_mod_exp() 844 if (!BN_mod(r0, pr1, rsa->p, ctx)) { in rsa_ossl_mod_exp() 889 if (!BN_mod(r1, pr2, pinfo->r, ctx)) { in rsa_ossl_mod_exp() 937 if (!BN_mod(vrfy, vrfy, rsa->n, ctx)) in rsa_ossl_mod_exp()
|
| H A D | rsa_gen.c | 365 if (!BN_mod(rsa->dmp1, d, r1, ctx) in rsa_multiprime_keygen() 366 || !BN_mod(rsa->dmq1, d, r2, ctx)) { in rsa_multiprime_keygen() 375 if (!BN_mod(pinfo->d, d, pinfo->d, ctx)) { in rsa_multiprime_keygen()
|
| H A D | rsa_sp800_56b_gen.c | 290 if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq() 299 if (!BN_mod(rsa->dmq1, rsa->d, q1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
|
| /freebsd-14.2/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() 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() 1717 BN_mod(a[i], u, q, ctx); in gen_mvkey() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/bn/ |
| H A D | bn_exp2.c | 72 if (!BN_mod(val1[0], a1, m, ctx)) in BN_mod_exp2_mont() 101 if (!BN_mod(val2[0], a2, m, ctx)) in BN_mod_exp2_mont()
|
| H A D | bn_mod.c | 25 if (!(BN_mod(r, m, d, ctx))) in BN_nnmod() 241 return BN_mod(r, r, m, ctx); in BN_mod_sqr()
|
| H A D | bn_mont.c | 397 if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx)) in BN_MONT_CTX_set()
|
| H A D | bn_prime.c | 559 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
|
| H A D | bn_exp.c | 1184 (BN_mod(t, r, m, ctx) && (swap_tmp = r, r = t, t = swap_tmp, 1)))) in BN_mod_exp_mont_word()
|
| /freebsd-14.2/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>.
|
| /freebsd-14.2/crypto/openssl/crypto/dsa/ |
| H A D | dsa_ossl.c | 313 if (!BN_mod(r, r, dsa->params.q, ctx)) in dsa_sign_setup() 424 if (!BN_mod(u1, t1, dsa->params.q, ctx)) in dsa_do_verify()
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | ssh-rsa.c | 366 (BN_mod(rsa_dmq1, d_consttime, aux, ctx) == 0) || in ssh_rsa_complete_crt_parameters() 368 (BN_mod(rsa_dmp1, d_consttime, aux, ctx) == 0)) { in ssh_rsa_complete_crt_parameters()
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/crypto/openssl/include/openssl/ |
| H A D | bn.h | 271 # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) macro
|
| /freebsd-14.2/crypto/openssl/util/ |
| H A D | other.syms | 238 BN_mod define
|
| /freebsd-14.2/crypto/openssl/crypto/ffc/ |
| H A D | ffc_params_generate.c | 270 || !BN_mod(c, X, tmp, ctx) in generate_p()
|
| /freebsd-14.2/usr.bin/dc/ |
| H A D | bcode.c | 1107 bn_check(BN_mod(r->number, b->number, a->number, ctx)); in bmod()
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/secure/lib/libcrypto/man/man3/ |
| H A D | Makefile | 1034 MLINKS+= BN_add.3 BN_mod.3
|
| /freebsd-14.2/crypto/openssl/ |
| H A D | CHANGES.md | 13872 problems with BN_mod() and BN_nnmod(). 14493 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that 14523 `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r`
|