Confusion and diffusion

In cryptography, confusion and diffusion are two properties of a secure cipher identified by Claude Shannon in his 1945 classified report A Mathematical Theory of Cryptography.[1] These properties, when present, work together to thwart the application of statistics, and other methods of cryptanalysis.

Confusion in a symmetric cipher is obscuring the local correlation between the input (plaintext), and output (ciphertext) by varying the application of the key to the data, while diffusion is hiding the plaintext statistics by spreading it over a larger area of ciphertext.[2] Although ciphers can be confusion-only (substitution cipher, one-time pad) or diffusion-only (transposition cipher), any "reasonable" block cipher uses both confusion and diffusion.[2] These concepts are also important in the design of cryptographic hash functions, and pseudorandom number generators, where decorrelation of the generated values is the main feature. Diffusion (and its avalanche effect) is also applicable to non-cryptographic hash functions.

Definition

Confusion

Confusion means that each binary digit (bit) of the ciphertext should depend on several parts of the key, obscuring the connections between the two.[3]

The property of confusion hides the relationship between the ciphertext and the key.

This property makes it difficult to find the key from the ciphertext and if a single bit in a key is changed, the calculation of most or all of the bits in the ciphertext will be affected.

Confusion increases the ambiguity of ciphertext and it is used by both block and stream ciphers.

In substitution–permutation networks, confusion is provided by substitution boxes.[4]

Diffusion

Diffusion means that if we change a single bit of the plaintext, then about half of the bits in the ciphertext should change, and similarly, if we change one bit of the ciphertext, then about half of the plaintext bits should change.[5] This is equivalent to the expectation that encryption schemes exhibit an avalanche effect.

The purpose of diffusion is to hide the statistical relationship between the ciphertext and the plain text. For example, diffusion ensures that any patterns in the plaintext, such as redundant bits, are not apparent in the ciphertext.[3] Block ciphers achieve this by "diffusing" the information about the plaintext's structure across the rows and columns of the cipher.

In substitution–permutation networks, diffusion is provided by permutation boxes (a.k.a. permutation layer[4]). In the beginning of the 21st century a consensus had appeared where the designers preferred the permutation layer to consist of linear Boolean functions, although nonlinear functions can be used, too.[4]

Theory

In Shannon's original definitions, confusion refers to making the relationship between the ciphertext and the symmetric key as complex and involved as possible; diffusion refers to dissipating the statistical structure of plaintext over the bulk of ciphertext. This complexity is generally implemented through a well-defined and repeatable series of substitutions and permutations. Substitution refers to the replacement of certain components (usually bits) with other components, following certain rules. Permutation refers to manipulation of the order of bits according to some algorithm. To be effective, any non-uniformity of plaintext bits needs to be redistributed across much larger structures in the ciphertext, making that non-uniformity much harder to detect.

In particular, for a randomly chosen input, if one flips the i-th bit, then the probability that the j-th output bit will change should be one half, for any i and j—this is termed the strict avalanche criterion. More generally, one may require that flipping a fixed set of bits should change each output bit with probability one half.

One aim of confusion is to make it very hard to find the key even if one has a large number of plaintext-ciphertext pairs produced with the same key. Therefore, each bit of the ciphertext should depend on the entire key, and in different ways on different bits of the key. In particular, changing one bit of the key should change the ciphertext completely.

Practical applications

Design of a modern block cipher uses both confusion and diffusion,[2] with confusion changing data between the input and the output by applying a key-dependent non-linear transformation (linear calculations are easier to reverse and thus are easier to break).

Confusion inevitably involves some diffusion,[6] so a design with a very wide-input S-box can provide the necessary diffusion properties,[citation needed] but will be very costly in implementation. Therefore, the practical ciphers utilize relatively small S-boxes, operating on small groups of bits ("bundles"[7]). For example, the design of AES has 8-bit S-boxes, Serpent − 4-bit, BaseKing and 3-way − 3-bit.[8] Small S-boxes provide almost no diffusion, so the resources are spent on simpler diffusion transformations.[6] For example, the wide trail strategy popularized by the Rijndael design, involves a linear mixing transformation that provides high diffusion,[9] although the security proofs do not depend on the diffusion layer being linear.[10]

