aboutsummaryrefslogtreecommitdiffstats
path: root/include/mpi.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1997-11-19 13:12:23 +0000
committerWerner Koch <[email protected]>1997-11-19 13:12:23 +0000
commit25c8f1a3d79a3ae14dbb824082b4107f7a182b13 (patch)
tree9a4d2e413e7e388822f8e37efe0e58b6979ac6a8 /include/mpi.h
parentinitially checkin (diff)
downloadgnupg-25c8f1a3d79a3ae14dbb824082b4107f7a182b13.tar.gz
gnupg-25c8f1a3d79a3ae14dbb824082b4107f7a182b13.zip
Output armor works, RSA keygen works.
Diffstat (limited to '')
-rw-r--r--include/mpi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mpi.h b/include/mpi.h
index 4470c609a..096cffec9 100644
--- a/include/mpi.h
+++ b/include/mpi.h
@@ -40,7 +40,7 @@ int mpi_debug_mode;
#error add definions for this machine here
#endif
-typedef struct {
+typedef struct mpi_struct {
int alloced; /* array size (# of allocated limbs) */
int nlimbs; /* number of valid limbs */
int sign; /* indicates a negative number */
@@ -139,9 +139,10 @@ int mpi_test_bit( MPI a, unsigned n );
void mpi_set_bit( MPI a, unsigned n );
void mpi_clear_bit( MPI a, unsigned n );
void mpi_set_bytes( MPI a, unsigned nbits, byte (*fnc)(int), int opaque );
+void mpi_rshift( MPI x, MPI a, unsigned n );
/*-- mpi-inv.c --*/
-int mpi_inv_mod( MPI x, MPI u, MPI v );
+void mpi_inv_mod( MPI x, MPI u, MPI v );
#endif /*G10_MPI_H*/