All Topics  
Cryptanalysis

 
Cryptanalysis

   Email Print
   Bookmark   Link






 

Cryptanalysis



 
 
Cryptanalysis (from the Greek
Greek language

Greek is an Indo-European languages native to the southern Balkan peninsula, the language of the Greek people. It forms an independent branch within Indo-European....
 kryptós, "hidden", and analýein, "to loosen" or "to untie") is the study of methods for obtaining the meaning of encrypted information, without access to the secret information which is normally required to do so.






Discussion
Ask a question about 'Cryptanalysis'
Start a new discussion about 'Cryptanalysis'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Fialka Rotors in Machine
Cryptanalysis (from the Greek
Greek language

Greek is an Indo-European languages native to the southern Balkan peninsula, the language of the Greek people. It forms an independent branch within Indo-European....
 kryptós, "hidden", and analýein, "to loosen" or "to untie") is the study of methods for obtaining the meaning of encrypted information, without access to the secret information which is normally required to do so. Typically, this involves finding a secret key. In non-technical language, this is the practice of codebreaking or cracking the code, although these phrases also have a specialised technical meaning (see code
Code (cryptography)

In cryptography, a code is a method used to transform a message into an obscured form, preventing those who do not possess special information, or key , required to apply the transform from understanding what is actually transmitted....
).

"Cryptanalysis" is also used to refer to any attempt to circumvent the security of other types of cryptographic algorithm
Algorithm

In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
s and protocols
Cryptographic protocol

A security protocol is an abstract or concrete protocol that performs a information security-related function and applies cryptographic methods....
 in general, and not just encryption
Encryption

In cryptography, encryption is the process of transforming information using an algorithm to make it unreadable to anyone except those possessing special knowledge, usually referred to as a key ....
. However, cryptanalysis usually excludes methods of attack that do not primarily target weaknesses in the actual cryptography
Cryptography

Cryptography is the practice and study of hiding information. In modern times cryptography is considered a branch of both mathematics and computer science and is affiliated closely with information theory, computer security and engineering....
, such as bribery
Bribery

Bribery, a form of pecuniary corruption, is an act implying money or gift given that alters the behaviour of the recipient. Bribery constitutes a crime and is defined by Black's Law Dictionary as the Offer and acceptance, Gift, Offer and acceptance, or Solicitation of any item of value to influence the actions of an official or other pers...
, physical coercion
Rubber-hose cryptanalysis

In cryptography, rubber-hose cryptanalysis is a euphemism for the extraction of cryptographic secrets from a person by coercion, in contrast to a mathematical or technical cryptanalysis....
, burglary
Burglary

Burglary is a crime the essence of which is entry into a building for the purposes of committing an offence. Usually that offence will be theft, but most jurisdictions specify others which fall within the ambit of burglary....
, keystroke logging
Keystroke logging

Keystroke logging is a method of capturing and recording user keystrokes. The technique and name came from before the era of the graphical user interface; loggers nowadays would expect to capture mouse operations and screenshots....
, and social engineering
Social engineering

Social engineering may refer to:* Social engineering , efforts to influence popular societies on a large scale.* Social engineering , the practice of obtaining confidential information by manipulating users....
, although these types of attack are an important concern and are often more effective than traditional cryptanalysis.

Even though the goal has been the same, the methods and techniques of cryptanalysis have changed drastically through the history of cryptography, adapting to increasing cryptographic complexity, ranging from the pen-and-paper methods of the past, through machines like Enigma
Enigma machine

The Enigma machine is any of a family of related electro-mechanical rotor machines that have been used to generate ciphers for the encryption and decryption of secret messages....
 in World War II
World War II

World War II, or the Second World War , was a global military conflict which involved a Participants in World War II, including all of the great powers, organised into two opposing military alliances: the Allies of World War II and the Axis powers....
, to the computer-based schemes of the present. The results of cryptanalysis have also changed — it is no longer possible to have unlimited success in codebreaking, and there is a hierarchical classification of what constitutes a rare practical attack. In the mid-1970s, a new class of cryptography was introduced: asymmetric cryptography. Methods for breaking these cryptosystem
Cryptosystem

There are two different meanings of the word cryptosystem. One is used by the cryptographic community, while the other is the meaning understood by the public....
s are typically radically different from before, and usually involve solving carefully-constructed problems in pure mathematics
Pure mathematics

Broadly speaking, pure mathematics is mathematics motivated entirely for reasons other than application. It is distinguished by its Rigour#Mathematical_rigour, abstraction and mathematical beauty....
, the best-known being integer factorization
Integer factorization

In number theory, integer factorization is the breaking down of a composite number into smaller non-trivial divisors, which when multiplied together equal the original integer....
.

History of cryptanalysis


Cryptanalysis has coevolved together with cryptography, and the contest can be traced through the history of cryptography
History of cryptography

The history of cryptography begins thousands of years ago. Until recent decades, it has been the story of what might be called classical cryptography ? that is, of methods of encryption that use pen and paper, or perhaps simple mechanical aids....
—new cipher
Cipher

In cryptography, a cipher is an algorithm for performing encryption and decryption — a series of well-defined steps that can be followed as a procedure....
s being designed to replace old broken designs, and new cryptanalytic techniques invented to crack the improved schemes . In practice, they are viewed as two sides of the same coin: in order to create secure cryptography, you have to design against possible cryptanalysis.

Classical cryptanalysis

