I did a fair bit of testing, and found that with a 512 bit key, i can
encrypt messages up to 53 bytes in length, and with a 1024 bit key i can
encypt up to 117 bytes of data. 
Is this a result of me not setting something up before i do the
RSA_public_encrypt, or incorrectly calling the function? Or is it a
limitation or a bug?
 
the call i use is: 
success = RSA_public_encrypt(Len, (unsigned char *)From, (unsigned char
*)To, mRSAPublic, RSA_PKCS1_PADDING);
 
On success, the length of the encrypted string is 64 bytes for a 512 bit
key, and 128 bytes for a 1024 bit key. 
 
Are there functions to pack/unpack blocks of RSA encrypted data using these
blocksizes, because i can't find any, and i would have thought that it would
be a standard requirement to encrypt more than 53 bytes of data. Even if
there were such a function, wouldn't they be less secure for transimitting
data, because people could cut and paste blocks?
 
Can someone please help me out or point me to some documentation?
 
Ben Wooller
 
 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to