Re: RSA Private Key representation
- From: Kristian Gjøsteen <kristiag+news@xxxxxxxxxxxx>
- Date: Sat, 16 May 2009 15:49:32 +0000 (UTC)
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.
Divide by 2 until the secrect exponent is odd, raise a random number
to that power, then square it until you get 1. If you got -1 before you
got 1, try again. Otherwise, subtract 1 from what you got before 1 and
compute the gcd with the modulus.
Or: Write d = 2^t s, s - odd. Choose random a, find smallest i s.t.
a^(2^i s) = 1 (mod n). If i=0, or a^(2^(i-1) s) = -1 (mod n), try again.
Otherwise compute gcd(n, a^(2^(i-1) s) - 1), which will be a proper
factor of n.
--
Kristian Gjøsteen
.
- Follow-Ups:
- Re: RSA Private Key representation
- From: Kristian Gjøsteen
- Re: RSA Private Key representation
- From: Mike Amling
- Re: RSA Private Key representation
- From: Scott Fluhrer
- Re: RSA Private Key representation
- References:
- RSA Private Key representation
- From: Giuliano Bertoletti
- RSA Private Key representation
- Prev by Date: RSA Private Key representation
- Next by Date: Re: Streambuddy
- Previous by thread: RSA Private Key representation
- Next by thread: Re: RSA Private Key representation
- Index(es):
Relevant Pages
|