Re: RSA Private Key representation
- From: Mike Amling <nospam@xxxxxx>
- Date: Mon, 18 May 2009 11:20:53 -0500
Kristian Gjøsteen wrote:
Kristian Gjøsteen <kristiag+news@xxxxxxxxxxxx> wrote:Giuliano Bertoletti <gbe32241@xxxxxxxxx> wrote:I was wondering if it's mathematically easy to go back and forth from the canonical RSA private key representation (modulus + private exponent) to the CRT form (PRIME_1, PRIME_2, COEFFICIENT, EXP_1, EXP_2).Use the secret exponent to factor the modulus.
Ouch, that had too many mistakes. Let me do it more carefully.
If you can factor the modulus, then you can get to the CRT form. We can
factor the modulus if we have the public key (n,e) and the private key
(n,d).
Let n=pq. Modulo n, we have four square roots of one, 1, -1, and two
more, call them x and y. We can call them non-trivial square roots of
one. We know that x and y must be +- 1 modulo p and q, so suppose x =
1 (mod p), x = -1 (mod q). Then x-1 = 0 (mod p) and x-1 != 0 (mod q).
In other words, p divides x-1, but q does not divide x-1. This means
that gcd(x-1,n) = p.
Conclusion: if we can find a non-trivial square root of one modulo n,
we can factor n.
We know that ed = 1 (mod (p-1)(q-1)).
No, ed mod (p-1)(q-1) may be a multiple of gcd(p-1, q-1).
You know that ed = 1 mod p-1 and that ed = 1 mod q-1, from which you may conclude ed = 1 mod lcm(p-1, q-1).
In other words, (p-1)(q-1) divides
ed-1. Modulo n, every invertible element has order dividing (p-1)(q-1).
Write ed - 1 = 2^t s, where s is odd. Let a be invertible modulo n.
Then we know that a^(ed-1) = 1 (mod n). Find the smallest i such that
a^(2^i s) = 1 (mod n). If i>0, then 2^(2^(i-1) s) is a square root of
one modulo n. Approximately half of all a will result in a non-trivial
square root of one in this manner.
In other words, write ed - 1 = 2^t s, s - odd. Choose a random a, find the
smallest i such that a^(2^i s) = 1 (mod n). If i>0 and a^(2^(i-1) s) is
a non-trivial square root of one modulo n, factor n as above. Otherwise,
try a new a.
--Mike Amling
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.
- Follow-Ups:
- Re: RSA Private Key representation
- From: Kristian Gjøsteen
- Re: RSA Private Key representation
- References:
- RSA Private Key representation
- From: Giuliano Bertoletti
- Re: RSA Private Key representation
- From: Kristian Gjøsteen
- Re: RSA Private Key representation
- From: Kristian Gjøsteen
- RSA Private Key representation
- Prev by Date: wie kann ich leicht geld , poker 2 online spielen , legal geld im internet , geld verdienen mit online casino , ich will bargeld gewinnen , schnell gutes geld verdienen , einfach geld verdienen im internet , schnell und sicher geld de , man schnel
- Next by Date: Re: Streambuddy
- Previous by thread: Re: RSA Private Key representation
- Next by thread: Re: RSA Private Key representation
- Index(es):
Relevant Pages
|