Usage of mpz_t inside of structures
Bruno Jiménez
brunojimen at gmail.com
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 gmail.com> 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:
> http://gmplib.org/list-archives/gmp-bugs/2012-April/002645.html
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!
Sincerely,
Bruno
More information about the gmp-discuss
mailing list