One of the most researched cipher structures uses the substitution-permutation network (SPN) where each round includes a layer of local nonlinear permutations (S-boxes) for confusion and a linear diffusion transformation (usually a multiplication by a matrix over a finite field).[11] Modern block ciphers mostly follow the confusion layer/diffusion layer model, with the efficiency of the diffusion layer estimated using the so-called branch number, a numerical parameter that can reach the value for s input bundles for the perfect diffusion transformation.[12] Since the transformations that have high branch numbers (and thus require a lot of bundles as inputs) are costly in implementation, the diffusion layer is sometimes (for example, in the AES) composed from two sublayers, "local diffusion" that processes subsets of the bundles in a bricklayer fashion (each subset is transformed independently) and "dispersion" that makes the bits that were "close" (within one subset of bundles) to become "distant" (spread to different subsets and thus be locally diffused within these new subsets on the next round).[13]

Analysis of AES

The Advanced Encryption Standard (AES) has both excellent confusion and diffusion. Its confusion look-up tables are very non-linear and good at destroying patterns.[14] Its diffusion stage spreads every part of the input to every part of the output: changing one bit of input changes half the output bits on average. Both confusion and diffusion are repeated multiple times for each input to increase the amount of scrambling. The secret key is mixed in at every stage so that an attacker cannot precalculate what the cipher does.

None of this happens when a simple one-stage scramble is based on a key. Input patterns would flow straight through to the output. It might look random to the eye but analysis would find obvious patterns and the cipher could be broken.

See also

References

  1. ^ "Information Theory and Entropy". Model Based Inference in the Life Sciences: A Primer on Evidence. Springer New York. 2008-01-01. pp. 51–82. doi:10.1007/978-0-387-74075-1_3. ISBN 9780387740737.
  2. ^ a b c Stamp & Low 2007, p. 182.
  3. ^ a b Shannon, C. E. (October 1949). "Communication Theory of Secrecy Systems*". Bell System Technical Journal. 28 (4): 656–715. doi:10.1002/j.1538-7305.1949.tb00928.x.
  4. ^ a b c Liu, Rijmen & Leander 2018, p. 1.
  5. ^ Stallings, William (2014). Cryptography and Network Security (6th ed.). Upper Saddle River, N.J.: Prentice Hall. pp. 67–68. ISBN 978-0133354690.
  6. ^ a b Daemen & Rijmen 2013, p. 130.
  7. ^ Daemen & Rijmen 2013, p. 20.
  8. ^ Daemen & Rijmen 2013, p. 21.
  9. ^ Daemen & Rijmen 2013, p. 126.
  10. ^ Liu, Rijmen & Leander 2018, p. 2.
  11. ^ Li & Wang 2017.
  12. ^ Sajadieh et al. 2012.
  13. ^ Daemen & Rijmen 2013, p. 131.
  14. ^ William, Stallings (2017). Cryptography and Network Security: Principles and Practice, Global Edition. Pearson. p. 177. ISBN 978-1292158587.

Sources

Read other articles:

