Skill 3.7.5

Chosen ciphertext

Key Concepts

In a chosen-plaintext attack, the attacker gets chosen plaintexts encrypted and analyses the results. In a chosen-ciphertext attack, the attacker submits chosen ciphertexts for decryption, for example through a server that reveals whether padding is valid (a padding oracle attack).

Defences include authenticated encryption (such as AES-GCM), constant error messages that reveal nothing about decryption failures, and protocols designed to be secure against adaptive chosen-ciphertext attacks.