Hello,

owner-openssl-us...@openssl.org wrote on 02/18/2009 07:17:51 PM:

> On Wed, Feb 18, 2009 at 4:24 PM, Guyotte, Greg <gguyo...@ti.com> wrote:
> > Ger, thank you for this response.  I really do just need the RSA 
decryption bits, so I
> think that the approach you recommend is far too heavy-handed for me.  I 
will check out 
> the rsaref and cryptlib that you mentioned!
> 
> All right. Since you don't need anything more than just that, I think
> that indeed is the smarter move now.

Sorry for response to this email but I do not have earlier posts.

If you want RSA decryption routine then you may try to extract from 
OpenSSL
some BIGNUM files, probably:
bn_add.c
bn_asm.c  (probably may be removed - depend on your platform)
bn_ctx.c
bn_div.c
bn_exp.c
bn_gcd.c
bn_lcl.h
bn_lib.c
bn_mod.c
bn_mont.c
bn_mul.c
bn_recp.c
bn_shift.c
bn_sqr.c
bn_word.c
cryptlib.h 
and compile this to library format. Of course some modification will be 
needed.
With BN library you need only RSA decryption routine which you can borrow 
from file:
rsa_eay.c
Depending on decryption scheme you may need RSA_eay_public_decrypt()
or RSA_eay_private_decrypt().
If you will need RSA_eay_public_decrypt() some BN files needed for
Montgomery method may are not required (bn_mont.c).

The most complicated part is to properly define header files
depending on you platform architecture (8bit/16bit/32bit).

Best regards,
--
Marek Marcola <marek.marc...@malkom.pl>



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to