- Let be a number known by sender and receiver.
- Plaintext is encrypted in blocks, with each block having a binary value less than . Block size must be less than or equal to . Each block represents a number such that .
We define RSA encryption and decryption of for some (properly) chosen values of and
It is a public-key encryption algorithm with:
- public key
- private key
For the algorithm to work, the following requirements must be met:
- It is possible to find values of , , such that for all .
- It is relatively easy to calculate and for all values of .
- It is infeasible to determine given and .