comparison bn_s_mp_mul_digs.c @ 190:d8254fc979e9 libtommath-orig LTM_0.35

Initial import of libtommath 0.35
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 May 2005 08:59:30 +0000
parents d29b64170cf0
children
comparison
equal deleted inserted replaced
142:d29b64170cf0 190:d8254fc979e9
17 17
18 /* multiplies |a| * |b| and only computes upto digs digits of result 18 /* multiplies |a| * |b| and only computes upto digs digits of result
19 * HAC pp. 595, Algorithm 14.12 Modified so you can control how 19 * HAC pp. 595, Algorithm 14.12 Modified so you can control how
20 * many digits of output are created. 20 * many digits of output are created.
21 */ 21 */
22 int 22 int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
23 s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
24 { 23 {
25 mp_int t; 24 mp_int t;
26 int res, pa, pb, ix, iy; 25 int res, pa, pb, ix, iy;
27 mp_digit u; 26 mp_digit u;
28 mp_word r; 27 mp_word r;