Aaron Boxer boxerab@gmail.com writes:
The only remaining issue is converting between big endian byte arrays and gmp types, but I have asked about this on the gmp forum.
For an example, you can also look at the nettle_mpz_to_octets and nettle_mpz_from_octets functions in https://git.lysator.liu.se/nettle/nettle/blob/master/bignum.c. If you use the mpz_ interface (not mpn_), mpz_import and mpz_export are the functions to use.
Would you be able to do a quick review of the port once I am done?
I could probably do a basic review.
Regards, /Niels