Creating RSA key from given prime numbers

2008-07-17 Thread Didier Stevens
For educational purposes, I want to use openssl to create an RSA key
with prime numbers I provide.

Is this possible with an openssl command, or do I have to adapt the source code?
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: Creating RSA key from given prime numbers

2008-07-17 Thread Marek . Marcola
Hello,

[EMAIL PROTECTED] wrote on 07/17/2008 10:17:14 PM:

 For educational purposes, I want to use openssl to create an RSA key
 with prime numbers I provide.
 
 Is this possible with an openssl command, or do I have to adapt the 
source code?
From command line (openssl executable) this is not possible.

Best regards,
--
Marek Marcola [EMAIL PROTECTED]

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: Creating RSA key from given prime numbers

2008-07-17 Thread Кольцов Андрей

Didier Stevens пишет:

For educational purposes, I want to use openssl to create an RSA key
with prime numbers I provide.

Is this possible with an openssl command, or do I have to adapt the source code?

  


You can write a little program in C using OpenSSL library.
You should know p, q and e numbers and have to calculate some other 
numbers: n, d, dmp1, dmq1, iqmp.

Example code is in /crypto/rsa/rsa_gen.c file.

best regards,
Andrey Koltsov

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]