Hi, 

First, thanks for providing an open source
implementation of SSL.  The package built with no
problems on my Linux box.

I have been running some bench marks for assymetric
key encryption.  Using RSA yeilds some very long
encryption and decryption times.

I'm using a 2048 bit key since strong encryption is
required for my app.  I'm encrypting relatively large
files (10mb and eventually much larger).  

My gcc compiled test program is as simple as possible:

1)RSA_generate a 2048 bit key
2)load a file in chunks of size (RSA_size(key) - 11) 
3)RSA_public_encrypt the buffer with PKCS1 padding
4)dump the buffer to a file called test.enc

then

5)read test.enc in RSA_size(key) chunks
6)RSA_private_decrypt the buffer (PKCS1 padding)
7)Output decrypted buffer to another test file

It takes 5 mins to encrypt and an hour+ to decrypt. 
Another package using DH Elgamal takes a fraction of
the time.  I am aware that the RSA libs are mainly
used for smaller data sets.

Sanity check: I need a very secure algo but it needs
to be fast on large data sets.  What is the best way
through openssl?  Any examples?

Thanks in advance.  I'm in a jam.

Patrick


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to