I have a 2048 bit key. From your original post, it appears that the blocksize for encrypting should be the same as the blocksize for decrypting, but my professor told us this isn't the case.
No, not exactly although you're on the right track. If you have a 2048-bit key, then the encrypted data will be an array of 2048/8 = 256 bytes. Then, the input data can be
up to 256-11=245 bytes.
One thing to remember is that with RSA and actually many other algorithms including AES usually, the "useful" data that you supply isn't
literally the data that's encrypted. Usually, some extra data needs to be included, for example, indicating the actual length of the data in some way, data for any integrity checking... To the user, the number of input bytes doesn't necessarily equal the number of bytes following encryption.
Reputation Points: 120
Solved Threads: 7
Junior Poster in Training
Offline 53 posts
since Dec 2008