Re: mpz_limbs interface

2014-02-09 Thread bodrato
Ciao, Il Sab, 8 Febbraio 2014 9:50 am, Niels ha scritto: bodr...@mail.dm.unipi.it writes: So, maybe we can discuss about adding a new function to the _limbs interface: mp_ptr mpz_init_limbs_write (mpz_t x, mp_size_t n) What is this intended for? Looks a bit like like mpz_init2.

mpz_roinit_n documentation

2014-02-09 Thread bodrato
Should we add to the documentation of mpz_roinit_n (mpz_t x, const mp_limb_t *xp, mp_size_t xs) that the array pointed by xp must have at least a readable limb even if xs==0? Regards, m -- http://bodrato.it/papers/ ___ gmp-devel mailing list

mpn_sec_powm

2014-02-09 Thread Niels Möller
After some discussion with Torbjörn, I intend to change mpn_sec_powm to take the exponent size argument in bits, rather than limbs (because the current code may leak high bit of the exponent, which can cause serious problems for some applications, e.g., dsa signatures). But first, I'd like to fix

Re: mpz_roinit_n documentation

2014-02-09 Thread Niels Möller
bodr...@mail.dm.unipi.it writes: Should we add to the documentation of mpz_roinit_n (mpz_t x, const mp_limb_t *xp, mp_size_t xs) that the array pointed by xp must have at least a readable limb even if xs==0? If that's not obvious from other documentation of mpz (which I doubt it is), I