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

/external/openssl/crypto/bn/
H A Ddivtest.c34 if (BN_div(C,D,a,b,ctx) != 1)
35 bug("BN_div failed",a,b);
H A Dbn_mont.c408 if (!BN_div(Ri,NULL,Ri,&tmod,ctx)) goto err;
432 if (!BN_div(Ri,NULL,Ri,&tmod,ctx)) goto err;
450 if (!BN_div(&(mont->Ni),NULL,Ri,&mont->N,ctx)) goto err;
H A Dbn_mod.c121 return(BN_div(NULL,rem,m,d,ctx));
H A Dbn_recp.c227 if (!BN_div(r,NULL,t,m,ctx)) goto err;
H A Dbnspeed.c227 BN_div(r, NULL, b, a,ctx);
H A Dbn_div.c67 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
174 /* BN_div computes dv := num / divisor, rounding towards
181 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, function
H A Dbn_gcd.c394 if (!BN_div(D,M,A,B,ctx)) goto err;
543 /* Turn BN_FLG_CONSTTIME flag on, so that when BN_div is invoked,
568 /* Turn BN_FLG_CONSTTIME flag on, so that when BN_div is invoked,
575 if (!BN_div(D,M,pA,B,ctx)) goto err;
H A Dbntest.c222 message(out,"BN_div");
436 BN_div(&d,&c,&a,&b,ctx);
660 BN_div(&d,&e,&c,&a,ctx);
704 BN_div(&d,&e,&c,&a,ctx);
826 BN_div(d,e,a,b,ctx);
896 BN_div(a,b,d,c,ctx);
949 BN_div(a,b,e,c,ctx);
1000 BN_div(a,b,e,c,ctx);
1951 BN_div(d,e,a,c,ctx);
H A Dbn.h280 * BN_div() will call BN_div_no_branch,
467 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
469 #define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))
/external/chromium_org/third_party/boringssl/src/crypto/dh/
H A Dcheck.c139 if (!BN_div(t1, t2, dh->p, dh->q, ctx)) {
/external/chromium_org/third_party/boringssl/src/crypto/bn/
H A Ddiv.c109 /* BN_div computes dv := num / divisor, rounding towards
115 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, function
128 OPENSSL_PUT_ERROR(BN, BN_div, BN_R_NOT_INITIALIZED);
138 OPENSSL_PUT_ERROR(BN, BN_div, BN_R_DIV_BY_ZERO);
H A Dbn_test.c224 message(out, "BN_div");
405 BN_div(&d, &c, &a, &b, ctx);
503 BN_div(d, e, a, c, ctx);
639 BN_div(&d, &e, &c, &a, ctx);
678 BN_div(&d, &e, &c, &a, ctx);
850 BN_div(d, e, a, b, ctx);
912 BN_div(a, b, d, c, ctx);
960 BN_div(a, b, e, c, ctx);
1006 BN_div(a, b, e, c, ctx);
H A Dgcd.c431 if (!BN_div(D, M, A, B, ctx)) {
584 /* Turn BN_FLG_CONSTTIME flag on, so that when BN_div is invoked,
609 /* Turn BN_FLG_CONSTTIME flag on, so that when BN_div is invoked,
616 if (!BN_div(D, M, pA, B, ctx)) {
H A Dmontgomery.c235 if (!BN_div(Ri, NULL, Ri, &tmod, ctx)) {
268 if (!BN_div(Ri, NULL, Ri, &tmod, ctx)) {
H A Dsqrt.c466 if (!BN_div(tmp, NULL, in, estimate, ctx) ||
H A Dexponentiation.c240 if (!BN_div(r, NULL, t, m, ctx)) {
/external/openssl/crypto/rsa/
H A Drsa_chk.c125 r = BN_div(k, NULL, l, m, ctx); /* remainder is 0 */
/external/chromium_org/third_party/boringssl/src/include/openssl/
H A Dbn.h381 /* BN_div divides |numerator| by |divisor| and places the result in |quotient|
386 OPENSSL_EXPORT int BN_div(BIGNUM *quotient, BIGNUM *rem,
471 /* BN_mod is a helper macro that calls |BN_div| and discards the quotient. */
473 BN_div(NULL, (rem), (numerator), (divisor), (ctx))
800 * call BN_mod_exp_mont_consttime, BN_div() will call BN_div_no_branch,
/external/chromium_org/third_party/boringssl/src/crypto/rsa/
H A Drsa.c556 !BN_div(&lcm, NULL, &lcm, &gcd, ctx) ||
675 !BN_div(multiple, NULL, totient, rsa->n, ctx) ||
677 !BN_div(totient, rem, totient, multiple, ctx)) {
710 !BN_div(rsa->p, NULL, rsa->n, rsa->q, ctx) ||
/external/openssl/crypto/dsa/
H A Ddsa_gen.c326 if (!BN_div(r0,NULL,test,q,ctx)) goto err;
/external/openssl/include/openssl/
H A Dbn.h280 * BN_div() will call BN_div_no_branch,
467 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
469 #define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))
/external/chromium_org/third_party/boringssl/src/crypto/dsa/
H A Ddsa_impl.c656 if (!BN_div(r0, NULL, test, q, ctx))
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_openssl.c961 res = BN_div((BIGNUM *) c, NULL, (const BIGNUM *) a,
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_openssl.c961 res = BN_div((BIGNUM *) c, NULL, (const BIGNUM *) a,
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_openssl.c961 res = BN_div((BIGNUM *) c, NULL, (const BIGNUM *) a,

Completed in 4434 milliseconds