S.Mehdi Sheikhalishahi wrote:
Hi All
 I want to use RSA_public_encrypt to encrypt some
information but It has restriction on the size of
information.I heared that I must use split message
block.How can I split message blocks.
Please Help me.

It is not a good practice to use asymmetric cryptographic algorithms (RSA) for bulk encryption. Better create a random key (say, 128 or 256 bits (16 or 32 bytes)), encrypt your data with that key using symmetrical cipher (Blowfish, AES), then encrypt the key itself using RSA_public_encrypt() and throw the key off.


-- Lev Walkin [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to