Jump to content

Key space (cryptography)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Citation bot (talk | contribs) at 03:00, 18 November 2020 (Add: isbn. Correct ISBN10 to ISBN13. | You can use this bot yourself. Report bugs here. | Suggested by Abductive | All pages linked from cached copy of User:Abductive/sandbox | via #UCB_webform_linked 259/500). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In cryptography, an algorithm's key space refers to the set of all possible permutations of a key.[1][2]

Description

To prevent an adversary from using a brute-force attack to find the key used to encrypt a message, the key space is usually designed to be large enough to make such a search infeasible. On average, half the key space must be searched to find the solution.[3]

Another desirable attribute is that the key must be selected truly randomly from all possible key permutations. Should this not be the case, and the attacker is able to determine some factor that may influence how the key was selected, the search space (and hence also the search time) can be significantly reduced. Humans do not select passwords randomly, therefore attackers frequently try a dictionary attack before a brute force attack, as this approach can often produce the correct answer in far less time than a systematic brute force search of all possible character combinations.

Examples

If a key were eight bits (one byte) long, the keyspace would consist of 28 or 256 possible keys. Advanced Encryption Standard (AES) can use a symmetric key of 256 bits, resulting in a key space containing 2256 (or 1.1579 × 1077) possible keys.

In the DES block cipher, 56-bit key is used, resulting in a relatively small key space of size 256 (or 7.2058 x 1016), which, as was demonstrated in 1998, can be searched exhaustively in 56 hours with a desktop computer.[4]

References

  1. ^ "CISSP Exam Preparation". http://www.flashcardmachine.com/: Flashcard machine. Retrieved 2010-03-11. All possible values that can be set to generate a key. {{cite web}}: External link in |location= (help)
  2. ^ "Q: What is a "keyspace"?". http://www.experts123.com/: experts123. Retrieved 2011-03-11. A "keyspace" is the theoretical set of all possible permutations of a key, given a set key size. {{cite web}}: External link in |location= (help)CS1 maint: location (link)
  3. ^ "Flash Card Machine". Question: Why do the statistics measure estimate time to having 50% of the keyspace searched? Answer: Because we don't know where in the keyspace of 72,000,000,000,000,000 the right answer is. On the average, only 50% of the keyspace needs to be searched before a solution is found.
  4. ^ Congressional Record. 17. Vol. 144. United States Senate. October 7–9, 1998. p. 25124. ISBN 9780160680830.