Usage of mpz_t inside of structures

John Tobey john.tobey at
Wed Jun 20 14:53:04 CEST 2012

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:

More information about the gmp-discuss mailing list