Home
last modified time | relevance | path

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

/external/openssl/crypto/bn/
Dbn_mod.c119 int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
132 if (!(BN_mod(r,m,d,ctx))) in BN_nnmod()
207 return BN_mod(r, r, m, ctx); in BN_mod_sqr()
Dexptest.c120 BN_mod(a,a,m,ctx); in main()
121 BN_mod(b,b,m,ctx); in main()
Dbn_exp2.c174 if (!BN_mod(val1[0],a1,m,ctx)) in BN_mod_exp2_mont()
208 if (!BN_mod(val2[0],a2,m,ctx)) in BN_mod_exp2_mont()
Dexp.c37 BN_mod(&a,&a,&c,&ctx);
Dbn_prime.c419 if (!BN_mod(t1,rnd,add,ctx)) goto err; in probable_prime_dh()
462 if (!BN_mod(t1,q,qadd,ctx)) goto err; in probable_prime_dh_safe()
Dbn_exp.c671 if (!BN_mod(&am,a,m,ctx)) goto err; in BN_mod_exp_mont_consttime()
844 (BN_mod(t, r, m, ctx) && (swap_tmp = r, r = t, t = swap_tmp, 1)))) in BN_mod_exp_mont_word()
Dbn_mont.c457 if (!BN_mod(&(mont->RR),&(mont->RR),&(mont->N),ctx)) goto err; in BN_MONT_CTX_set()
Dbn.h469 #define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) macro
Dbntest.c813 BN_mod(c,a,b,ctx);/**/ in test_mod()
/external/openssh/
Drsa.c143 (BN_mod(rsa->dmq1, rsa->d, aux, ctx) == 0) || in rsa_generate_additional_parameters()
145 (BN_mod(rsa->dmp1, rsa->d, aux, ctx) == 0)) in rsa_generate_additional_parameters()
Dauth-rsa.c83 if (BN_mod(challenge, challenge, key->rsa->n, ctx) == 0) in auth_rsa_generate_challenge()
/external/openssl/crypto/rsa/
Drsa_chk.c137 r = BN_mod(j, key->d, i, ctx); in RSA_check_key()
151 r = BN_mod(j, key->d, i, ctx); in RSA_check_key()
Drsa_eay.c790 if (!BN_mod(r1,c,rsa->q,ctx)) goto err; in RSA_eay_mod_exp()
794 if (!BN_mod(r1,I,rsa->q,ctx)) goto err; in RSA_eay_mod_exp()
813 if (!BN_mod(r1,c,rsa->p,ctx)) goto err; in RSA_eay_mod_exp()
817 if (!BN_mod(r1,I,rsa->p,ctx)) goto err; in RSA_eay_mod_exp()
847 if (!BN_mod(r0,pr1,rsa->p,ctx)) goto err; in RSA_eay_mod_exp()
869 if (!BN_mod(vrfy, vrfy, rsa->n, ctx)) goto err; in RSA_eay_mod_exp()
Drsa_gen.c204 if (!BN_mod(rsa->dmp1,d,r1,ctx)) goto err; in rsa_builtin_keygen()
207 if (!BN_mod(rsa->dmq1,d,r2,ctx)) goto err; in rsa_builtin_keygen()
/external/openssl/crypto/dsa/
Ddsa_ossl.c283 if (!BN_mod(r,r,dsa->q,ctx)) goto err; in dsa_sign_setup()
383 if (!BN_mod(&u1,&t1,dsa->q,ctx)) goto err; in dsa_do_verify()
Ddsa_gen.c295 if (!BN_mod(c,X,r0,ctx)) goto err; in dsa_builtin_paramgen()
/external/openssl/include/openssl/
Dbn.h469 #define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) macro
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c293 BN_mod(data->my_scalar, data->my_scalar, data->grp->order, in eap_pwd_perform_commit_exchange()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c212 BN_mod(data->my_scalar, data->my_scalar, data->grp->order, in eap_pwd_build_commit_req()