Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / February 2008

Tip: Looking for answers? Try searching our database.

Generating RSA keys based on p, q, and exponent

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeronimo Bertran - 08 Feb 2008 19:46 GMT
Hello,

Is there any function to generate public/private keys based on known p, q
and exponent values and use these in RSACryptoServiceProvider?

Thanks.
Valery Pryamikov - 11 Feb 2008 08:20 GMT
On Feb 8, 8:46 pm, Jeronimo Bertran
<jeronimo.bert...@newsgroup.nospam> wrote:
> Hello,
>
> Is there any function to generate public/private keys based on known p, q
> and exponent values and use these in RSACryptoServiceProvider?
>
> Thanks.

for RSA you know private key when you have modulus (p*q) and
decryption exponent. since you have p and q and exponent d - means
that you already have private key.

if you have both exponents and modulus (but no p and q) - its easy to
find p and q.
if you have (p-1)*(q-1) and one of exponents - to find second exponent
just take multiplicative inverse of first exponent mod (p-1)*(q-1).

if you ask about CRT (Chinese Remainder Theorem) optimization for RSA
decryption when you have d, p and q, all you need is just to calculate
multiplicative inverses of P and Q...

all above could be done easily with help of any biginteger library
that supports modular operations...

-Valery

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.