Initialization vector (IV)

A non-secret value supplied with the key when encryption starts, so that the same plaintext under the same key does not produce the same ciphertext each time.

An initialization vector is an input given to a block cipher mode or stream cipher alongside the key, so that encrypting the same message twice under one key gives different ciphertexts. It is not secret and usually travels with the ciphertext. Its requirements depend on the mode. NIST SP 800-38A requires the IV for Cipher Block Chaining to be unpredictable, and the counter blocks in counter mode to be distinct across all messages under a key; NIST SP 800-38D sets uniqueness requirements for the IV in Galois/Counter Mode.

The IV is closely related to the nonce. In counter mode and GCM it works as a nonce, a value that must not repeat under the same key, while CBC also needs it to be unpredictable. Electronic codebook mode takes no IV at all. IV reuse is a classic implementation failure: WEP used a 24-bit IV that repeated on busy networks, exposing RC4 keystream, and a repeated nonce in GCM can allow forged authentication tags.

Exam relevance: a scenario describing identical ciphertext for repeated messages, or keystream recovered because a value repeated, is likely to turn on a missing or reused IV. Candidates are expected to know that the IV is public, that it makes output vary rather than adding secrecy, and that reuse under the same key is the defect.