Al Kindi Cryptanalysis
Although the actual word "cryptanalysis" is relatively recent (it was coined by William Friedman in 1920), methods for breaking codes
Code (cryptography)

In cryptography, a code is a method used to transform a message into an obscured form, preventing those who do not possess special information, or key , required to apply the transform from understanding what is actually transmitted....
 and cipher
Cipher

In cryptography, a cipher is an algorithm for performing encryption and decryption — a series of well-defined steps that can be followed as a procedure....
s are much older. The first known recorded explanation of cryptanalysis was given by 9th-century Arab
Arab

An Arab is a person who Identity as such on linguistic or cultural grounds. The plural form, Arabs , refers to the Ethnocultural group at large....
ian polymath
Polymath

A polymath is a person whose knowledge is not restricted to one subject area. In less formal terms, a polymath may simply refer to someone who is very knowledgeable....
, Al-Kindi
Al-Kindi

, also known to the Western world by the Latinized version of his name 'Alkindus', was an Arab polymath: an Early Islamic philosophy, Islamic science, Islamic astrology, Islamic astronomy, Alchemy and chemistry in Islam, Logic in Islamic philosophy, Islamic mathematics, Arabic music, Islamic medicine, Islamic physics, Islamic psychologi...
 (also known as "Alkindus" in Europe), in A Manuscript on Deciphering Cryptographic Messages. This treatise includes a description of the method of frequency analysis
Frequency analysis

In cryptanalysis, frequency analysis is the study of the letter frequencies or groups of letters in a ciphertext. The method is used as an aid to breaking classical ciphers....
 (Ibrahim Al-Kadi
Ibrahim Al-kadi

Ibrahim A. Al-Kadi, Ph.D. is a Saudi electrical engineer, known especially for his work on cryptology history and in the telecom regulation sector....
, 1992- ref-3). Italian
Italy

Italy , officially the Italian Republic , is a country located on the Italian Peninsula in Southern Europe and on the two largest islands in the Mediterranean Sea, Sicily and Sardinia....
 scholar Giambattista della Porta
Giambattista della Porta

Giambattista della Porta , also known as Giovanni Battista Della Porta, and John Baptist Porta was an Italy scholar, polymath and playwright who lived in Naples at the time of the Scientific Revolution and Protestant Reformation....
 was author of a seminal work on cryptanalysis "De Furtivis Literarum Notis".

Frequency analysis
Frequency analysis

In cryptanalysis, frequency analysis is the study of the letter frequencies or groups of letters in a ciphertext. The method is used as an aid to breaking classical ciphers....
 is the basic tool for breaking most classical cipher
Classical cipher

In cryptography, a classical cipher is a type of cipher used historically but which now have fallen, for the most part, into disuse. In general, classical ciphers operate on an alphabet of letters , and are implemented by hand or with simple mechanical devices....
s. In natural languages, certain letters of the alphabet
Alphabet

An alphabet is a standardized set of letter basic written symbols each of which roughly represents a phoneme, a spoken language, either as it exists now or as it was in the past....
 appear more frequently than others; in English
English language

English is a West Germanic language that originated in Anglo-Saxon England and has lingua franca status in many parts of the world as a result of the military, economic, scientific, political and cultural influence of the British Empire in the 18th, 19th and early 20th centuries and that of the United States from the mid 20th century onwa...
, "E
E

E is the fifth letter in the Latin alphabet. Its name in English language is spelled e , plural ees . The letter E is the most commonly used letter in the Czech language, Danish language, Dutch language, English language, French language, German language, Hungarian language, Latin language, Norwegian language, Spanish language...
" is likely to be the most common letter in any sample of plaintext
Plaintext

In cryptography, plaintext is the information which the sender wishes to transmit to the receiver. Before the computer era, plaintext simply meant text in the language of the communicating parties....
. Similarly, the digraph
Digraph (orthography)

A digraph, bigraph , or digram is a pair of characters used to write one phoneme or a sequence of phonemes that does not correspond to the normal values of the two characters combined....
 "TH" is the most likely pair of letters in English, and so on. Frequency analysis relies on a cipher failing to hide these statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
. For example, in a simple substitution cipher (where each letter is simply replaced with another), the most frequent letter in the ciphertext would be a likely candidate for "E".

In practice, frequency analysis relies as much on linguistic
Linguistics

Linguistics is the science study of natural language. Linguistics encompasses a number of sub-fields. An important topical division is between the study of language structure and the study of Meaning ....
 knowledge as it does on statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
, but as ciphers became more complex, mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
 became more important in cryptanalysis. This change was particularly evident during World War II
World War II

World War II, or the Second World War , was a global military conflict which involved a Participants in World War II, including all of the great powers, organised into two opposing military alliances: the Allies of World War II and the Axis powers....
, where efforts to crack Axis
Axis Powers

The Axis powers were those countries that were opposed to the Allies of World War II during World War II. The three major Axis powers - Nazi Germany, Kingdom of Italy , and Empire of Japan - were part of a military alliance on the signing of the Tripartite Pact in September 1940, which officially founded the Axis powers....
 ciphers required new levels of mathematical sophistication. Moreover, automation was first applied to cryptanalysis in that era with the Polish Bomba
Bomba (cryptography)

The bomba, or bomba kryptologiczna was a special-purpose machine designed about October 1938 by Poland Biuro Szyfr?w cryptology Marian Rejewski to break Germany Enigma machine ciphers....
 device, use of punched card equipment, and in the Colossus
