Chosenplaintext
Chosen-plaintext attack (CPA) is a cryptanalytic model in which an attacker can obtain ciphertexts for plaintexts of their choosing in order to learn information about the secret data or the encryption key. The goal is typically to distinguish between the encryptions of two chosen messages or to recover aspects of the plaintext distribution, rather than directly to recover the key. CPA is a foundational notion for assessing confidentiality in encryption schemes.
There are two common variants: non-adaptive CPA and adaptive CPA. In the non-adaptive setting, the attacker submits
CPA is closely related to, but weaker than, indistinguishability under chosen-plaintext attacks (IND-CPA). An encryption scheme