Pedro Gimeno <gmpdisc...@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.
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to