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

« back to all changes in this revision

Viewing changes to libtommath/bn_mp_prime_fermat.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:
43
43
 
44
44
  /* compute t = b**a mod a */
45
45
  if ((err = mp_exptmod (b, a, a, &t)) != MP_OKAY) {
46
 
    goto __T;
 
46
    goto LBL_T;
47
47
  }
48
48
 
49
49
  /* is it equal to b? */
52
52
  }
53
53
 
54
54
  err = MP_OKAY;
55
 
__T:mp_clear (&t);
 
55
LBL_T:mp_clear (&t);
56
56
  return err;
57
57
}
58
58
#endif