Colossus computer

The Colossus machines were electronics computing devices used by British Cryptanalysis to read encrypted Nazi Germany messages during World War II....
 — one of the earliest computers (arguably the first programmable electronic digital computer).

Modern cryptanalysis

Bombe Wh
Even though computation was used to great effect in cryptanalysis in World War II, it also made possible new methods of cryptography orders of magnitude more complex than ever before. Taken as a whole, modern cryptography has become much more impervious to cryptanalysis than the pen-and-paper systems of the past, and now seems to have the upper hand against pure cryptanalysis. The historian David Kahn
David Kahn

David Kahn is a US historian, journalist and writer. He has written extensively on the history of cryptography and military intelligence.Kahn's first book was The Codebreakers , widely considered to be a definitive account of the history of cryptography up to the mid-1960s....
 notes, "Many are the cryptosystems offered by the hundreds of commercial vendors today that cannot be broken by any known methods of cryptanalysis. Indeed, in such systems even a chosen plaintext attack, in which a selected plaintext is matched against its ciphertext, cannot yield the key that unlock other messages. In a sense, then, cryptanalysis is dead. But that is not the end of the story. Cryptanalysis may be dead, but there is - to mix my metaphors - more than one way to skin a cat.". Kahn goes on to mention increased opportunities for interception, bugging, side channel attack
Side channel attack

In cryptography, a side channel attack is any attack based on information gained from the physical implementation of a cryptosystem, rather than brute force attack or theoretical weaknesses in the algorithms ....
s and quantum computers
Quantum cryptography

Quantum cryptography, or quantum key distribution , uses quantum mechanics to guarantee secure communication. It enables two parties to produce a shared random bit string known only to them, which can be used as a key to encrypt and decrypt messages....
 as replacements for the traditional means of cryptanalysis.

Kahn may have been premature in his cryptanalysis postmortem; weak ciphers are not yet extinct, and cryptanalytic methods employed by intelligence agencies remain unpublished. In academia
Academia

Academia, Academe, or the Academy are collective terms for the community of students and scholars engaged in higher education and research....
, new designs are regularly presented, and are also frequently broken: the 1984 block cipher
Block cipher

In cryptography, a block cipher is a symmetric key algorithm cipher which operates on fixed-length groups of bits, termed blocks, with an unvarying transformation....
 Madryga
Madryga

In cryptography, Madryga is a block cipher created in 1984 by W. E. Madryga. It was designed to be easy and efficient for implementation in software....
  was found to be susceptible to ciphertext-only attack
Ciphertext-only attack

In cryptography, a ciphertext-only attack or known ciphertext attack is an attack model for cryptanalysis where the attacker is assumed to have access only to a set of ciphertexts....
s in 1998; FEAL-4
FEAL

In cryptography, FEAL is a block cipher proposed as an alternative to the Data Encryption Standard , and designed to be much faster in software....
, proposed as a replacement for the DES
Data Encryption Standard

The Data Encryption Standard is a block cipher that was selected by National Bureau of Standards as an official Federal Information Processing Standard for the United States in 1976 and which has subsequently enjoyed widespread use internationally....
 standard encryption algorithm, was demolished by a spate of attacks from the academic community, many of which are entirely practical. In industry
Industry

An industry is the manufacturing of a Good or Service within a category. Although industry is a broad term for any kind of economic production, in economics and urban planning industry is a synonym for the secondary sector, which is a type of economic activity involved in the manufacturing of raw materials into goods and products....
, too, ciphers are not free from flaws: for example, the A5/1
A5/1

A5/1 is a stream cipher used to provide over-the-air communication privacy in the Global System for Mobile Communications Cell phone standard. It was initially kept secret, but became public knowledge through leaks and reverse engineering....
, A5/2
A5/2

A5/2 is a stream cipher used to provide voice privacy in the GSM Cell phone protocol.The cipher is based around a combination of four linear feedback shift registers with irregular clocking and a non-linear combiner....
 and CMEA algorithms, used in mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
 technology, can all be broken in hours, minutes or even in real-time using widely-available computing equipment. In 2001, Wired Equivalent Privacy
Wired Equivalent Privacy

Wired Equivalent Privacy is a Deprecation algorithm to secure IEEE 802.11 wireless computer network. Wireless networks broadcast messages using radio and are thus more susceptible to eavesdropping than wired networks....
 (WEP), a protocol used to secure Wi-Fi
Wi-Fi

Wi-Fi is a trademark of the Wi-Fi Alliance, founded in 1999 as Wireless Internet Compatibility Alliance , comprising more than 300 companies, whose products are certified by the Wi-Fi Alliance, based on the IEEE 802.11 standards ....
 wireless network
Wireless network

Wireless network refers to any type of computer network that is wireless, and is commonly associated with a telecommunications network whose interconnections between Node is implemented without the use of wires....
s, was shown to be susceptible to a practical related-key attack
Related-key attack

In cryptography, a related-key attack is any form of cryptanalysis where the attacker can observe the operation of a cipher under several different key whose values are initially unknown, but where some mathematical relationship connecting the keys is known to the attacker....
.

The results of cryptanalysis

Zimmermann Telegramm Offen
Successful cryptanalysis has undoubtedly influenced history; the ability to read the presumed-secret thoughts and plans of others can be a decisive advantage, and never more so than during wartime. For example, in World War I
World War I

