You certainly *can* use RSA in a block cipher mode, dividing your plaintext into fixed-size blocks and encrypting each individually with RSA (including modes like CBC, etc). You'd have to define your own encryption/decryption wrappers in Crypto++, as you were correct (AFAIK) that the supplied classes won't accept RSA as a block cipher engine.
As for whether it would be smart - the answer is resounding No. Hybrid mode is what the normal people use. On Thu, Feb 17, 2011 at 10:32, Robert Bielik < [email protected]> wrote: > Ok, I'd hoped for a quicker response ;) Anyway, as I've gathered: > There is no way to use RSA public/private keys in a block cipher mode, > what I can do is to encrypt the AES key + iv with the public key, > store it on the receiving end, then when I need to decrypt something I > decrypt the AES key + iv with my private key, and start decrypting. > > Have I missed something ? :) > > TIA > /Rob > > -- > You received this message because you are subscribed to the "Crypto++ > Users" Google Group. > To unsubscribe, send an email to > [email protected]. > More information about Crypto++ and this group is available at > http://www.cryptopp.com. -- Regards, Uri -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
