Re: [mpir-devel] Re: Question about mpz_powm usage

2012-06-24 Thread michael85
Thanks for pointing that out. I just noticed it myself, after pulling hairs out for a few hours :( I guess this is a documentation bug, or something... Regards, Mihai On Sunday, June 24, 2012 11:29:36 PM UTC+2, casevh wrote: > > On Sun, Jun 24, 2012 at 2:21 PM, michael85 wrote: > &g

[mpir-devel] Re: Question about mpz_powm usage

2012-06-24 Thread michael85
There's a small copy / paste gone wrong issue in the code: mpz_powm_ui(out, x, -1UL, n). Unfortunately, even after I remove the UL, the behavior is the same. Mihai On Sunday, June 24, 2012 10:47:36 PM UTC+2, michael85 wrote: > > Hello Everyone, > > For some reason, I am not a

[mpir-devel] Question about mpz_powm usage

2012-06-24 Thread michael85
Hello Everyone, For some reason, I am not able to understand why the following code prints different results: mpz_t x, n, out; mpz_init_set_ui(x, 2UL); mpz_init_set_ui(n, 7UL); mpz_init(out); mpz_invert(out, x, n); gmp_printf ("%Zd\n", out);//prints 4. 2 * 4 (mod 7) = 1

[mpir-devel] Re: Windows 7 x64 and VS2010 Professional

2012-03-27 Thread michael85
n Tuesday, March 27, 2012 5:42:25 PM UTC+2, Cactus wrote: > > > On Tuesday, March 27, 2012 2:38:57 PM UTC+1, michael85 wrote: >> >> Hello, >> >> I have started working on a client server system in C++ for privacy >> preserving signal processing applicat

[mpir-devel] Windows 7 x64 and VS2010 Professional

2012-03-27 Thread michael85
Hello, I have started working on a client server system in C++ for privacy preserving signal processing applications. Since this system will rely on certain public key cryptography primitives, I decided to try and implement them with MPIR, since GMP seems a bit more complicated to compile on Wi