World War I, or the First World War , was a global military conflict which involved the Great powers, organized into two opposing military alliances: the Allies of World War I and the Central Powers....
, the breaking of the Zimmermann Telegram
Zimmermann Telegram

The Zimmermann Telegram was a code telegram dispatched by the Foreign Secretary of the German Empire, Arthur Zimmermann, on January 16, 1917, to the Germany Ambassador in Washington, D....
 was instrumental in bringing the United States into the war. In World War II
World War II

World War II, or the Second World War , was a global military conflict which involved a Participants in World War II, including all of the great powers, organised into two opposing military alliances: the Allies of World War II and the Axis powers....
, the cryptanalysis of the German ciphers — including the Enigma machine
Enigma machine

The Enigma machine is any of a family of related electro-mechanical rotor machines that have been used to generate ciphers for the encryption and decryption of secret messages....
 and the Lorenz cipher
Lorenz cipher

The Lorenz SZ 40 and SZ 42 were German cipher machines used during World War II for teleprinter circuits. British codebreakers, who referred to encrypted German teleprinter traffic as "Fish ", termed the machine and its traffic "Tunny"....
 — has been credited with everything between shortening the end of the European war by a few months to determining the eventual result (see ULTRA
Ultra

Ultra was the name used by the United Kingdom for intelligence resulting from decryption of encrypted Nazi Germany radio communications in World War II....
). The United States
United States

The United States of America is a Federal government constitutional republic comprising U.S. state and a federal district. The country is situated mostly in central North America, where its Contiguous United States and Washington, D.C., the Capital districts and territories, lie between the Pacific Ocean and Atlantic Oceans, Borders of the U...
 also benefited from the cryptanalysis of the Japanese PURPLE
Purple

Purple is a general term for the range of shades of color occurring between red and blue. It occurs by mixing the primary colors red and blue in varying proportions, with possibly a very small quantity of the third primary color ....
 code (see MAGIC
Magic (cryptography)

Magic was an Allied cryptanalysis project during World War II. Magic's efforts were directed at breaking Japan's diplomatic crypotgraphic codes, allowing Allied policy-makers to read Japan's diplomatic messages....
).

Governments have long recognised the potential benefits of cryptanalysis for intelligence, both military and diplomatic, and established dedicated organisations devoted to breaking the codes and ciphers of other nations, for example, GCHQ and the NSA, organisations which are still very active today. In 2004, it was reported that the United States had broken Iran
Iran

Iran , officially the Islamic Republic of Iran and formerly known internationally as Persian Empire until 1935, is a country in Central Eurasia, located on the northeastern shore of the Persian Gulf and the southern shore of the Caspian Sea....
ian ciphers. (It is unknown, however, whether this was pure cryptanalysis, or whether other factors were involved: ).

Characterising attacks

Cryptanalytic attacks vary in potency and how much of a threat they pose to real-world cryptosystem
Cryptosystem

There are two different meanings of the word cryptosystem. One is used by the cryptographic community, while the other is the meaning understood by the public....
s. A certificational weakness is a theoretical attack that is unlikely to be applicable in any real-world situation; the majority of results found in modern cryptanalytic research are of this type. Essentially, the practical importance of an attack is dependent on the answers to the following three questions:

  1. What knowledge
    Knowledge

    Knowledge is defined in the Oxford English Dictionary as expertise, and skills acquired by a person through experience or education; the theoretical or practical understanding of a subject, what is known in a particular field or in total; facts and information or awareness or familiarity gained by experience of a fact or situation....
     and capabilities are needed as a prerequisite?
  2. How much additional secret information is deduced?
  3. How much effort is required? (What is the computational complexity
    Computational Complexity

    Computational Complexity may refer to:*Computational complexity theory*Computational Complexity ...
    ?)


Prior knowledge: scenarios for cryptanalysis

Cryptanalysis can be performed under a number of assumptions about how much can be observed or found out about the system under attack. As a basic starting point it is normally assumed that, for the purposes of analysis, the general algorithm
Algorithm

In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
 is known; this is Kerckhoffs' principle
Kerckhoffs' principle

In cryptography, Kerckhoffs' principle was stated by Auguste Kerckhoffs in the 19th century: a cryptosystem should be secure even if everything about the system, except the cryptographic key, is public knowledge....
 of "the enemy knows the system". This is a reasonable assumption in practice — throughout history, there are countless examples of secret algorithms falling into wider knowledge, variously through espionage
Espionage

Espionage or spying involves an individual obtaining information that is considered secrecy or confidential without the permission of the holder of the information....
, betrayal
Betrayal

Betrayal, a form of deception or dismissal of prior presumptions, is the breaking or violation of a presumptive social contract that produces morality and psychological conflict within a relationship amongst individuals, between organizations or between individuals and organizations....
 and reverse engineering
Reverse engineering

Reverse engineering is the process of discovering the technological principles of a device, object or system through analysis of its structure, function and operation....
. (On occasion, ciphers have been reconstructed through pure deduction; for example, the German Lorenz cipher
Lorenz cipher

The Lorenz SZ 40 and SZ 42 were German cipher machines used during World War II for teleprinter circuits. British codebreakers, who referred to encrypted German teleprinter traffic as "Fish ", termed the machine and its traffic "Tunny"....
 and the Japanese Purple code, and a variety of classical schemes).

