Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - How to map openssl obtained private key parameters to RSAParameters struct members?

Reply
 
Old 04-11-2008   #1 (permalink)
SammyBar


 
 

How to map openssl obtained private key parameters to RSAParameters struct members?

Hi all,

I need to fill a System.Security.Cryptography.RSAParameters structure with
my private key parameters. The private key is in PEM format so by using
openssl I can obtain all the parameters. But openssl names the parameters
different to the RSAParameters struct. The openssl output is in the form

openssl rsa -in key.pem -noout -text

modulus: ...
publicExponent: ...
privateExponent: ...
prime1: ...
prime2: ...
exponent1: ...
exponent2: ...
coefficient: ...

How these map to the RSAParameters membersD, DP, DQ, Exponent, InverseQ,
Modulus, P y Q?

Thanks in advance
Sammy



My System SpecsSystem Spec
Old 05-23-2008   #2 (permalink)
Claudio


 
 

RE: How to map openssl obtained private key parameters to RSAParameter

Hi Sammy,

version Version,
modulus INTEGER, n
publicExponent INTEGER, e
privateExponent INTEGER, d
prime1 INTEGER, p
prime2 INTEGER, q
exponent1 INTEGER, d mod (p-1)
exponent2 INTEGER, d mod (q-1)
coefficient INTEGER, (inverse of q) mod p

C.


"SammyBar" wrote:
Quote:

> Hi all,
>
> I need to fill a System.Security.Cryptography.RSAParameters structure with
> my private key parameters. The private key is in PEM format so by using
> openssl I can obtain all the parameters. But openssl names the parameters
> different to the RSAParameters struct. The openssl output is in the form
>
> openssl rsa -in key.pem -noout -text
>
> modulus: ...
> publicExponent: ...
> privateExponent: ...
> prime1: ...
> prime2: ...
> exponent1: ...
> exponent2: ...
> coefficient: ...
>
> How these map to the RSAParameters membersD, DP, DQ, Exponent, InverseQ,
> Modulus, P y Q?
>
> Thanks in advance
> Sammy
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Remove members of the group. Members are from different domains PowerShell
Private Network becomes Public on reboot and I want it as Private. Vista networking & sharing
Struct\Class Creation PowerShell
[PS] Help exposing private members on object? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46