CS 6260 Applied Cryptography Block Ciphers, Pseudorandom Functions

Total Page:16

File Type:pdf, Size:1020Kb

CS 6260 Applied Cryptography Block Ciphers, Pseudorandom Functions CS 6260 Applied Cryptography Alexandra (Sasha) Boldyreva Block ciphers, pseudorandom functions and permutations 1 Block ciphers Building blocks for symmetric encryption. M→ EK →C Examples: DES, 3DES, AES... k n n • A block cipher is a function family E:{0,1} ×{0,1} →{0,1} , where k-key length, n-input and output lengths are the parameters ∈ k • Notation: for every K {0,1} EK(M)=E(K,M) ∈ k • For every K {0,1} , EK(⋅) is a permutation (one-to-one and onto function). For every C∈{0,1}n there is a single M∈{0,1}n s.t. C=EK(M) -1 • Thus each block cipher has an inverse for every key: EK (⋅) -1 ∈ n s.t. EK(EK (M))=C for all M,C {0,1} ∈ k -1 n n • For every K {0,1} , EK(⋅),EK (⋅):{0,1} →{0,1} 2 DES • Key length k=56, input and output length n=64 • 1973. NBS (National Bureau of Standards) announced a search for a data protection algorithm to be standardized • 1974. IBM submits a design based on “Lucifer” algorithm • 1975. The proposed DES is published • 1976. DES approved as a federal standard 7 • DES is highly efficient: ≈2.5⋅10 DES computations per second 3 Security of block ciphers • Any block cipher E is subject to exhaustive key-search: given (M1,C1=E(K,M1),...,(Mq,Cq=E(K,Mq)) an adversary can recover K (or another key consistent with the given pairs) as follows: EKSE((M1,C1),...(Mq,Cq)) For i=1,...,2k do if E(Ti,M1)=C1 then //Ti is i-th k-bit string// if E(Ti,Mj)=Cj for all 2≤j≤q then return Ti EndIf EndIf EndFor 4 Bellare and Rogaway 9 Bellare and Rogaway 9 feed the oracle M1 and get back C1 = EK (M1). It can then decide on a value M2, feed the oracle this, and get back C2, and so on. Clearly a chosen-message attack gives the adversary much more power, but is feed the oracle M1 and get back C1 = EK (M1). It can then decide on a value M2, also less realistic in practice. feed the oracle this, and get back C2, and so on. The most obvious attack strategy is exhaustive key search. The adversary goes Clearly a chosen-message attack gives thtehraoduvgerhsaarllypmossibuchlemokeysre pKower, b0u,t1isk until it finds one that explains the input- ! ∈ { } also less realistic in practice. output pairs. Here is the attack in detail, using q = 1, meaning one input-output The most obvious attack strategy is exhaustive key search. The akdversary goes example. For i = 1, . , 2 let Ti denote the i-th k-bit string (in lexicographic order). through all possible keys K 0, 1 k until it finds one that explains the input- ! ∈ { } output pairs. Here is the attack in detail, usinEKgSEq (=M1,,Cmea1) ning one input-output k for i = 1, . , 2k do example. For i = 1, . , 2 let Ti denote the i-th k-bit string (in lexicographic order). if E(Ti, M1) = C1 then return Ti fi EKS (M , C ) E 1 1 20 BLOCK CIPHERS for i = 1, . , 2k do This attack always returns a key consistent with the given input-output example (M , C ). Whether or not it is the target key depends on the block cipher, and if E(Ti, M1) = C1 then return Ti fi 1 1 in particular on its key length and block length, and in some cases the probability This attack always returns a key consistent owf itthisthise tgoivoensmainll.putT-ohuetplikueliht exaoompd olef the attack returning the target key can be (M1, C1). Whether or not it is the target kineycreadepsedendbys toestn tinhge abgloacinkstcipmoherre,inapnudt-output examples: in particular on its keybylensagyinth agn:d“bBuloctk, lencleagtrhly, ,anDdEinS soanmed AcaEsesS atrhee npotrobdabesigilityned like this.” True. But that of this is too small. The likelihood of the aEttKacSkEr(et(Mu1rn, Cin1g),t.h.e. ,t(aMrgqet, Cqk)ey) can be is missing the point. The point is thakt security against key-recovery alone does not increased by testing against more input-output exaformpi =les:1, . , 2 do make a “good” block ciphifer.E(Ti, M1) = C1 then EKSE((M1, C1), . , (Mq, Cq)) if ( E(T , M ) = C AND AND E(T , M ) = C ) then return T fi But then what does make a gooi d 2block 2cipher·?· · This questi ioqns turq ns out to i for i = 1, . , 2k do not be so easy to anAswfaerirly. Csmaertllavinaulye ofnqe, casayn solistmewvahraiot mous rdeesirthaanbkle/np, risopenerotuies.gh thFaotrthis attack if E(T , M ) = C then i 1 exa1 mple, the ciphertwextill ushsuoaullyldretnoutrnrevtheeatal rhgaetlfkteyheitbselfits. oFforthDeESp,laqin=text2 is.enBuoutght.hat is if ( E(T , M ) = C AND AND E(T , M ) = C ) then return T fi i n2 ot en2ough eit· ·h· er. As wTehi seeus,qnmoo brloeqcuksacipgesherofiscipperhferects,ilywsecue burilde. Itupisaalolwnaysgerpaossibnd lelonfogreran attacker A fairly small vaue oflistq, saoyf sosecumewrithyatpmoropreertotthriesaecon kSv/erPn1,t,hiseSenPkey2o,u. gShAP3tgh,oao.td.t.hbtislohcakttcipacrkehernecessa, howevrery ,foisr dtesighe nsecued troitmay okfe this task will usually return thesotamergetbkloeyckitselfcip.herForbDacosedEmpS, uqatpa=ptio2licanisallytenioopnur.goh.ibitive. Thus, no block cipher is perfectly secure. ItHisowalwlonaysg dpooesssibexhleafuostr ivane kaey-seattackerrch take? Since q is small we can neglect the to recover the key. A gooSducbhlocak locipnhgerlist, hodwoiffevfernerenecessa,ceis indesigruynnnbedinutgtotnimeomat sukbeetffitwhcieneenis tatthskeprtwopoervertiessioniss onf othewaatytactko atbroeave,t and focus computationally prohibsecuitive.rity. What weSecuritnfeedor simpis onylicite ofsiy n oblockngleth“eMASTEfir stciphersattacRk.”Inprtohpe erwotrystofcaase,bloitcuksescip2hk ercompwhuicthat,ions of the How long does exhifaumetstive, kguarey-seaanrtechestasecuke?blocSrkitincipyceohqferislots. Hsmaoofwllevnweraetitcaurconaulnldegusalectbegeslessthoesinf thceeocipne hcoeruld. get lucky. For example if the target key is in the first half of the search space, only 2k 1 computations would be difference in running time• ExhaustivSbuetcwheena ptrhoep ertkweytoy vissearchersiothants totakhf ethbeseloa ct2tkkac cipblockk ahberov e,bciphereaandpseuf ocomputationscudsorandom per inm u−tation (PRF), used. So a betterk measure is how long it takes on the average. This is for simplicity on the fiarstnoathettioa cnworstk.expInlot hcase.reedwoinrstacanose,therit ucseshap2terco. mputations of the block cipher. However it could be less since one2cok uld get lucky. For 2exak mple if the 2k k k k k 1 i 1 1 2 (2 + 1) 2 + 1 k 1 target key is in the first half of the search space, oinlyPr2[K =coTmpi] =utations w=ould be i = = 2 − • On the average: · − 2k 2k · 2k · 2 2 ≈ used. So a better measure is how long it takes o!i=1n the average. This !iis=1 !i=1 2.7 Problemcosmputations of the block cipher. This is because the target key is chosen at random, 2k 2k 2k k k k i 1 so w1ith2pr(o2ba+bilit1)y 1/22k equ+ 1als T ,kan1 d in that case the attack uses i E-computations i Pr[K = Ti] = = i = = 2i − · Prob2lemk 2.12k · Showtoth2fikantd· fito.r a2ll K 0, 12 56 ≈and all x 0, 1 64 !i=1 !i=1 !i=1 Thus to make∈key-r{ eco}very by exhau∈stiv{ e sea} rch computationally prohibitive, computations of the block cipDESher has. Th isa ispropertbecauseyt hthate tar g et k ey is c h o sen a t r a n d o m,, this speeds k• one must maDkEe SthKe(kxey-len) = DgEthSkKo(fxt)h.e block cipher large enough. so with probability 1/2 equupals exhaustivTi, and in teh asearcht case t hbeya tata factorck uses ofi E 2-co mputations to find it. This is called the key-coLetmp’slemenlook attaDtioESn. pWroepnerottedy oafboDvEe Sth.at there is VLSI chip that can compute Thus to make key-r•ecoFvorer yDESby exh(k=56)austivit eexhaustivaseat trhceh rcoatmpee osearchfut1a.6tioGnb aittakllys/sec.espro h Hib oit w iv loe, n g w o u ld key-recovery via exhaustive search one must make the key-leng55th k of the blo7ck cipher large enough. Prob2 lem/2⋅2.52.2⋅10Exp thatlain isho aboutw to u23se ytearshe key-complementation property of DES to Let’s look at DES. We noted above that there is VLSI chip that can compute it at the rate of 1.6 Gbspiteeds/sec.upHexhow loaunstg ivwoeuldkeykey-rseaecorchverby viaaboexhut aaustfaivcteosear orfchtwo. Explain any assumptions that you make. 1 Problem 2.3 Find a key K such that DES ( ) = DES− ( ). Such a key is some- K · K · times called a “weak” key. 5 Problem 2.4 As with AES, suppose we are working in the finite field with 28 elements, representing field points using the irreducible polynomial m(x) = x8 + x4 + x3 + x + 1. Compute the byte that is the result of multiplying bytes: Security of DES e1 05 • There are more sophisticated attacks{ } · {known:} • differential cryptoanalysis: finds the key given about 247 chosen plaintexts and the corresponding ciphertexts Prob• lemlinear2.5 cryptoanalysis:For AES, we hfindsave gtheiven keytw ogivdienffer aboutent descr 242ip t knownions of mix-cols: one using plaintextmatric m uandltip licaciphertexttion (in pairsGF(28)) and one based on multiplying by a fixed p•olynTheseomia attacksl c(x) mo requiredulo a secotoo nmand fixedy data,polyn henceomia l,exhaustivd(x) = xe4 +key1. Show that these twosearchmetho diss theare equbestiv aknownlent. attack. And it can be mounted in parallel! • A machine for DES exhaustive key search was built for $250,000. It finds the key in about 56 hours on average. • A new block cipher was needed.... • Triple-DES: 3DES(K1||K2,M)=DES(K2, DES-1(K1, DES(K2,M)). • 3DES’s keys are 112-bit long. Good, but needs 3 DES computations 6 Advanced Encryption Standard (AES) • 1998. NIST announced a search for a new block cipher. • 15 algorithms from different countries were submitted • 2001. NIST announces the winner: an algorithm Rijndael, designed by Joan Daemen and Vincent Rijmen from Belgium.
Recommended publications
  • Integral Cryptanalysis on Full MISTY1⋆
    Integral Cryptanalysis on Full MISTY1? Yosuke Todo NTT Secure Platform Laboratories, Tokyo, Japan [email protected] Abstract. MISTY1 is a block cipher designed by Matsui in 1997. It was well evaluated and standardized by projects, such as CRYPTREC, ISO/IEC, and NESSIE. In this paper, we propose a key recovery attack on the full MISTY1, i.e., we show that 8-round MISTY1 with 5 FL layers does not have 128-bit security. Many attacks against MISTY1 have been proposed, but there is no attack against the full MISTY1. Therefore, our attack is the first cryptanalysis against the full MISTY1. We construct a new integral characteristic by using the propagation characteristic of the division property, which was proposed in 2015. We first improve the division property by optimizing a public S-box and then construct a 6-round integral characteristic on MISTY1. Finally, we recover the secret key of the full MISTY1 with 263:58 chosen plaintexts and 2121 time complexity. Moreover, if we can use 263:994 chosen plaintexts, the time complexity for our attack is reduced to 2107:9. Note that our cryptanalysis is a theoretical attack. Therefore, the practical use of MISTY1 will not be affected by our attack. Keywords: MISTY1, Integral attack, Division property 1 Introduction MISTY [Mat97] is a block cipher designed by Matsui in 1997 and is based on the theory of provable security [Nyb94,NK95] against differential attack [BS90] and linear attack [Mat93]. MISTY has a recursive structure, and the component function has a unique structure, the so-called MISTY structure [Mat96].
    [Show full text]
  • New Security Proofs for the 3GPP Confidentiality and Integrity
    An extended abstract of this paper appears in Fast Software Encryption, FSE 2004, Lecture Notes in Computer Science, W. Meier and B. Roy editors, Springer-Verlag, 2004. This is the full version. New Security Proofs for the 3GPP Confidentiality and Integrity Algorithms Tetsu Iwata¤ Tadayoshi Kohnoy January 26, 2004 Abstract This paper analyses the 3GPP confidentiality and integrity schemes adopted by Universal Mobile Telecommunication System, an emerging standard for third generation wireless commu- nications. The schemes, known as f8 and f9, are based on the block cipher KASUMI. Although previous works claim security proofs for f8 and f90, where f90 is a generalized versions of f9, it was recently shown that these proofs are incorrect. Moreover, Iwata and Kurosawa (2003) showed that it is impossible to prove f8 and f90 secure under the standard PRP assumption on the underlying block cipher. We address this issue here, showing that it is possible to prove f80 and f90 secure if we make the assumption that the underlying block cipher is a secure PRP-RKA against a certain class of related-key attacks; here f80 is a generalized version of f8. Our results clarify the assumptions necessary in order for f8 and f9 to be secure and, since no related-key attacks are known against the full eight rounds of KASUMI, lead us to believe that the confidentiality and integrity mechanisms used in real 3GPP applications are secure. Keywords: Modes of operation, PRP-RKA, f8, f9, KASUMI, security proofs. ¤Dept. of Computer and Information Sciences, Ibaraki University, 4–12–1 Nakanarusawa, Hitachi, Ibaraki 316- 8511, Japan.
    [Show full text]
  • Known and Chosen Key Differential Distinguishers for Block Ciphers
    Known and Chosen Key Differential Distinguishers for Block Ciphers Ivica Nikoli´c1?, Josef Pieprzyk2, Przemys law Soko lowski2;3, Ron Steinfeld2 1 University of Luxembourg, Luxembourg 2 Macquarie University, Australia 3 Adam Mickiewicz University, Poland [email protected], [email protected], [email protected], [email protected] Abstract. In this paper we investigate the differential properties of block ciphers in hash function modes of operation. First we show the impact of differential trails for block ciphers on collision attacks for various hash function constructions based on block ciphers. Further, we prove the lower bound for finding a pair that follows some truncated differential in case of a random permutation. Then we present open-key differential distinguishers for some well known round-reduced block ciphers. Keywords: Block cipher, differential attack, open-key distinguisher, Crypton, Hierocrypt, SAFER++, Square. 1 Introduction Block ciphers play an important role in symmetric cryptography providing the basic tool for encryp- tion. They are the oldest and most scrutinized cryptographic tool. Consequently, they are the most trusted cryptographic algorithms that are often used as the underlying tool to construct other cryp- tographic algorithms. One such application of block ciphers is for building compression functions for the hash functions. There are many constructions (also called hash function modes) for turning a block cipher into a compression function. Probably the most popular is the well-known Davies-Meyer mode. Preneel et al. in [27] have considered all possible modes that can be defined for a single application of n-bit block cipher in order to produce an n-bit compression function.
    [Show full text]
  • Differential-Linear Crypt Analysis
    Differential-Linear Crypt analysis Susan K. Langfordl and Martin E. Hellman Department of Electrical Engineering Stanford University Stanford, CA 94035-4055 Abstract. This paper introduces a new chosen text attack on iterated cryptosystems, such as the Data Encryption Standard (DES). The attack is very efficient for 8-round DES,2 recovering 10 bits of key with 80% probability of success using only 512 chosen plaintexts. The probability of success increases to 95% using 768 chosen plaintexts. More key can be recovered with reduced probability of success. The attack takes less than 10 seconds on a SUN-4 workstation. While comparable in speed to existing attacks, this 8-round attack represents an order of magnitude improvement in the amount of required text. 1 Summary Iterated cryptosystems are encryption algorithms created by repeating a simple encryption function n times. Each iteration, or round, is a function of the previ- ous round’s oulpul and the key. Probably the best known algorithm of this type is the Data Encryption Standard (DES) [6].Because DES is widely used, it has been the focus of much of the research on the strength of iterated cryptosystems and is the system used as the sole example in this paper. Three major attacks on DES are exhaustive search [2, 71, Biham-Shamir’s differential cryptanalysis [l], and Matsui’s linear cryptanalysis [3, 4, 51. While exhaustive search is still the most practical attack for full 16 round DES, re- search interest is focused on the latter analytic attacks, in the hope or fear that improvements will render them practical as well.
    [Show full text]
  • Algebraic and Slide Attacks on Keeloq
    Algebraic and Slide Attacks on KeeLoq Nicolas T. Courtois 1 Gregory V. Bard 2 David Wagner 3 1 - University College of London , UK 2 - Fordham University, NY , US 3 - University of California - Berkeley, US Algebraic and Slide Attacks on KeeLoq Roadmap • KeeLoq. • Direct algebraic attacks, – 160 rounds / 528 . Periodic structure => • Slide-Algebraic: – 216 KP and about 253 KeeLoq encryptions. • Slide-Determine: – 223 - 230 KeeLoq encryptions. 2 Courtois, Bard, Wagner, FSE 2008 Algebraic and Slide Attacks on KeeLoq KeeLoq Block cipher used to unlock doors and the alarm in Chrysler, Daewoo, Fiat, GM, Honda, Jaguar, Toyota, Volvo, Volkswagen, etc… 3 Courtois, Bard, Wagner, FSE 2008 Algebraic and Slide Attacks on KeeLoq Our Goal: To learn about cryptanalysis… Real life: brute force attacks with FPGA’s. 4 Courtois, Bard, Wagner, FSE 2008 Algebraic and Slide Attacks on KeeLoq How Much Worth is KeeLoq • Designed in the 80's by Willem Smit. • In 1995 sold to Microchip Inc for more than 10 Million of US$. ?? 5 Courtois, Bard, Wagner, FSE 2008 Algebraic and Slide Attacks on KeeLoq How Secure is KeeLoq According to Microchip, KeeLoq should have “a level of security comparable to DES”. Yet faster. Miserably bad cipher, main reason: its periodic structure: cannot be defended. The complexity of most attacks on KeeLoq does NOT depend on the number of rounds of KeeLoq. 6 Courtois, Bard, Wagner, FSE 2008 Algebraic and Slide Attacks on KeeLoq Remarks • Paying 10 million $ for a proprietary algorithm doesn ’t prevent it from being very weak. • In comparison, RSA Security has offered ( “only ”) 70 K$ as a challenge for breaking RC5.
    [Show full text]
  • TS 135 202 V7.0.0 (2007-06) Technical Specification
    ETSI TS 135 202 V7.0.0 (2007-06) Technical Specification Universal Mobile Telecommunications System (UMTS); Specification of the 3GPP confidentiality and integrity algorithms; Document 2: Kasumi specification (3GPP TS 35.202 version 7.0.0 Release 7) 3GPP TS 35.202 version 7.0.0 Release 7 1 ETSI TS 135 202 V7.0.0 (2007-06) Reference RTS/TSGS-0335202v700 Keywords SECURITY, UMTS ETSI 650 Route des Lucioles F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N° 348 623 562 00017 - NAF 742 C Association à but non lucratif enregistrée à la Sous-Préfecture de Grasse (06) N° 7803/88 Important notice Individual copies of the present document can be downloaded from: http://www.etsi.org The present document may be made available in more than one electronic version or in print. In any case of existing or perceived difference in contents between such versions, the reference version is the Portable Document Format (PDF). In case of dispute, the reference shall be the printing on ETSI printers of the PDF version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of status. Information on the current status of this and other ETSI documents is available at http://portal.etsi.org/tb/status/status.asp If you find errors in the present document, please send your comment to one of the following services: http://portal.etsi.org/chaircor/ETSI_support.asp Copyright Notification No part may be reproduced except as authorized by written permission.
    [Show full text]
  • Miss in the Middle Attacks on IDEA and Khufu
    Miss in the Middle Attacks on IDEA and Khufu Eli Biham? Alex Biryukov?? Adi Shamir??? Abstract. In a recent paper we developed a new cryptanalytic techni- que based on impossible differentials, and used it to attack the Skipjack encryption algorithm reduced from 32 to 31 rounds. In this paper we describe the application of this technique to the block ciphers IDEA and Khufu. In both cases the new attacks cover more rounds than the best currently known attacks. This demonstrates the power of the new cryptanalytic technique, shows that it is applicable to a larger class of cryptosystems, and develops new technical tools for applying it in new situations. 1 Introduction In [5,17] a new cryptanalytic technique based on impossible differentials was proposed, and its application to Skipjack [28] and DEAL [17] was described. In this paper we apply this technique to the IDEA and Khufu cryptosystems. Our new attacks are much more efficient and cover more rounds than the best previously known attacks on these ciphers. The main idea behind these new attacks is a bit counter-intuitive. Unlike tra- ditional differential and linear cryptanalysis which predict and detect statistical events of highest possible probability, our new approach is to search for events that never happen. Such impossible events are then used to distinguish the ci- pher from a random permutation, or to perform key elimination (a candidate key is obviously wrong if it leads to an impossible event). The fact that impossible events can be useful in cryptanalysis is an old idea (for example, some of the attacks on Enigma were based on the observation that letters can not be encrypted to themselves).
    [Show full text]
  • Shift Cipher Substitution Cipher Vigenère Cipher Hill Cipher
    Lecture 2 Classical Cryptosystems Shift cipher Substitution cipher Vigenère cipher Hill cipher 1 Shift Cipher • A Substitution Cipher • The Key Space: – [0 … 25] • Encryption given a key K: – each letter in the plaintext P is replaced with the K’th letter following the corresponding number ( shift right ) • Decryption given K: – shift left • History: K = 3, Caesar’s cipher 2 Shift Cipher • Formally: • Let P=C= K=Z 26 For 0≤K≤25 ek(x) = x+K mod 26 and dk(y) = y-K mod 26 ʚͬ, ͭ ∈ ͔ͦͪ ʛ 3 Shift Cipher: An Example ABCDEFGHIJKLMNOPQRSTUVWXYZ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 • P = CRYPTOGRAPHYISFUN Note that punctuation is often • K = 11 eliminated • C = NCJAVZRCLASJTDQFY • C → 2; 2+11 mod 26 = 13 → N • R → 17; 17+11 mod 26 = 2 → C • … • N → 13; 13+11 mod 26 = 24 → Y 4 Shift Cipher: Cryptanalysis • Can an attacker find K? – YES: exhaustive search, key space is small (<= 26 possible keys). – Once K is found, very easy to decrypt Exercise 1: decrypt the following ciphertext hphtwwxppelextoytrse Exercise 2: decrypt the following ciphertext jbcrclqrwcrvnbjenbwrwn VERY useful MATLAB functions can be found here: http://www2.math.umd.edu/~lcw/MatlabCode/ 5 General Mono-alphabetical Substitution Cipher • The key space: all possible permutations of Σ = {A, B, C, …, Z} • Encryption, given a key (permutation) π: – each letter X in the plaintext P is replaced with π(X) • Decryption, given a key π: – each letter Y in the ciphertext C is replaced with π-1(Y) • Example ABCDEFGHIJKLMNOPQRSTUVWXYZ πBADCZHWYGOQXSVTRNMSKJI PEFU • BECAUSE AZDBJSZ 6 Strength of the General Substitution Cipher • Exhaustive search is now infeasible – key space size is 26! ≈ 4*10 26 • Dominates the art of secret writing throughout the first millennium A.D.
    [Show full text]
  • Improbable Differential from Impossible Differential
    Improbable Differential from Impossible Differential: On the Validity of the Model C´elineBlondeau Aalto University, School of Science, Department of Information and Computer Science [email protected] Abstract. Differentials with low probability are used in improbable dif- ferential cryptanalysis to distinguish a cipher from a random permuta- tion. Due to large diffusion, finding such differentials for actual ciphers re- mains a challenging task. At Indocrypt 2010, Tezcan proposed a method to derive improbable differential distinguishers from impossible differ- ential ones. In this paper, we discuss the validity of the assumptions made in the computation of the improbable differential probabilities. In particular, we show based on experiments that such improbable differ- ential cryptanalysis can fail. The validity of the improbable differential cryptanalyses on PRESENT and CLEFIA is discussed. Keywords:improbable differential, impossible differential, truncated differential, PRESENT, CLEFIA 1 Introduction Since the introduction of differential cryptanalysis [2] in the beginning of the 90's, many generalizations of this attack have been proposed to cryptanalyse a large number of block ciphers. While most of them exploit differentials with high probability, in the impossible differential cryptanalysis context [1] attackers take advantage of zero-probability differentials. Recently a variation of this attack called improbable differential cryptanalysis have been introduced by Tezcan [21] at Indocrypt 2010 and by Mala, Dakhilalian and Shakiba [15]. In this context, differentials with low probabilities are used to distinguish the cipher from a random permutation. While in theory this attack could be efficient on some ciphers, in practice, it may be hard to find differentials or truncated differentials with such small prob- abilities.
    [Show full text]
  • Pseudorandomness of Basic Structures in the Block Cipher KASUMI
    Pseudorandomness of Basic Structures in the Block Cipher KASUMI Ju-Sung Kang, Bart Preneel, Heuisu Ryu, Kyo Il Chung, and Chee Hang Park The notion of pseudorandomness is the theoretical I. INTRODUCTION foundation on which to consider the soundness of a basic structure used in some block ciphers. We examine the A block cipher is a family of permutations on a message pseudorandomness of the block cipher KASUMI, which space indexed by a secret key. Luby and Rackoff [1] will be used in the next-generation cellular phones. First, we introduced a theoretical model for the security of block ciphers prove that the four-round unbalanced MISTY-type by using the notion of pseudorandom and super-pseudorandom transformation is pseudorandom in order to illustrate the permutations. A pseudorandom permutation can be interpreted pseudorandomness of the inside round function FI of as a block cipher that cannot be distinguished from a truly KASUMI under an adaptive distinguisher model. Second, random permutation regardless of how many polynomial we show that the three-round KASUMI-like structure is not encryption queries an attacker makes. A super-pseudorandom pseudorandom but the four-round KASUMI-like structure permutation can be interpreted as a block cipher that cannot be is pseudorandom under a non-adaptive distinguisher model. distinguished from a truly random permutation regardless of how many polynomial encryption and decryption queries an attacker makes. Luby and Rackoff used a Feistel-type transformation defined by the typical two-block structure of the block cipher DES in order to construct pseudorandom and super-pseudorandom permutations from pseudorandom functions [1].
    [Show full text]
  • 1. Classical Cryptography
    1. Classical Cryptography Some Simple Cryptosystems • Shift Cipher, • Substitution Cipher, • Affine Cipher, • Vigenere Cipher, • Hill Cipher, • Permutation Cipher, • Stream Cipher Modular Arithmetic, Number theory, and Group Cryptanalysis The RSA Cryptosystem 1 Classical Cryptography Definition 1.1: A cryptosystem is a five-tuple (P, C, H, E, D), where the following conditions are satisfied: 1. P is a finite set of possible plaintexts 2. C is a finite set of possible ciphertexts 3. H the keyspace, is a finite set of possible keys 4. For each K H, there is an encryption rule eK E : P C and a corresponding decryption rule dK D: C P such that x C, dK (eK(x)) = x Oscar x y x Alice Encrypter Decrypter Bob Secure chanel K Key source 2 Modular Arithmetic Definition 1.2: Suppose a and b are integers, and m is positive integer. Then we write a b (mod m) if m divides b-a. • a b mod m if and only if (a-b) = km for some k •Zm the equivalence class under mod m • Canonical form Zm = {0,1,2,…,m-1}, we use the positive remainder as the standard representation. • -1 m -1 mod m • (Zm, +, 0) is a Group . + is closed . Associative: (a + b) + c = a + (b + c) . Commutative: a + b = b + a (abelian group) . 0 is the identity for +: a + 0 = a + 0 = a . Additive inverse: (-a) + a = a + (-a) = 0 3 Modular Arithmetic • (Zm, +, , 0, 1) is a Ring . +, are closed . +, are associative and commutative (abelian ring) . Operation distributes over +: a (b + c) = a b + a c .
    [Show full text]
  • Differential-Linear Cryptanalysis Revisited
    Differential-Linear Cryptanalysis Revisited C´elineBlondeau1 and Gregor Leander2 and Kaisa Nyberg1 1 Department of Information and Computer Science, Aalto University School of Science, Finland fceline.blondeau, [email protected] 2 Faculty of Electrical Engineering and Information Technology, Ruhr Universit¨atBochum, Germany [email protected] Abstract. Block ciphers are arguably the most widely used type of cryptographic primitives. We are not able to assess the security of a block cipher as such, but only its security against known attacks. The two main classes of attacks are linear and differential attacks and their variants. While a fundamental link between differential and linear crypt- analysis was already given in 1994 by Chabaud and Vaudenay, these at- tacks have been studied independently. Only recently, in 2013 Blondeau and Nyberg used the link to compute the probability of a differential given the correlations of many linear approximations. On the cryptana- lytical side, differential and linear attacks have been applied on different parts of the cipher and then combined to one distinguisher over the ci- pher. This method is known since 1994 when Langford and Hellman presented the first differential-linear cryptanalysis of the DES. In this paper we take the natural step and apply the theoretical link between linear and differential cryptanalysis to differential-linear cryptanalysis to develop a concise theory of this method. We give an exact expression of the bias of a differential-linear approximation in a closed form under the sole assumption that the two parts of the cipher are independent. We also show how, under a clear assumption, to approximate the bias effi- ciently, and perform experiments on it.
    [Show full text]