summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-09-11 09:28:44 +0200
committerWerner Koch <wk@gnupg.org>2002-09-11 09:28:44 +0200
commit7a71a26d590666b8cdaa3165fb488db6b0673533 (patch)
tree3585d493dfc9db71b1f1d16c501a4b308dd52e1c /include
parent* g10.c, options.h: Removed option --emulate-checksum-bug. (diff)
downloadgnupg2-7a71a26d590666b8cdaa3165fb488db6b0673533.tar.xz
gnupg2-7a71a26d590666b8cdaa3165fb488db6b0673533.zip
* mpi-bit.c (mpi_normalize): Replaced the check for protected byV1-2-5V1-2-4V1-2-3RC-1-2-5rc2RC-1-2-5rc1RC-1-2-4rc1RC-1-2-3rc2RC-1-2-3rc1
is_opaque. (mpi_get_nbits): Removed the special case for protected MPIs. * mpicoder.c (do_get_buffer): Likewise. (mpi_print): Removed the nbit_info printing.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog6
-rw-r--r--include/mpi.h7
2 files changed, 7 insertions, 6 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index e7db18284..d486b05de 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-10 Werner Koch <wk@gnupg.org>
+
+ * mpi.h (mpi_is_protected, mpi_set_protect_flag)
+ (mpi_clear_protect_flag): Removed.
+ (mpi_get_nbit_info, mpi_set_nbit_info): Removed.
+
2002-08-13 David Shaw <dshaw@jabberwocky.com>
* cipher.h: Add AES aliases for RIJNDAEL algo numbers.
diff --git a/include/mpi.h b/include/mpi.h
index 80d617b1d..7bb8271dc 100644
--- a/include/mpi.h
+++ b/include/mpi.h
@@ -71,7 +71,7 @@ struct gcry_mpi {
int nbits; /* the real number of valid bits (info only) */
int sign; /* indicates a negative number */
unsigned flags; /* bit 0: array must be allocated in secure memory space */
- /* bit 1: the mpi is encrypted */
+ /* bit 1: not used */
/* bit 2: the limb is a pointer to some m_alloced data */
mpi_limb_t *d; /* array with the limbs */
};
@@ -81,8 +81,6 @@ typedef struct gcry_mpi *MPI;
#define MPI_NULL NULL
#define mpi_get_nlimbs(a) ((a)->nlimbs)
-#define mpi_get_nbit_info(a) ((a)->nbits)
-#define mpi_set_nbit_info(a,b) ((a)->nbits = (b))
#define mpi_is_neg(a) ((a)->sign)
/*-- mpiutil.c --*/
@@ -111,9 +109,6 @@ typedef struct gcry_mpi *MPI;
#define mpi_is_opaque(a) ((a) && ((a)->flags&4))
MPI mpi_set_opaque( MPI a, void *p, int len );
void *mpi_get_opaque( MPI a, int *len );
-#define mpi_is_protected(a) ((a) && ((a)->flags&2))
-#define mpi_set_protect_flag(a) ((a)->flags |= 2)
-#define mpi_clear_protect_flag(a) ((a)->flags &= ~2)
#define mpi_is_secure(a) ((a) && ((a)->flags&1))
void mpi_set_secure( MPI a );
void mpi_clear( MPI a );