Certified Information Systems Security Professional (CISSP)
Ciphertext-only vs known-plaintext vs chosen-plaintext attacks
RFC 4949 separates cryptanalytic attacks by what the analyst holds. Ciphertext-only uses intercepted cipher text alone. Known-plaintext uses some pairs of plain text and matching cipher text. Chosen-plaintext uses cipher text for plain text the analyst selected. Chosen-ciphertext uses plain text for cipher text the analyst selected.
What does the analyst hold in each attack?
In a ciphertext-only attack the analyst tries to determine the key solely from intercepted cipher text. RFC 4949 notes the analyst may still know other clues: the algorithm, the language of the plain text, its subject matter and some probable words. Knowing these does not change the attack type.
In a known-plaintext attack the analyst has some plaintext-ciphertext pairs but did not choose them. In a chosen-plaintext attack the analyst dictates the plain text and learns the matching cipher text. In a chosen-ciphertext attack the analyst dictates the cipher text and learns the matching plain text.
The test is who selected the input and which side of the pair it is. Access to an encryption function points to chosen-plaintext. Access to a decryption function points to chosen-ciphertext.
How do brute force and birthday attacks differ?
RFC 4949 defines brute force as an exhaustive procedure that tries a large number of possible solutions. Its example is decrypting a message with every possible key when the analyst already knows the decryption algorithm.
A birthday attack uses a statistical property. For a function with an N-bit output, 2^(N/2) randomly chosen inputs give a probability greater than one half that at least two outputs are identical. For a 64-bit output that is about 2^32 inputs.
A birthday attack finds two inputs with the same output much faster than brute force. RFC 4949 adds a limit: no birthday attack lets an adversary decrypt a given cipher text, or find an input for a given hash result, any faster than brute force.
What is work factor?
In cryptography, RFC 4949 defines work factor as the estimated amount of computing power and time needed to break a cryptographic system. In the wider computer security sense it is the estimated effort or time an intruder would need to penetrate a system or defeat a countermeasure, given specified expertise and resources.
Where the exam catches people
Believing knowledge of the algorithm or the message language makes an attack known-plaintext: RFC 4949 allows those clues inside a ciphertext-only attack.
Believing known-plaintext and chosen-plaintext are the same: in the first the analyst obtains pairs, and in the second the analyst selects the plain text.
Believing feeding constructed blocks into a decryption device is chosen-plaintext: the analyst is selecting cipher text, so it is chosen-ciphertext.
Believing a birthday attack breaks a specific hash value faster than brute force: it only finds some pair of colliding inputs faster.
Believing a birthday attack on an N-bit function needs about 2^N inputs: it needs about 2^(N/2).