Other assumptions include:
  • Ciphertext-only
    Ciphertext-only attack

    In cryptography, a ciphertext-only attack or known ciphertext attack is an attack model for cryptanalysis where the attacker is assumed to have access only to a set of ciphertexts....
    : the cryptanalyst has access only to a collection of ciphertexts or codetexts.
  • Known-plaintext
    Known-plaintext attack

    The known-plaintext attack is an attack model for cryptanalysis where the attacker has samples of both the plaintext and its encryption version and is at liberty to make use of them to reveal further secret information such as Cryptographic key and Code book....
    : the attacker has a set of ciphertexts to which he knows the corresponding plaintext
    Plaintext

    In cryptography, plaintext is the information which the sender wishes to transmit to the receiver. Before the computer era, plaintext simply meant text in the language of the communicating parties....
    .
  • Chosen-plaintext (chosen-ciphertext): the attacker can obtain the ciphertexts (plaintexts) corresponding to an arbitrary set of plaintexts (ciphertexts) of his own choosing.
  • Adaptive chosen-plaintext: like a chosen-plaintext attack, except the attacker can choose subsequent plaintexts based on information learned from previous encryptions. Similarly Adaptive chosen ciphertext attack.
  • Related-key attack
    Related-key attack

    In cryptography, a related-key attack is any form of cryptanalysis where the attacker can observe the operation of a cipher under several different key whose values are initially unknown, but where some mathematical relationship connecting the keys is known to the attacker....
    : Like a chosen-plaintext attack, except the attacker can obtain ciphertexts encrypted under two different keys. The keys are unknown, but the relationship between them is known; for example, two keys that differ in the one bit.


These types of attack clearly differ in how plausible they would be to mount in practice. Although some are more likely than others, cryptographers will often take a conservative approach to security and assume the worst-case when designing algorithms, reasoning that if a scheme is secure even against unrealistic threats, then it should also resist real-world cryptanalysis as well.

The assumptions are often more realistic than they might seem upon first glance. For a known-plaintext attack, the cryptanalyst might well know or be able to guess at a likely part of the plaintext, such as an encrypted letter beginning with "Dear Sir", or a computer session starting with "LOGIN:". A chosen-plaintext attack is less likely, but it is sometimes plausible: for example, you could convince someone to forward a message you have given them, but in encrypted form. Related-key attacks are mostly theoretical, although they can be realistic in certain situations, for example, when constructing cryptographic hash function
Cryptographic hash function

A cryptographic hash function is a algorithm that takes an arbitrary block of data and returns a fixed-size bit string, the hash value, such that an accidental or intentional change to the data will almost certainly change the hash value....
s using a block cipher
Block cipher

In cryptography, a block cipher is a symmetric key algorithm cipher which operates on fixed-length groups of bits, termed blocks, with an unvarying transformation....
.

Classifying success in cryptanalysis

The results of cryptanalysis can also vary in usefulness. For example, cryptographer Lars Knudsen
Lars Knudsen

Lars Ramkilde Knudsen is a Denmark researcher in cryptography, particularly interested in the design and cryptanalysis of block ciphers, cryptographic hash function and message authentication codes ....
 (1998) classified various types of attack on block cipher
Block cipher

In cryptography, a block cipher is a symmetric key algorithm cipher which operates on fixed-length groups of bits, termed blocks, with an unvarying transformation....
s according to the amount and quality of secret information that was discovered:
  • Total break — the attacker deduces the secret key
    Key (cryptography)

    In cryptography, a key is a piece of information that determines the functional output of a cryptographic algorithm or cipher. Without a key, the algorithm would have no result....
    .
  • Global deduction — the attacker discovers a functionally equivalent algorithm
    Algorithm

    In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
     for encryption and decryption, but without learning the key.
  • Instance (local) deduction — the attacker discovers additional plaintexts (or ciphertexts) not previously known.
  • Information deduction — the attacker gains some Shannon information
    Information entropy

    In information theory, entropy is a measure of the uncertainty associated with a random variable. The term by itself in this context usually refers to the Shannon entropy, which quantifies, in the sense of an expected value, the self-information contained in a message, usually in units such as bits....
     about plaintexts (or ciphertexts) not previously known.
  • Distinguishing algorithm — the attacker can distinguish the cipher from a random permutation
    Permutation

    In several fields of mathematics the term permutation is used with different but closely related meanings. They all relate to the notion of mapping the element s of a set to other elements of the same set, i.e., exchanging elements of a set....
    .


Similar considerations apply to attacks on other types of cryptographic algorithm.

Complexity

Attacks can also be characterised by the amount of resources they require. This can be in the form of:
  • Time — the number of "primitive operations" which must be performed. This is quite loose; primitive operations could be basic computer instructions, such as addition, XOR, shift, and so forth, or entire encryption methods.
  • Memory — the amount of storage required to perform the attack.
  • Data — the quantity of plaintexts and ciphertexts required.


In academic cryptography, a weakness or a break in a scheme is usually defined quite conservatively. Bruce Schneier sums up this approach: "Breaking a cipher simply means finding a weakness in the cipher that can be exploited with a complexity less than brute force. Never mind that brute-force might require 2128 encryptions; an attack requiring 2110 encryptions would be considered a break...simply put, a break can just be a certificational weakness: evidence that the cipher does not perform as advertised." (Schneier, 2000).

Cryptanalysis of asymmetric cryptography

Asymmetric cryptography (or public key cryptography) is cryptography that relies on using two keys; one private, and one public. Such ciphers invariably rely on "hard" mathematical problem
Mathematical problem

