![]() |
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: Timo Johansson <johansson@despammed.com>
Date: Fri Mar 31 2006 - 22:12:56 CEST
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;
although i'd prefer using the extended euclidean alg...!
regards, Timo
|