diff options
author | Werner Koch <wk@gnupg.org> | 2007-10-31 10:48:01 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-10-31 10:48:01 +0000 |
commit | 68a0d855c92cb6cd7030abc7e191d1c513ad2a62 (patch) | |
tree | 549e9edd57faa05b22fa15392ba051c098fc2c4e /mpi/mpi-inv.c | |
parent | f9c80d236b62c5f2ac4c4d096e4adbd40b10d3a2 (diff) | |
download | libgcrypt-68a0d855c92cb6cd7030abc7e191d1c513ad2a62.tar.gz |
Reorganizatiosn to support the visibility attribute.
This can be improved by using fucntion aliases instead
of wrapper functions.
Diffstat (limited to 'mpi/mpi-inv.c')
-rw-r--r-- | mpi/mpi-inv.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/mpi/mpi-inv.c b/mpi/mpi-inv.c index 2e737b8f..5d269466 100644 --- a/mpi/mpi-inv.c +++ b/mpi/mpi-inv.c @@ -14,8 +14,7 @@ * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * License along with this program; if not, see <http://www.gnu.org/licenses/>. */ #include <config.h> @@ -29,8 +28,8 @@ * That is: Find the solution x for * 1 = (a*x) mod n */ -void -_gcry_mpi_invm( gcry_mpi_t x, gcry_mpi_t a, gcry_mpi_t n ) +int +gcry_mpi_invm( gcry_mpi_t x, gcry_mpi_t a, gcry_mpi_t n ) { #if 0 gcry_mpi_t u, v, u1, u2, u3, v1, v2, v3, q, t1, t2, t3; @@ -264,12 +263,5 @@ _gcry_mpi_invm( gcry_mpi_t x, gcry_mpi_t a, gcry_mpi_t n ) mpi_free(u); mpi_free(v); #endif -} - - -int -gcry_mpi_invm (gcry_mpi_t x, gcry_mpi_t a, gcry_mpi_t n) -{ - _gcry_mpi_invm (x, a, n); - return 1; + return 1; } |