A mathematical problem is a problem that is amenable to being analyzed, and possibly solved, with the methods of mathematics. This can be a real-world problem, such as computing the Orbit#Planetary orbitss of the planets in the solar system, or a problem of a more abstract nature, such as Hilbert's problems....
s as the basis of their security, so an obvious point of attack is to develop methods for solving the problem. The security of two-key cryptography depends on mathematical questions in a way that single-key cryptography generally does not, and conversely links cryptanalysis to wider mathematical research in a new way.

Asymmetric schemes are designed around the (conjectured) difficulty of solving various mathematical problems. If an improved algorithm can be found to solve the problem, then the system is weakened. For example, the security of the Diffie-Hellman key exchange
Diffie-Hellman key exchange

Diffie-Hellman key exchange is a cryptographic protocol that allows two parties that have no prior knowledge of each other to jointly establish a shared secret key over an insecure communications channel....
 scheme depends on the difficulty of calculating the discrete logarithm
Discrete logarithm

In mathematics, specifically in abstract algebra and its applications, discrete logarithms are group analogues of ordinary logarithms. In particular, an ordinary logarithm loga is a solution of the equation ax = b over the real or complex numbers....
. In 1983, Don Coppersmith
Don Coppersmith

Don Coppersmith is a cryptographer and mathematician. He was involved in the design of the Data Encryption Standard block cipher at IBM, particularly the design of the S-box, strengthening them against differential cryptanalysis....
 found a faster way to find discrete logarithms (in certain groups), and thereby requiring cryptographers to use larger groups (or different types of groups). RSA's security depends (in part) upon the difficulty of integer factorization
Integer factorization

In number theory, integer factorization is the breaking down of a composite number into smaller non-trivial divisors, which when multiplied together equal the original integer....
 — a breakthrough in factoring would impact the security of RSA.

In 1980, one could factor a difficult 50-digit number at an expense of 1012 elementary computer operations. By 1984 the state of the art in factoring algorithms had advanced to a point where a 75-digit number could be factored in 1012 operations. Advances in computing technology also meant that the operations could be performed much faster, too. Moore's law
Moore's Law

Moore's law describes a long-term trend in the history of computing hardware. Since the invention of the integrated circuit in 1958, the number of transistors that can be placed inexpensively on an integrated circuit has increased exponential growth, doubling approximately every two years....
 predicts that computer speeds will continue to increase. Factoring techniques may continue do so as well, but will most likely depend on mathematical insight and creativity, neither of which has ever been successfully predictable. 150-digit numbers of the kind once used in RSA have been factored. The effort was greater than above, but was not unreasonable on fast modern computers. By the start of the 21st century, 150-digit numbers were no longer considered a large enough key size
Key size

In cryptography, key size or key length is the size of the key used in a cryptographic algorithm . An algorithm's key length is distinct from its cryptographic security, which is a logarithmic measure of the fastest known computational attack on the algorithm, also measured in bits....
 for RSA. Numbers with several hundred digits are still considered too hard to factor in 2005, though methods will probably continue to improve over time, requiring key size
Key size

In cryptography, key size or key length is the size of the key used in a cryptographic algorithm . An algorithm's key length is distinct from its cryptographic security, which is a logarithmic measure of the fastest known computational attack on the algorithm, also measured in bits....
 to keep pace or new algorithms to be used.

Another distinguishing feature of asymmetric schemes is that, unlike attacks on symmetric cryptosystems, any cryptanalysis has the opportunity to make use of knowledge gained from the public key.

Quantum computing applications for cryptanalysis

Quantum computer
Quantum computer

A quantum computer is a device for computation that makes direct use of quantum mechanical phenomena, such as quantum superposition and quantum entanglement, to perform operations on data....
s, which are still in the early phases of development, have potential use in cryptanalysis. For example, Shor's Algorithm
Shor's algorithm

Shor's algorithm, first introduced by mathematician Peter Shor, is a quantum computer algorithm for integer factorization. On a quantum computer, to factor an integer , Shor's algorithm takes polynomial time in , specifically , demonstrating that integer factorization is in the complexity class BQP....
 could factor large numbers in polynomial time
Polynomial time

In computational complexity theory, polynomial time refers to the computation time of a problem where the run time, , is no greater than a polynomial function of the problem size, n....
, in effect breaking some commonly used forms of public-key encryption.

By using Grover's algorithm
Grover's algorithm

Grover's algorithm is a quantum algorithm for searching an sorting database with N entries in O time and using O storage space . It was invented by Lov K....
 on a quantum computer, brute-force key search can be made quadratically faster. However, this could be countered by increasing the key length.

Methods of cryptanalysis

Classical cryptanalysis:
  • Frequency analysis
    Frequency analysis

    In cryptanalysis, frequency analysis is the study of the letter frequencies or groups of letters in a ciphertext. The method is used as an aid to breaking classical ciphers....
  • Index of coincidence
    Index of coincidence

    In cryptography, coincidence counting is the technique of putting two texts side-by-side and counting the number of times that identical letters appear in the same position in both texts....
  • Kasiski examination
    Kasiski examination

    In cryptanalysis, Kasiski examination is a method of attacking polyalphabetic cipher, such as the Vigen?re cipher. It was first published by Friedrich Kasiski in 1863, but seems to have been...


