Home
last modified time | relevance | path

Searched refs:mp_div (Results 1 – 23 of 23) sorted by relevance

/external/dropbear/libtommath/
Dbn_mp_lcm.c37 if ((res = mp_div(a, &t1, &t2, NULL)) != MP_OKAY) { in mp_lcm()
43 if ((res = mp_div(b, &t1, &t2, NULL)) != MP_OKAY) { in mp_lcm()
Dbn_mp_sqrt.c47 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) { in mp_sqrt()
58 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) { in mp_sqrt()
Dbn_mp_reduce_setup.c28 return mp_div (a, b, a, NULL); in mp_reduce_setup()
Dbn_mp_mod.c29 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) { in mp_mod()
Dbn_mp_n_root.c88 if ((res = mp_div (&t2, &t3, &t3, NULL)) != MP_OKAY) { in mp_n_root()
Dbn_mp_div.c21 int mp_div(mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
103 int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
Dbn_mp_exteuclid.c41 if ((err = mp_div(&u3, &v3, &q, NULL)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
Dchanges.txt58 v0.33 -- Fixed "small" variant for mp_div() which would munge with negative dividends...
73 -- Merged in the small/slower mp_div replacement. You can now toggle which
74 you want to use as your mp_div() at build time. Saves roughly 8KB or so.
232 -- Re-wrote mp_div_d to be faster than calling mp_div
241 -- removed call to mp_cmp in inner loop of mp_div and put mp_cmp_mag in its place :-)
273 v0.16 -- Sped up mp_div by making normalization one shift call
304 to other functions like mp_invmod, mp_div, etc...
367 -- Fixed bug in mp_div
Dtommath.h323 int mp_div(mp_int *a, mp_int *b, mp_int *c, mp_int *d);
Dbn.tex362 mp_div(&a, &b, &c, &d); /* c = [a/b], d = a mod b */
370 mp_div(&a, &b, &a, &c); /* a = [a/b], c = a mod b */
1142 int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d);
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_verify_key.c70 if ((err = mp_div(tmp, key->q, tmp, tmp2)) != CRYPT_OK) { goto error; } in dsa_verify_key()
/external/dropbear/
Dgendss.c161 if (mp_div(&val, key->q, &div, NULL) != MP_OKAY) { in getg()
/external/dropbear/libtommath/etc/
Dpprime.c344 mp_div (q, &b, q, NULL); in pprime()
/external/dropbear/libtommath/mtest/
Dmtest.c160 mp_div(&a, &b, &c, &d); in main()
Dmpi.h133 mp_err mp_div(mp_int *a, mp_int *b, mp_int *q, mp_int *r);
Dmpi.c1143 mp_err mp_div(mp_int *a, mp_int *b, mp_int *q, mp_int *r) in mp_div() function
1377 if((res = mp_div(a, m, NULL, c)) != MP_OKAY) in mp_mod()
1490 if((res = mp_div(&t, &x, &t, NULL)) != MP_OKAY) in mp_sqrt()
1660 if((res = mp_div(&mu, m, &mu, NULL)) != MP_OKAY) in mp_exptmod()
2039 res = mp_div(&prod, &gcd, c, NULL); in mp_lcm()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_math.h477 #define mp_div(a, b, c, d) ltc_mp.mpdiv(a, b, c, d) macro
/external/dropbear/libtommath/demo/
Ddemo.c290 mp_div(&a, &d, &b, &e); in main()
563 mp_div(&a, &b, &e, &f); in main()
/external/dropbear/libtommath/pre_gen/
Dmpi.c1576 int mp_div(mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
1658 int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
2983 if ((err = mp_div(&u3, &v3, &q, NULL)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
4427 if ((res = mp_div(a, &t1, &t2, NULL)) != MP_OKAY) { in mp_lcm()
4433 if ((res = mp_div(b, &t1, &t2, NULL)) != MP_OKAY) { in mp_lcm()
4554 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) { in mp_mod()
5375 if ((res = mp_div (&t2, &t3, &t3, NULL)) != MP_OKAY) { in mp_n_root()
7022 return mp_div (a, b, a, NULL); in mp_reduce_setup()
7417 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) { in mp_sqrt()
7428 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) { in mp_sqrt()
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dlibtommath.c159 static int mp_div(mp_int * a, mp_int * b, mp_int * c, mp_int * d);
556 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) { in mp_mod()
1594 static int mp_div(mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
1676 static int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
2235 return mp_div (a, b, a, NULL); in mp_reduce_setup()
/external/wpa_supplicant_8/src/tls/
Dlibtommath.c159 static int mp_div(mp_int * a, mp_int * b, mp_int * c, mp_int * d);
556 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) { in mp_mod()
1594 static int mp_div(mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
1676 static int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d) in mp_div() function
2235 return mp_div (a, b, a, NULL); in mp_reduce_setup()
/external/dropbear/libtomcrypt/src/math/
Dltm_desc.c267 return mpi_to_ltc_error(mp_div(a, b, c, d)); in divide()
/external/dropbear/libtomcrypt/
Dchanges494 …- Ported over patch on LTM 0.30 [not ready to release LTM 0.31] that fixes bug in mp_mul()/mp_div()