Zero an mpz_t?
marc.glisse at inria.fr
Sun Dec 18 21:56:17 CET 2011
On Sun, 18 Dec 2011, james at jamesbb.co.uk wrote:
> Is there a way to 'zero' an mpz_t integer, such that all of the bytes used to
> store the number are overwritten?
> I'm assuming that assigning the value of 0 will not do this, but I might be
obviously, you can do it by hand (see
http://gmplib.org/manual/Integer-Internals.html), but gmp doesn't provide
an interface to do that because there is no (arithmetic) reason to do such
It is hard to give better advice without knowing what your exact goal is.
More information about the gmp-discuss