Álvaro Recoba Informasi pribadiNama lengkap Álvaro Alexander Recoba RiveroTanggal lahir 17 Maret 1976 (umur 47)Tempat lahir Montevideo, UruguayTinggi 176 cm (5 ft 9+1⁄2 in)Posisi bermain Gelandang serangGelandang sayapInformasi klubKlub saat ini NacionalNomor 20Karier junior DanubioKarier senior*Tahun Tim Tampil (Gol)1994–1995 Danubio 34 (11)1996–1997 Nacional 33 (17)1997–2008 Inter Milan 248 (72)1999 → Venezia (pinjaman) 19 (11)2007–2008 → Torino (pin...

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Desember 2023. Ini adalah daftar maskapai penerbangan yang saat ini beroperasi di Tunisia. Maskapai penerbangan Maskapai penerbangan (dalam Bahasa Arab) IATA ICAO [[Tanda panggil Mulaiberoperasi Karthago Airlines قرطاج للطيران - KAJ KARTHAGO 2001 Nouvela...

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Desember 2022. MIS Al IstiqomahMadrasah Ibtidaiyah Swasta Al IstiqomahInformasiJenisSwastaAlamatLokasiKp. Petukangan Rw Terate, Jakarta Timur, DKI Jakarta, IndonesiaSitus webMIS Al Istiqomah pada Data Sekolah Kementerian Pendidikan Nasional, Republik Indonesia ...

Perang Portugis-UtsmaniyahKerakah Portugis mengungguli kapal-kapal Muslim dari Diu.Tanggalabad ke 16LokasiSamudera Hindia/Timur/AfrikaHasil Kemenangan Portugis [1][2][3][4]Perubahanwilayah Kekaisaran Portugis menguasai Samudera Hindia dan Teluk Persia, membangun benteng di sepanjang pantai Afrika dan India dan mempertahankan dominasi perdagangan rempah-rempah. Utsmaniyah mundur ke tanah air mereka di Laut Merah.[1][2][3][5]Pihak ...

 

Polish singer-songwriter Ralph KaminskiKaminski in 2023BornRafał Stanisław Kamiński(1990-11-08)8 November 1990Jasło, PolandAlma materStanisław Moniuszko Academy of Music in Gdańsk, Codarts University for the ArtsOccupationsSinger-songwriterrecord producerYears active2010–presentMusical careerGenresAlternative popelectronic musicchamber musicInstrument(s)VocalspianoviolinHammond organLabelsFonoboWebsiteralphkaminski.com Musical artist Rafał Stanisław Kamiński (Polish pronu...

 

Pour les articles homonymes, voir X Factor et The X Factor. The X Factor Autre titre francophone X Factor Titre original The X Factor Genre télécrochet Création Simon Cowell Réalisation Phil Heyes Présentation Kate ThorntonDermot O'LearyCaroline FlackOlly Murs Pays Royaume-Uni Langue anglais britannique Nombre de saisons 15 Nombre d’émissions 445 Production Durée 60 à 150 minutes Société de production Syco Entertainment (en) Diffusion Diffusion ITV Date de première diffusio...

Flag of the Commonwealth of England redirects here. For flag of the British Commonwealth, see Flag of the Commonwealth of Nations. Command flag used by generals at sea, dating to 1652–54.[1] There were a variety of flags flown by ships of the Commonwealth during the Interregnum of 1649–1660. At sea, royalist ships continued to fly the Union Jack of 1606, while on 22 February 1649 the Council of State decided to send the parliamentary navy an order (signed by Oliver Cromwell on 23 ...

 

Season of television series Season of television series The Amazing Race 34Season 34Region 1 DVD coverPresented byPhil KeoghanNo. of teams12WinnerDerek Xiao & Claire RehfussNo. of legs10Distance traveled11,000 mi (18,000 km) No. of episodes12ReleaseOriginal networkCBSOriginal releaseSeptember 21 (2022-09-21) –December 7, 2022 (2022-12-07)Additional informationFilming datesMay 25 (2022-05-25) –June 16, 2022 (2022-06-16)Season chronology← P...

 

Cet article est une ébauche concernant l’aéronautique. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Base aérienne 103 Cambrai-Épinoy René Mouchotte Localisation Pays France Date de fermeture 2013 Coordonnées 50° 13′ 10″ nord, 3° 09′ 10″ est Altitude 78 m (257 ft) Informations aéronautiques Code IATA XCB Code OACI LFQI Type d'aéroport Militaire Gestionnaire Arm...

Dua Garis BiruPoster rilis teatrikalNama lainInggrisTwo Blue Stripes SutradaraGina S. NoerProduser Chand Parwez Servia Fiaz Servia Ditulis olehGina S. NoerPemeran Zara JKT48 Angga Yunanda Cut Mini Arswendy Bening Swara Dwi Sasono Penata musikAndhika TriyadiSinematograferPadri NadeakPenyuntingAline JusriaPerusahaanproduksi Starvision Wahana Kreator Tanggal rilis 11 Juli 2019 (2019-07-11) (Indonesia) 3 Oktober 2019 (2019-10-03) (Malaysia & Brunei) 10 Oktober 20...

 

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: コルク – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2017年4月) コルクを打ち抜いて作った瓶の栓 コルク(木栓、�...

 

Disambiguazione – Se stai cercando altri significati, vedi Liberia (disambigua). Liberia (dettagli) (dettagli) (EN) The love of liberty brought us here(IT) L'amore della libertà ci ha portato qui Liberia - Localizzazione Dati amministrativiNome completoRepubblica della Liberia Nome ufficialeRepublic of Liberia Lingue ufficialiinglese CapitaleMonrovia  (1 010 970[1] ab. / 2008) PoliticaForma di governoRepubblica presidenziale PresidenteJoseph Boakai In...

本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目需要編修,以確保文法、用詞、语气、格式、標點等使用恰当。 (2013年8月6日)請按照校對指引,幫助编辑這個條目。(幫助、討論) 此條目剧情、虛構用語或人物介紹过长过细,需清理无关故事主轴的细节、用語和角色介紹。 (2020年10月6日)劇情、用語和人物介紹都只是用於了解故事主軸,輔助�...

 

Tyrell Richard Nazionalità  Stati Uniti Atletica leggera Specialità Velocità Record 60 m 670 (indoor - 2019) 100 m 1044 (2019) 200 m 2057 (2018) 200 m 2095 (indoor - 2019) 400 m 4470 (2018) 400 m 4482 (indoor - 2019) Lungo 6,80 m (2018) CarrieraNazionale Stati UnitiPalmarès Competizione Ori Argenti Bronzi Mondiali 2 0 0 Vedi maggiori dettagli Statistiche aggiornate al 6 ottobre 2019 Modifica dati su Wikidata · Manuale Tyrell Richard (4 agosto 1997) è un velocista statunit...

 

National sports team ColombiaCaptainPablo GonzálezITF ranking17 2 (6 December 2021)Colorsblue & whiteFirst year1959Years played51Ties played (W–L)107 (56–51)Best finishWG Play-offs (2010, 2013, 2014, 2015, 2017, 2018)Most total winsMauricio Hadad (35–11)Most singles winsSantiago Giraldo (26–12)Most doubles winsMauricio Hadad (12–6) Miguel Tobón (12–8)Best doubles teamJuan Sebastián Cabal/Robert Farah (9–5)Most ties playedAlejandro Falla (27)Most years playedAlejandro Fall...

English and British client state (1542–1800) This article is about the Irish kingdom that existed from 1542 to the end of 1800. For more ancient Irish kingdoms, see List of Irish kingdoms and Monarchy of Ireland. For other uses of Ireland, see Ireland (disambiguation). Kingdom of IrelandRíocht na hÉireann (Irish) 1542–1800 1652–1660: Commonwealth Top: FlagBottom: Royal Banner(since 1782) Coat of arms[a] The Kingdom of Ireland in 1789; other realms in personal union are in...

 

2018 Washington, D.C., mayoral election ← 2014 November 6, 2018 2022 →   Candidate Muriel Bowser Ann Wilcox Dustin Canter Party Democratic DC Statehood Green Independent Popular vote 171,608 20,950 15,478 Percentage 76.4% 9.3% 6.9% Ward results Precinct resultsBowser:      60–70%      70–80%      80–90% Mayor before election Muriel Bowser Democratic Elected Mayor Muriel Bowser Dem...

 

The lists below contain notable people who are from the city of Thessaloniki, listed alphabetically. Contents:  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Notable Thessalonians Demetrius of Thessaloniki Saints Cyril and Methodius Theodorus Gaza Sabbatai Zevi Ioannis Papafis Halil Rifat Pasha Emilios Riadis Şükrü Naili Gökberk Refet Bele and Kemal Atatürk Sabiha Sertel Nâzım Hikmet Christos Sartzetakis The following were born in or associated with Thessaloniki. Some b...

Disambiguazione – Se stai cercando altri significati, vedi Mediolanum (disambigua). «[...] Gli Insubri avevano come metropoli Mediolanum, che anticamente era un villaggio, ora invece è un'importante città al di là del Po quasi ai piedi delle Alpi. [...]» (Strabone, Geografia, V, 1.6.) Mediolanum Modello in legno conservato presso il Civico museo archeologico di Milano che mostra una ricostruzione della Mediolanum imperiale Cronologia Fondazione nel 590 a.C. da parte di una tribù celt...

 

هذه المقالة بحاجة لصندوق معلومات. فضلًا ساعد في تحسين هذه المقالة بإضافة صندوق معلومات مخصص إليها. يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (ديسمبر 2018) قائمة ...