Aaron Boxer boxerab@gmail.com 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