Problem with gmp_randinit_set

Niels Möller nisse at lysator.liu.se
Sat Feb 18 08:22:53 UTC 2017


Pedro Gimeno <gmpdiscuss at formauri.es> writes:

> The current seeding function takes the seed and calculates a modular
> exponentiation in order to generate a randomized buffer. That's what
> is causing the seeding function to need the mpz layer. If the output
> is to be made compatible, without using mpz, maybe minigmp can be used
> to provide the modular exponentiation.

It's a bit tricky to use gmp and mini-gmp in the same program, they're
not binary compatible. But to use a general exponentiation routine,
mpn_powm is available.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list