Aaron Boxer <[email protected]> writes: > Thanks, I will try this. I am also having trouble with the BN_num_bytes > method. > Do you know of an equivalent method in gmp ?
You'd use something like (mpz_sizeinbase(x, 2) + 7) / 8. But in your code, don't you know the byte size a priori? Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance. _______________________________________________ nettle-bugs mailing list [email protected] http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
