mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* mpi.h (gcry_mpi, mpi_get_opaque, mpi_set_opaque): Make nbits and the
length of an opaque MPI unsigned.
This commit is contained in:
parent
84401d1523
commit
5c09a56385
@ -1,5 +1,8 @@
|
|||||||
2003-12-17 David Shaw <dshaw@localhost.localdomain>
|
2003-12-17 David Shaw <dshaw@localhost.localdomain>
|
||||||
|
|
||||||
|
* mpi.h (gcry_mpi, mpi_get_opaque, mpi_set_opaque): Make nbits and
|
||||||
|
the length of an opaque MPI unsigned.
|
||||||
|
|
||||||
* cipher.h (pubkey_verify): Remove old unused code.
|
* cipher.h (pubkey_verify): Remove old unused code.
|
||||||
|
|
||||||
2003-12-03 David Shaw <dshaw@jabberwocky.com>
|
2003-12-03 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
@ -68,7 +68,7 @@ EXTERN_UNLESS_MAIN_MODULE int mpi_debug_mode;
|
|||||||
struct gcry_mpi {
|
struct gcry_mpi {
|
||||||
int alloced; /* array size (# of allocated limbs) */
|
int alloced; /* array size (# of allocated limbs) */
|
||||||
int nlimbs; /* number of valid limbs */
|
int nlimbs; /* number of valid limbs */
|
||||||
int nbits; /* the real number of valid bits (info only) */
|
unsigned int nbits; /* the real number of valid bits (info only) */
|
||||||
int sign; /* indicates a negative number */
|
int sign; /* indicates a negative number */
|
||||||
unsigned flags; /* bit 0: array must be allocated in secure memory space */
|
unsigned flags; /* bit 0: array must be allocated in secure memory space */
|
||||||
/* bit 1: not used */
|
/* bit 1: not used */
|
||||||
@ -107,8 +107,8 @@ void mpi_resize( MPI a, unsigned nlimbs );
|
|||||||
MPI mpi_copy( MPI a );
|
MPI mpi_copy( MPI a );
|
||||||
#endif
|
#endif
|
||||||
#define mpi_is_opaque(a) ((a) && ((a)->flags&4))
|
#define mpi_is_opaque(a) ((a) && ((a)->flags&4))
|
||||||
MPI mpi_set_opaque( MPI a, void *p, int len );
|
MPI mpi_set_opaque( MPI a, void *p, unsigned int len );
|
||||||
void *mpi_get_opaque( MPI a, int *len );
|
void *mpi_get_opaque( MPI a, unsigned int *len );
|
||||||
#define mpi_is_secure(a) ((a) && ((a)->flags&1))
|
#define mpi_is_secure(a) ((a) && ((a)->flags&1))
|
||||||
void mpi_set_secure( MPI a );
|
void mpi_set_secure( MPI a );
|
||||||
void mpi_clear( MPI a );
|
void mpi_clear( MPI a );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user