~ubuntu-branches/ubuntu/utopic/dropbear/utopic-proposed

« back to all changes in this revision

Viewing changes to libtommath/bn_s_mp_mul_digs.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Johnston
  • Date: 2005-12-08 19:20:21 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208192021-nyp9rwnt77nsg6ty
Tags: 0.47-1
* New upstream release.
* SECURITY: Fix incorrect buffer sizing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * HAC pp. 595, Algorithm 14.12  Modified so you can control how 
20
20
 * many digits of output are created.
21
21
 */
22
 
int
23
 
s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
 
22
int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
24
23
{
25
24
  mp_int  t;
26
25
  int     res, pa, pb, ix, iy;