Symmetric algorithms:
  • Boomerang attack
    Boomerang attack

    In cryptography, the boomerang attack is a method for the cryptanalysis of block ciphers based on differential cryptanalysis. The attack was published in 1999 by David A....
  • Brute force attack
    Brute force attack

    In cryptanalysis, a brute force attack is a method of defeating a cryptographic scheme by systematically trying a large number of possibilities; for example, a large number of the possible key s in a key space in order to decrypt a message....
  • Davies' attack
    Davies' attack

    In cryptography, Davies' attack [sic] is a dedicated statistical cryptanalysis method for attacking the Data Encryption Standard . The attack was originally created in 1987 by Donald Davies....
  • Differential cryptanalysis
    Differential cryptanalysis

    Differential cryptanalysis is a general form of cryptanalysis applicable primarily to block ciphers, but also to stream ciphers and cryptographic hash functions....
  • Impossible differential cryptanalysis
    Impossible differential cryptanalysis

    In cryptography, impossible differential cryptanalysis is a form of differential cryptanalysis for block ciphers. While ordinary differential cryptanalysis tracks differences that propagate through the cipher with greater than expected probability, impossible differential cryptanalysis exploits differences that are impossible at some interme...
  • Integral cryptanalysis
    Integral cryptanalysis

    In cryptography, integral cryptanalysis is a cryptanalysis that is particularly applicable to block ciphers based on substitution-permutation networks....
  • Linear cryptanalysis
    Linear cryptanalysis

    In cryptography, linear cryptanalysis is a general form of cryptanalysis based on finding affine transformation approximations to the action of a cipher....
  • Meet-in-the-middle attack
    Meet-in-the-middle attack

    The Meet-in-the-middle attack is a cryptography attack which, like the birthday attack, makes use of a space-time tradeoff. While the birthday attack attempts to find two values in the domain of a function that map to the same value in its range, the meet-in-the-middle attack attempts to find a value in each of the ranges and domains of the c...
  • Mod-n cryptanalysis
  • Related-key attack
    Related-key attack

    In cryptography, a related-key attack is any form of cryptanalysis where the attacker can observe the operation of a cipher under several different key whose values are initially unknown, but where some mathematical relationship connecting the keys is known to the attacker....
  • Slide attack
    Slide attack

    The slide attack is a form of cryptanalysis designed to deal with the prevailing idea that even weak ciphers can become very strong by increasing the number of rounds, which can ward off a differential attack....
  • XSL attack
    XSL attack

    In cryptography, the XSL attack is a method of cryptanalysis for block ciphers. The attack was first published in 2002 by researchers Nicolas Courtois and Josef Pieprzyk....


Hash functions:
  • Birthday attack
    Birthday attack

    A birthday attack is a type of cryptography attack, so named because it exploits the mathematics behind the birthday problem in probability theory....


Attack model
Attack model

Attack models or attack types specify how much information a Cryptanalysis has access to when cracking an Encryption message. Some common attack models are:...
s:
  • Chosen-ciphertext attack
    Chosen-ciphertext attack

    A chosen-ciphertext attack is an attack model for cryptanalysis in which the cryptanalyst gathers information, at least in part, by choosing a ciphertext and obtaining its decryption under an unknown key....
  • Chosen-plaintext attack
    Chosen-plaintext attack

    A chosen-plaintext attack is an attack model for cryptanalysis which presumes that the attacker has the capability to choose arbitrary plaintexts to be encrypted and obtain the corresponding ciphertexts....
  • Ciphertext-only attack
    Ciphertext-only attack

    In cryptography, a ciphertext-only attack or known ciphertext attack is an attack model for cryptanalysis where the attacker is assumed to have access only to a set of ciphertexts....
  • Known-plaintext attack
    Known-plaintext attack

    The known-plaintext attack is an attack model for cryptanalysis where the attacker has samples of both the plaintext and its encryption version and is at liberty to make use of them to reveal further secret information such as Cryptographic key and Code book....


Side channel attack
Side channel attack

In cryptography, a side channel attack is any attack based on information gained from the physical implementation of a cryptosystem, rather than brute force attack or theoretical weaknesses in the algorithms ....
s:
  • Power analysis
    Power analysis

    In cryptography, power analysis is a form of side channel attack in which the attacker studies the power consumption of a cryptographic hardware device ....
  • Timing attack
    Timing attack

    In cryptography, a timing attack is a side channel attack in which the attacker attempts to compromise a cryptosystem by analyzing the time taken to execute cryptographic algorithms....


Network attacks:
  • Man-in-the-middle attack
    Man-in-the-middle attack

    In cryptography, the man-in-the-middle attack or bucket-brigade attack , sometimes Janus attack, is a form of active eavesdropping in which the attacker makes independent connections with the victims and relays messages between them, making them believe that they are talking directly to each other over a private connection when i...
  • Replay attack
    Replay attack

    A replay attack is a form of Computer network attack in which a valid data transmission is maliciously or fraudulently repeated or delayed. This is carried out either by the originator or by an Adversary who intercepts the data and retransmits it, possibly as part of a Spoofing attack by Internet Protocol packet substitution ....


External attacks:
  • Black-bag cryptanalysis
    Black-bag cryptanalysis

    In cryptography, black-bag cryptanalysis is a euphemism for the acquisition of cryptographic secrets via burglary, or the covert installation of keystroke logging or Trojan_horse_%28computing%29 software/hardware on target computers or ancillary devices....
  • Rubber-hose cryptanalysis
    Rubber-hose cryptanalysis

    In cryptography, rubber-hose cryptanalysis is a euphemism for the extraction of cryptographic secrets from a person by coercion, in contrast to a mathematical or technical cryptanalysis....


See also


General

  • Cryptanalysis of the Enigma
    Cryptanalysis of the Enigma

    Cryptanalysis of the Enigma enabled the Allies of World War II in World War II to read substantial amounts of secret Morse code radio communications of the Axis powers enciphered using Enigma machines....
  • Cryptography
    Cryptography

    Cryptography is the practice and study of hiding information. In modern times cryptography is considered a branch of both mathematics and computer science and is affiliated closely with information theory, computer security and engineering....
  • Cryptography portal
  • Decipherment
    Decipherment

    Decipherment is the analysis of documents written in ancient languages, where the language is unknown, or knowledge of the language has been lost....
  • Topics in cryptography
    Topics in cryptography

    This article is intended to be an 'analytic glossary', or alternatively, an organized collection of annotated pointers....


Historic cryptanalysts

  • Conel Hugh O'Donel Alexander
    Conel Hugh O'Donel Alexander

    Conel Hugh O'Donel Alexander, Order of St Michael and St George, Order of the British Empire was an Irish-born British cryptanalyst, chess player, and chess writer....
  • Lambros D. Callimahos
    Lambros D. Callimahos

    Lambros Demetrios Callimahos was a United States Army cryptography. Born in Alexandria of Greek people parents, the family emigrated to the United States when he was four....
  • Alastair Denniston
    Alastair Denniston

    Commander Alexander Guthrie Denniston CMG CBE Royal Navy Volunteer Reserve was a British codebreaker in Room 40 and first head of the Government Code and Cypher School and field hockey player....
  • Agnes Meyer Driscoll
    Agnes Meyer Driscoll

    Agnes Meyer Driscoll Agnes May Meyer was born in Genesco, Illinois on July 24, 1889. In 1895 She moved toWesterville, Ohio where her father Gustav Meyer had taken a job teaching music at Otterbein College....
  • Elizebeth Friedman
    Elizebeth Friedman

    The following article is adapted from the Hall of Honor from the National Cryptologic Museum :Elizebeth Smith Friedman was cryptanalyst and author, and a pioneer in U.S....
  • William F. Friedman
    William F. Friedman

    William Frederick Friedman was a United States Army cryptography. He ran the research division of the Army's Signals Intelligence Service in the 1930s, and its follow-on services into the 1950s....
    , the father of modern cryptology
  • Meredith Gardner
    Meredith Gardner

    Meredith Knox Gardner was an United States linguistics and codebreaker, who pulled off one of the greatest U.S. counter-intelligence coups of the 20th century by decoding Soviet intelligence traffic regarding espionage in the United States, in what came to be known as the Venona project....
  • Dilly Knox
    Dilly Knox

    Alfred Dillwyn 'Dilly' Knox was a classics scholar at King's College, Cambridge, and a United Kingdom codebreaker. He was a member of the World War I Room 40 codebreaking unit, and later at Bletchley Park he worked on the cryptanalysis of Enigma machine until his death in 1943....
  • Solomon Kullback
    Solomon Kullback

    Dr Solomon Kullback was a United States cryptanalyst and mathematician.Kullback was one of the first three employees hired by William F. Friedman at the United States Army's Signal Intelligence Service in the 1930s, along with Frank Rowlett and Abraham Sinkov....
  • Marian Rejewski
    Marian Rejewski

    Marian Adam Rejewski was a Poland mathematician and cryptography who in 1932 solved the plugboard-equipped Enigma machine, the main cipher device used by Germany....
  • Frank Rowlett
    Frank Rowlett

    Frank Byron Rowlett was an American cryptologist.Rowlett was born in Rose Hill, Virginia and attended Emory & Henry College in Emory, Virginia, where he was a member of the Beta Lambda Zeta fraternity....
  • Abraham Sinkov
    Abraham Sinkov

    Dr. Abraham Sinkov was a US cryptanalysis....
  • Giovanni Soro
    Giovanni Soro

    Giovanni Soro was a Venice professional code-cracker. He was more than likely the Renaissance's first outstanding cryptanalyst and the Western world's first great cryptanalyst....
    , the Renaissance's first outstanding cryptanalyst
  • Brigadier John Tiltman
    John Tiltman

    Brigadier John Hessell Tiltman was a British Army officer who worked in intelligence, often at or with the Government Code and Cypher School starting in the 1920s....
  • Alan Turing
    Alan Turing

    Alan Mathison Turing, Order of the British Empire, Fellow of the Royal Society was a British mathematician, logician and Cryptanalysis....
  • Herbert Yardley
    Herbert Yardley

    Herbert Osborne Yardley was an American cryptologist best known for his book The American Black Chamber . The title of the book refers to MI-8, the cryptographic organization of which Yardley was the founder and head....


National

  • National Cipher Challenge
    National Cipher Challenge

    The National Cipher Challenge is an annual Cryptography competition organised by the University of Southampton School of Mathematics. Competitors attempt to break cryptograms published on the competition website....
  • Zendian Problem
    Zendian Problem

    The Zendian Problem was an exercise in communication intelligence operations devised by Lambros D. Callimahos as part of course CA-400 taught to National Security Agency cryptanalysts....


External links

  • (files contain 5 line header, that has to be removed first)