Home
last modified time | relevance | path

Searched refs:BN_mod (Results 1 – 24 of 24) sorted by relevance

/src/crypto/openssl/test/
H A Dexptest.c197 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 Dbntest.c410 if (!(TEST_true(BN_mod(c, a, b, ctx)) in test_mod()
/src/crypto/openssl/crypto/rsa/
H A Drsa_chk.c166 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 Drsa_x931g.c125 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 Drsa_ossl.c924 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 Drsa_sp800_56b_gen.c299 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 Drsa_gen.c198 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 Dntp-keygen.c1196 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 Dbn_exp2.c71 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 Dbn_mod.c26 if (!(BN_mod(r, m, d, ctx))) in BN_nnmod()
240 return BN_mod(r, r, m, ctx); in BN_mod_sqr()
H A Dbn_prime.c568 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
H A Dbn_mont.c395 if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx)) in BN_MONT_CTX_set()
H A Dbn_exp.c1169 (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 DBN_add.pod5 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 Ddsa_ossl.c334 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 Dssh-rsa.c387 (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 Dntp_crypto.c2190 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 Dec_kem.c90 rv = BN_mod(rem, priv, order, bnctx) in eckey_check()
/src/crypto/openssl/include/openssl/
H A Dbn.h276 #define BN_mod(rem, m, d, ctx) BN_div(NULL, (rem), (m), (d), (ctx)) macro
/src/crypto/openssl/crypto/ffc/
H A Dffc_params_generate.c270 || !BN_mod(c, X, tmp, ctx) in generate_p()
/src/crypto/openssl/util/
H A Dother.syms288 BN_mod define
/src/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c2010 res = BN_mod((BIGNUM *) c, (const BIGNUM *) a, (const BIGNUM *) b, in crypto_bignum_mod()
/src/secure/lib/libcrypto/man/man3/
H A DMakefile1134 MLINKS+= BN_add.3 BN_mod.3
/src/crypto/openssl/
H A DCHANGES.md15526 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`