Home
last modified time | relevance | path

Searched refs:BN_mod (Results 1 - 25 of 33) sorted by relevance

12

/third_party/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()
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()
/third_party/node/deps/openssl/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_ossl.c687 * below modulo operations on |I|. Unlike BN_mod it's constant time. in rsa_ossl_mod_exp()
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 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_gen.c365 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 Drsa_sp800_56b_gen.c290 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()
/third_party/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_ossl.c687 * below modulo operations on |I|. Unlike BN_mod it's constant time. in rsa_ossl_mod_exp()
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 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_gen.c365 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 Drsa_sp800_56b_gen.c290 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()
/third_party/node/deps/openssl/openssl/crypto/bn/
H A Dbn_exp2.c72 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 Dbn_mod.c16 * like BN_mod, but returns non-negative remainder (i.e., 0 <= r < |d| in BN_nnmod()
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 Dbn_rand.c316 if (BN_mod(out, out, range, ctx) != 1) in BN_generate_dsa_nonce()
H A Dbn_prime.c559 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
H A Dbn_mont.c397 if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx)) in BN_MONT_CTX_set()
/third_party/openssl/crypto/bn/
H A Dbn_exp2.c72 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 Dbn_mod.c16 * like BN_mod, but returns non-negative remainder (i.e., 0 <= r < |d| in BN_nnmod()
20 if (!(BN_mod(r, m, d, ctx))) in BN_nnmod()
231 return BN_mod(r, r, m, ctx); in BN_mod_sqr()
H A Dbn_rand.c316 if (BN_mod(out, out, range, ctx) != 1) in BN_generate_dsa_nonce()
H A Dbn_prime.c559 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
H A Dbn_mont.c397 if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx)) in BN_MONT_CTX_set()
/third_party/node/deps/openssl/openssl/crypto/dsa/
H A Ddsa_ossl.c312 if (!BN_mod(r, r, dsa->params.q, ctx)) in dsa_sign_setup()
423 if (!BN_mod(u1, t1, dsa->params.q, ctx)) in dsa_do_verify()
/third_party/openssl/crypto/dsa/
H A Ddsa_ossl.c312 if (!BN_mod(r, r, dsa->params.q, ctx)) in dsa_sign_setup()
423 if (!BN_mod(u1, t1, dsa->params.q, ctx)) in dsa_do_verify()
/third_party/openssl/ohos_lite/include/openssl/
H A Dbn.h247 # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) macro
/third_party/node/deps/openssl/openssl/include/openssl/
H A Dbn.h271 # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) macro

Completed in 20 milliseconds

12