I have two questions about RSA encryption to confirm:
Assume use RSA 2048-bit key pair, what is the secure encryption mode? Are ECB / OAEPWithSHA-256AndMGF1Padding and ECB / OAEPWithSHA-1AndMGF1Padding secure modes?
For example, we know the maximim length of plaintext to be encrypted is limited by key length.
RSA was not designed to work with large amount of data. You can process messages only with limited length, that depends on the key size. The bigger key is, the bigger message can be encrypted.
For 2048 key, what is the maximum plaintext length? What is the math relation between them?