IT lexicon › Security › Chosen-ciphertext attack

Chosen-ciphertext attack

Security På svenska → Updated: 2026-10-12

In a chosen-ciphertext attack, the attacker gets a decryption oracle to decrypt chosen ciphertexts and learns about the key from the results.

The attacker can send arbitrary ciphertexts to a decryption oracle and observe the output. It is stronger than a chosen-plaintext attack because it allows manipulation of ciphertexts. It is what happens when a server decrypts user data and responds differently depending on whether the padding is valid.

Bleichenbacher's 1998 padding oracle attack on RSA with PKCS #1 v1.5 is the classic example. Anyone designing encryption schemes today aims for IND-CCA2 security to rule this out. Classical cryptography rarely had decryption oracles, but the principle is the same.

← Back to the lexicon