Hi Sebastain
 
you may use
 
RSAES_PKCS1v15_Decryptor;
RSAES_PKCS1v15_Encryptor; (if u want to use PKCS1 padding scheme)
or
RSAES_OAEP_SHA_Decryptor;
RSAES_OAEP_SHA_Encryptor;(it u want to use OAEP padding scheme)
they are type definitions defined in rsa.h
 
Regards
Haytham Mohammed

Sebastian Kopsan <[EMAIL PROTECTED]> wrote:
Hello together,

I downloaded Crypto++ last week and after a few hours of playing around with it I was really pleased how easy you make it to handle encryption, signing, etc.

Today I wanted to encrypt a file (1 KB) using RSA, but it always failed with an exception. After some diggin in the mailing list archive I found out that the maximum length you can encrypt using RSA depends on the key strength. I also read that the best way to encrypt larger files is a symmetric cipher.

But in fact my file will be always one KB, so I would prefereably not have the overhead of transmitting the symmetric key.

In Java I may RSA encrypt files of any length (The padding is done automatically). Is there any way to do that with Crypto++ ?

I've searched google and the mailing list for hours, but didn't find any suitable information :(

Thanks in advance,
Sebastian Kopsan



Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

Reply via email to