Usage of mpz_t inside of structures

Bruno Jiménez brunojimen at
Wed Jun 20 19:19:10 CEST 2012

El mié, 20-06-2012 a las 08:53 -0400, John Tobey escribió:
> On Wed, Jun 20, 2012 at 6:25 AM, Bruno Jiménez <brunojimen at> wrote:
> > Well, then I suppose I have to think of other way to do everything.
> Since you want to "keep the style" of the library, define rsa_key
> similarly to how gmp.h defines mpz_t:
> typedef struct { ... } __rsa_key_struct;
> typedef __rsa_key_struct rsa_key[1];
> See also:

Ok, after doing those changes, and also "typedef __rsa_key_struct
*rsa_key_ptr" as you have in the source code of GMP. And a lot of
refactoring to change '.'s to '->', now everything works.

Thank you very much!

More information about the gmp-discuss mailing list