Key length

The size of a cryptographic key in bits. It sets the key space, but the security strength an attack actually faces can be lower, as NIST SP 800-57 Part 1 tabulates.

Key length is the number of bits in a cryptographic key. For a well-designed symmetric cipher each added bit doubles the number of possible keys, so a 128-bit key gives about 2^128 candidates for an exhaustive search. That is why AES with 128, 192 or 256-bit keys is beyond practical brute force, while the 56-bit key of the Data Encryption Standard was searched exhaustively by purpose-built hardware in 1998.

Key length and security strength are different measures. NIST SP 800-57 Part 1 Rev. 5 expresses security strength as the work an attack requires, in bits, and gives comparable strengths across algorithm families: RSA with a 3072-bit key and elliptic curve cryptography with a 256-bit key are each rated at about 128 bits, like AES-128. Three-key Triple DES uses 168 bits of key yet is rated at about 112, because a meet-in-the-middle attack reduces the work.

Exam relevance: a scenario is likely to compare key lengths across algorithms, or to ask whether a longer key fixes a design flaw. Candidates are expected to compare security strength rather than raw bit counts, to recognise that a 2048-bit RSA key is not stronger than a 128-bit AES key, and to know that a longer key does not repair a weak mode or poor key storage.