~peter-pearse/ubuntu/natty/libgcrypt11/prop001

« back to all changes in this revision

Viewing changes to mpi/mpi-pow.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2007-04-09 11:22:41 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070409112241-hzwl3tex8cmr2dkz
Tags: 1.2.4-2
* Upload to unstable.
* Drop -lgpg-error from libgcrypt-config --libs output. (Closes: #405238)
* Switch to debhelper v5 mode.
* New upstream version closes filehandles in gcry_rndlinux_gather_random().
  (Closes: #403613)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* mpi-pow.c  -  MPI functions
2
 
 * Copyright (C) 1994, 1996, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
 
2
 * Copyright (C) 1994, 1996, 1998, 2000, 2002,
 
3
 *               2003 Free Software Foundation, Inc.
3
4
 *
4
5
 * This file is part of Libgcrypt.
5
6
 *
41
42
{
42
43
    mpi_ptr_t  rp, ep, mp, bp;
43
44
    mpi_size_t esize, msize, bsize, rsize;
44
 
    int        esign, msign, bsign, rsign;
 
45
    int               msign, bsign, rsign;
45
46
    int        esec,  msec,  bsec,  rsec;
46
47
    mpi_size_t size;
47
48
    int mod_shift_cnt;
58
59
    esize = expo->nlimbs;
59
60
    msize = mod->nlimbs;
60
61
    size = 2 * msize;
61
 
    esign = expo->sign;
62
62
    msign = mod->sign;
63
63
 
64
64
    esec = mpi_is_secure(expo);