/third_party/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()
|
/third_party/node/deps/openssl/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_ossl.c | 687 * 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 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_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()
|
/third_party/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_ossl.c | 687 * 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 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_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()
|
/third_party/node/deps/openssl/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 | 16 * 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 D | bn_rand.c | 316 if (BN_mod(out, out, range, ctx) != 1) in BN_generate_dsa_nonce()
|
H A D | bn_prime.c | 559 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
|
H A D | bn_mont.c | 397 if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx)) in BN_MONT_CTX_set()
|
/third_party/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 | 16 * 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 D | bn_rand.c | 316 if (BN_mod(out, out, range, ctx) != 1) in BN_generate_dsa_nonce()
|
H A D | bn_prime.c | 559 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
|
H A D | bn_mont.c | 397 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 D | dsa_ossl.c | 312 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 D | dsa_ossl.c | 312 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 D | bn.h | 247 # 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 D | bn.h | 271 # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) macro
|