Usage of mpz_t inside of structures

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


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


More information about the gmp-discuss mailing list