OpenSSL comes as two parts already: crypto and SSL library.

Extracting the RSA code from crypto/RSA/ and compiling it as is is
relatively simple - at least at a level of what I consider simple; the
biggest part of work is related the e_os.h/e_os2.h header files which
contain all the system-dependent / portability definitions.

So in the end it depends very much on how many platforms (platform =
{compiler, run-time library, operating system, processor} combination)
you wish to have the code run and work properly. If the answer is
'more than one platform', I suggest you stick with the crypto lib as
it comes, maybe turn off a lot of the other stuff (check the no-mdc2,
and other no* configure parameters for this) so that you keep the full
benefit of a tried and tested cross-portable header environment for
the RSA code.

If you only need to run this stuff on one platform, ever, you /may/
take e_os.h and e_os2.h apart and strip all the bits you don't need.
This can be done in a very brute force way, but it's a bit 'cleaner'
to just scan those files and kick out the platform code that isn't for
you.


This assumes you want the raw, uncut dope, _without_ the EVP and other
enveloping goodness, of course. ;-)

Though I can think of easier ways to get raw, bleeding RSA code...
(old recollection of RSAref code pops up)



Incidentally, this isn't for some sort of end-of-term assignment? The
number of 'raw crypto' questions is seeing a bit of a peak again,
recently. And it's that time of year, you know...


Cheers,

Ger






On Fri, Nov 28, 2008 at 12:24 PM, Clemens26 <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have probably a very stupid question but anyway there we go. I am just
> wondering
> if it is simple to extract the RSA functionality from the OpenSSL library? I
> have heard
> that it should be possible to compile and run the crypto part of OpenSSL
> alone so I assume it
> shouldnt be a big to do the same for RSA?
>
> Thanks for comments on this issue!
> --
> View this message in context: 
> http://www.nabble.com/RSA-%22standalone%22-tp20732845p20732845.html
> Sent from the OpenSSL - User mailing list archive at Nabble.com.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
>



-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   [EMAIL PROTECTED]
mobile: +31-6-11 120 978
--------------------------------------------------
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to