Of the following, in which type of an attack does the attacker try every possible key with the decryption algorithm, knowing that eventually one of the keys will work?
A . chosen-ciphertext attack
B . ciphertext-only attack
C . brute-force attack
D . birthday attack
Answer: C