Skip to content

Instantly share code, notes, and snippets.

@iseki-masaya
Created August 3, 2015 13:11
Show Gist options
  • Save iseki-masaya/35e9f626337c4cad609d to your computer and use it in GitHub Desktop.
Save iseki-masaya/35e9f626337c4cad609d to your computer and use it in GitHub Desktop.
struct gcry_mpi
{
int alloced; /* Array size (# of allocated limbs). */
int nlimbs; /* Number of valid limbs. */
int sign; /* Indicates a negative number and is also used
for opaque MPIs to store the length. */
unsigned int flags; /* Bit 0: Array to be allocated in secure memory space.*/
/* Bit 2: The limb is a pointer to some m_alloced data.*/
/* Bit 4: Immutable MPI - the MPI may not be modified. */
/* Bit 5: Constant MPI - the MPI will not be freed. */
mpi_limb_t *d; /* Array with the limbs */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment