![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
sci.crypt archiveRe: RSA decryption exponent d (c++)
From: Unruh <unruh-spam@physics.ubc.ca>
Date: Fri Mar 31 2006 - 22:53:33 CEST
Timo Johansson <johansson@despammed.com> writes:
>Hello,
>TJakobsen wrote:
>d = e^{-1} = e^{phi(n)-1} (mod phi(n))
>since phi(n) = 0 (mod phi(n))
>> I have used the following numbers:
>So, maybe it's more simple for you to compute
>e^{phi(n)-1} = 25^3167
>The result is a quite huge number, but you can use modulo reduction after
>unsigned long int d,e;
>e=25;
3167=110001011111
>although i'd prefer using the extended euclidean alg...!
Similarly.
>regards, Timo
|