Chosen-plaintext attack
A chosen-plaintext attack (CPA) is a model for cryptanalysis which assumes that the attacker can choose random plaintexts to be encrypted and obtain the corresponding ciphertexts. The goal of the attack is to gain some further information which reduces the security of the encryption scheme.  In the worst case, a chosen-plaintext attack could expose secret information after calculating the secret key.