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

« back to all changes in this revision

Viewing changes to libtommath/bn_mp_prime_is_divisible.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:
29
29
  *result = MP_NO;
30
30
 
31
31
  for (ix = 0; ix < PRIME_SIZE; ix++) {
32
 
    /* what is a mod __prime_tab[ix] */
33
 
    if ((err = mp_mod_d (a, __prime_tab[ix], &res)) != MP_OKAY) {
 
32
    /* what is a mod LBL_prime_tab[ix] */
 
33
    if ((err = mp_mod_d (a, ltm_prime_tab[ix], &res)) != MP_OKAY) {
34
34
      return err;
35
35
    }
36
36