Block Ciphers Block Ciphers and Stream Ciphers

Total Page:16

File Type:pdf, Size:1020Kb

Block Ciphers Block Ciphers and Stream Ciphers Block Ciphers and Stream Ciphers In practical ciphers the plaintext M is divided into fixed-length blocks M = M1M2 : : : MN . Then, each block Mi is encrypted to the ciphertext block Ci = EK(Mi), and the results are concatenated to the ciphertext C = C1C2 : : : CN . There are two major kind of ciphers, which differ in the way the plaintexts are encrypted: Block Ciphers c Eli Biham - May 3, 2005 83 Block Ciphers (4) c Eli Biham - May 3, 2005 84 Block Ciphers (4) y Stream Ciphers Block Ciphers The blocks are encrypted sequentially, each block is encrypted by a distinct All the blocks are encrypted in the same way, under exactly the same transfor- transformation, which might depend on mation (no memory): C1 = E(M1), C2 = E(M2), etc. Encryption transformation should not be vulnerable to known plaintext attacks. 1. the previous encrypted blocks, Attacker should not be able to collect (almost) all the plaintext/ciphertext blocks pairs, keep the transformation table T (M) = C, and use it to en- 2. the previous transformation, crypt/decrypt if they do not know the mathematical formulation of the trans- 3. the block number, formation (and in particular the key). Thus, the block size should be large, and the number of distinct possible 4. the key. values in a plaintext block should be larger than the minimal allowed complexity of an attack. This information from one block is kept in memory between the encryption In the past blocks of 64 bits were used, which have 264 possibilities, whose of this block and the succeeding block, for use during the encryption of the 64 succeeding block. table storing costs at least 2 known plaintexts and memory space. Usually, stream ciphers use blocks of either one bit or eight bits (one Nowadays, the standard block size is 128 bits. character). c Eli Biham - May 3, 2005 85 Block Ciphers (4) c Eli Biham - May 3, 2005 86 Block Ciphers (4) Block Ciphers The Data Encryption Standard - DES Block ciphers are substitution ciphers in which the plaintext and the cipher- 1. The most widely used cipher in civilian applications. text blocks are binary vectors of length N. When N = 64 there are 264 different plaintexts/ciphertexts, and when N = 128 there are 2128 different 2. Developed by IBM; Evolved from Lucifer. plaintexts/ciphertexts. 3. Accepted as an US NBS standard in 1977, and later as an international N For each key the encryption function EK( ) is a permutation from 0; 1 to standard. itself. · f g 4. A block cipher with N = 64 bit blocks. D ( ) is the decryption function (the inverse permutation), K · such that DK(EK( )) = EK(DK( )) = Identity. 5. 56-bit keys (eight bytes, in each byte seven bits are used; the eighth bit · · can be used as a parity bit). 6. Exhaustive search requires 256 encryption steps (255 on average). c Eli Biham - May 3, 2005 87 Block Ciphers (4) c Eli Biham - May 3, 2005 88 Block Ciphers (4) The Data Encryption Standard - DES (cont.) DES Outline £ ¡ ¢ ¤ 7. Iterates a round-function 16 times in 16 rounds ( ). The round- Plaintext (P) Key (K) function mixes the data with the key. IP PC-1 K1 C D 8. Each round, the key information entered to the round function is called a F ROL1 ROL1 PC-2 subkey. The subkeys K1, . , K16 are computed by a key scheduling K2 algorithm. F ROL1 ROL1 K3 PC-2 F ROL2 ROL2 Ki PC-2 F ROL ROL K13 PC-2 F ROL2 ROL2 K14 PC-2 F ROL2 ROL2 K15 PC-2 F ROL2 ROL2 K16 PC-2 F ROL1 ROL1 PC-2 FP Ciphertext (T) c Eli Biham - May 3, 2005 89 Block Ciphers (4) y c Eli Biham - May 3, 2005 90 Block Ciphers (4) y The F -Function The Initial Permutation (IP) input (32 bits) The following tables describe for each output bit the number of the input bit whose value enters to the output bit. For example, in IP , the 58'th bit in the E input becomes the first bit of the output. 48 bits subkey (48 bits) 1 IP: FP=IP− : S1 S2 S3 S4 S5 S6 S7 S8 S1 S2 S3 S4 S5 S6 S7 S8 E E E E E E E E K K K K K K K K 58 50 42 34 26 18 10 2 40 8 48 16 56 24 64 32 60 52 44 36 28 20 12 4 39 7 47 15 55 23 63 31 S1 S2 S3 S4 S5 S6 S7 S8 I I I I I I I I 62 54 46 38 30 22 14 6 38 6 46 14 54 22 62 30 64 56 48 40 32 24 16 8 37 5 45 13 53 21 61 29 S1 S2 S3 S4 S5 S6 S7 S8 57 49 41 33 25 17 9 1 36 4 44 12 52 20 60 28 59 51 43 35 27 19 11 3 35 3 43 11 51 19 59 27 S1 S2 S3 S4 S5 S6 S7 S8 O O O O O O O O 61 53 45 37 29 21 13 5 34 2 42 10 50 18 58 26 P 63 55 47 39 31 23 15 7 33 1 41 9 49 17 57 25 output (32 bits) c Eli Biham - May 3, 2005 91 Block Ciphers (4) c Eli Biham - May 3, 2005 92 Block Ciphers (4) The P Permutation and the E Expansion The S Boxes P Permutes the order of 32 bits. E Expands 32 bits to 48 bits by duplicating S box S1: 16 bits twice. 14 4 13 1 2 15 11 8 3 10 6 12 5 9 0 7 P : E: 0 15 7 4 14 2 13 1 10 6 12 11 9 5 3 8 16 7 20 21 32 1 2 3 4 5 4 1 14 8 13 6 2 11 15 12 9 7 3 10 5 0 29 12 28 17 4 5 6 7 8 9 15 12 8 2 4 9 1 7 5 11 3 14 10 0 6 13 1 15 23 26 8 9 10 11 12 13 5 18 31 10 12 13 14 15 16 17 2 8 24 14 16 17 18 19 20 21 S box S2: 32 27 3 9 20 21 22 23 24 25 19 13 30 6 24 25 26 27 28 29 15 1 8 14 6 11 3 4 9 7 2 13 12 0 5 10 22 11 4 25 28 29 30 31 32 1 3 13 4 7 15 2 8 14 12 0 1 10 6 9 11 5 0 14 7 11 10 4 13 1 5 8 12 6 9 3 2 15 13 8 10 1 3 15 4 2 11 6 7 12 0 5 14 9 c Eli Biham - May 3, 2005 93 Block Ciphers (4) c Eli Biham - May 3, 2005 94 Block Ciphers (4) The S Boxes (cont.) The S Boxes (cont.) S box S3: S box S5: 10 0 9 14 6 3 15 5 1 13 12 7 11 4 2 8 2 12 4 1 7 10 11 6 8 5 3 15 13 0 14 9 13 7 0 9 3 4 6 10 2 8 5 14 12 11 15 1 14 11 2 12 4 7 13 1 5 0 15 10 3 9 8 6 13 6 4 9 8 15 3 0 11 1 2 12 5 10 14 7 4 2 1 11 10 13 7 8 15 9 12 5 6 3 0 14 1 10 13 0 6 9 8 7 4 15 14 3 11 5 2 12 11 8 12 7 1 14 2 13 6 15 0 9 10 4 5 3 S box S4: S box S6: 7 13 14 3 0 6 9 10 1 2 8 5 11 12 4 15 12 1 10 15 9 2 6 8 0 13 3 4 14 7 5 11 13 8 11 5 6 15 0 3 4 7 2 12 1 10 14 9 10 15 4 2 7 12 9 5 6 1 13 14 0 11 3 8 10 6 9 0 12 11 7 13 15 1 3 14 5 2 8 4 9 14 15 5 2 8 12 3 7 0 4 10 1 13 11 6 3 15 0 6 10 1 13 8 9 4 5 11 12 7 2 14 4 3 2 12 9 5 15 10 11 14 1 7 6 0 8 13 c Eli Biham - May 3, 2005 95 Block Ciphers (4) c Eli Biham - May 3, 2005 96 Block Ciphers (4) The S Boxes (cont.) The S Boxes (cont.) S box S7: How to interpret the S boxes: The representation of the S boxes use the first and sixth bits of the input as a 4 11 2 14 15 0 8 13 3 12 9 7 5 10 6 1 line index (between 0 and 3), and the four middle bits as the row index (between 13 0 11 7 4 9 1 10 14 3 5 12 2 15 8 6 0 and 15). 1 4 11 13 12 3 7 14 10 15 6 8 0 5 9 2 6 11 13 8 1 4 10 7 9 5 0 15 14 2 3 12 Thus, the input values which correspond to the standard description of the S boxes are S box S8: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 13 2 8 4 6 15 11 1 10 9 3 14 5 0 12 7 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 1 15 13 8 10 3 7 4 12 5 6 11 0 14 9 2 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 7 11 4 1 9 12 14 2 0 6 10 13 15 3 5 8 2 1 14 7 4 10 8 13 15 12 9 0 3 5 6 11 c Eli Biham - May 3, 2005 97 Block Ciphers (4) c Eli Biham - May 3, 2005 98 Block Ciphers (4) The S Boxes (cont.) The Key Scheduling Algorithm Note that all the operations are linear, except for the S boxes.
Recommended publications
  • Miss in the Middle
    Miss in the middle By: Gal Leonard Keret Miss in the Middle Attacks on IDEA, Khufu and Khafre • Written by: – Prof. Eli Biham. – Prof. Alex Biryukov. – Prof. Adi Shamir. Introduction • So far we used traditional differential which predict and detect statistical events of highest possible probability. Introduction • A new approach is to search for events with probability one, whose condition cannot be met together (events that never happen). Impossible Differential • Random permutation: 휎 푀0 = 푎푛푦 퐶 표푓 푠푖푧푒 푀0. • Cipher (not perfect): 퐸 푀0 = 푠표푚푒 퐶 표푓 푠푖푧푒 푀0. • Events (푚 ↛ 푐) that never happen distinguish a cipher from a random permutation. Impossible Differential • Impossible events (푚 ↛ 푐) can help performing key elimination. • All the keys that lead to impossibility are obviously wrong. • This way we can filter wrong key guesses and leaving the correct key. Enigma – for example • Some of the attacks on Enigma were based on the observation that letters can not be encrypted to themselves. 퐸푛푖푔푚푎(푀0) ≠ 푀0 In General • (푀0, 퐶1) is a pair. If 푀0 푀0 → 퐶1. • 푀 ↛ 퐶 . 0 0 Some rounds For any key • ∀ 푘푒푦| 퐶1 → 퐶0 ↛ is an impossible key. Cannot lead to 퐶0. Some rounds Find each keys Decrypt 퐶1back to 퐶0. IDEA • International Data Encryption Algorithm. • First described in 1991. • Block cipher. • Symmetric. • Key sizes: 128 bits. • Block sizes: 64 bits. ⊕ - XOR. ⊞ - Addition modulo 216 ⊙ - Multiplication modulo 216+1 Encryption security • Combination of different mathematical groups. • Creation of "incompatibility“: ∗ • 푍216+1 → 푍216 ∗ • 푍216 → 푍216+1 ∗ ∗ Remark: 푍216+1 doesn’t contain 0 like 푍216 , so in 푍216+1 0 will be converted to 216 since 0 ≡ 216(푚표푑 216).
    [Show full text]
  • Report on the AES Candidates
    Rep ort on the AES Candidates 1 2 1 3 Olivier Baudron , Henri Gilb ert , Louis Granb oulan , Helena Handschuh , 4 1 5 1 Antoine Joux , Phong Nguyen ,Fabrice Noilhan ,David Pointcheval , 1 1 1 1 Thomas Pornin , Guillaume Poupard , Jacques Stern , and Serge Vaudenay 1 Ecole Normale Sup erieure { CNRS 2 France Telecom 3 Gemplus { ENST 4 SCSSI 5 Universit e d'Orsay { LRI Contact e-mail: [email protected] Abstract This do cument rep orts the activities of the AES working group organized at the Ecole Normale Sup erieure. Several candidates are evaluated. In particular we outline some weaknesses in the designs of some candidates. We mainly discuss selection criteria b etween the can- didates, and make case-by-case comments. We nally recommend the selection of Mars, RC6, Serp ent, ... and DFC. As the rep ort is b eing nalized, we also added some new preliminary cryptanalysis on RC6 and Crypton in the App endix which are not considered in the main b o dy of the rep ort. Designing the encryption standard of the rst twentyyears of the twenty rst century is a challenging task: we need to predict p ossible future technologies, and wehavetotake unknown future attacks in account. Following the AES pro cess initiated by NIST, we organized an op en working group at the Ecole Normale Sup erieure. This group met two hours a week to review the AES candidates. The present do cument rep orts its results. Another task of this group was to up date the DFC candidate submitted by CNRS [16, 17] and to answer questions which had b een omitted in previous 1 rep orts on DFC.
    [Show full text]
  • State of the Art in Lightweight Symmetric Cryptography
    State of the Art in Lightweight Symmetric Cryptography Alex Biryukov1 and Léo Perrin2 1 SnT, CSC, University of Luxembourg, [email protected] 2 SnT, University of Luxembourg, [email protected] Abstract. Lightweight cryptography has been one of the “hot topics” in symmetric cryptography in the recent years. A huge number of lightweight algorithms have been published, standardized and/or used in commercial products. In this paper, we discuss the different implementation constraints that a “lightweight” algorithm is usually designed to satisfy. We also present an extensive survey of all lightweight symmetric primitives we are aware of. It covers designs from the academic community, from government agencies and proprietary algorithms which were reverse-engineered or leaked. Relevant national (nist...) and international (iso/iec...) standards are listed. We then discuss some trends we identified in the design of lightweight algorithms, namely the designers’ preference for arx-based and bitsliced-S-Box-based designs and simple key schedules. Finally, we argue that lightweight cryptography is too large a field and that it should be split into two related but distinct areas: ultra-lightweight and IoT cryptography. The former deals only with the smallest of devices for which a lower security level may be justified by the very harsh design constraints. The latter corresponds to low-power embedded processors for which the Aes and modern hash function are costly but which have to provide a high level security due to their greater connectivity. Keywords: Lightweight cryptography · Ultra-Lightweight · IoT · Internet of Things · SoK · Survey · Standards · Industry 1 Introduction The Internet of Things (IoT) is one of the foremost buzzwords in computer science and information technology at the time of writing.
    [Show full text]
  • Data Encryption Standard
    Data Encryption Standard The Data Encryption Standard (DES /ˌdiːˌiːˈɛs, dɛz/) is a Data Encryption Standard symmetric-key algorithm for the encryption of electronic data. Although insecure, it was highly influential in the advancement of modern cryptography. Developed in the early 1970s atIBM and based on an earlier design by Horst Feistel, the algorithm was submitted to the National Bureau of Standards (NBS) following the agency's invitation to propose a candidate for the protection of sensitive, unclassified electronic government data. In 1976, after consultation with theNational Security Agency (NSA), the NBS eventually selected a slightly modified version (strengthened against differential cryptanalysis, but weakened against brute-force attacks), which was published as an official Federal Information Processing Standard (FIPS) for the United States in 1977. The publication of an NSA-approved encryption standard simultaneously resulted in its quick international adoption and widespread academic scrutiny. Controversies arose out of classified The Feistel function (F function) of DES design elements, a relatively short key length of the symmetric-key General block cipher design, and the involvement of the NSA, nourishing Designers IBM suspicions about a backdoor. Today it is known that the S-boxes that had raised those suspicions were in fact designed by the NSA to First 1975 (Federal Register) actually remove a backdoor they secretly knew (differential published (standardized in January 1977) cryptanalysis). However, the NSA also ensured that the key size was Derived Lucifer drastically reduced such that they could break it by brute force from [2] attack. The intense academic scrutiny the algorithm received over Successors Triple DES, G-DES, DES-X, time led to the modern understanding of block ciphers and their LOKI89, ICE cryptanalysis.
    [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]
  • Impossible Differential Cryptanalysis of Reduced Round Hight
    1 IMPOSSIBLE DIFFERENTIAL CRYPTANALYSIS OF REDUCED ROUND HIGHT A THESIS SUBMITTED TO THE GRADUATE SCHOOL OF APPLIED MATHEMATICS OF MIDDLE EAST TECHNICAL UNIVERSITY BY CIHANG˙ IR˙ TEZCAN IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF SCIENCE IN CRYPTOGRAPHY JUNE 2009 Approval of the thesis: IMPOSSIBLE DIFFERENTIAL CRYPTANALYSIS OF REDUCED ROUND HIGHT submitted by CIHANG˙ IR˙ TEZCAN in partial fulfillment of the requirements for the degree of Master of Science in Department of Cryptography, Middle East Technical University by, Prof. Dr. Ersan Akyıldız Director, Graduate School of Applied Mathematics Prof. Dr. Ferruh Ozbudak¨ Head of Department, Cryptography Assoc. Prof. Dr. Ali Doganaksoy˘ Supervisor, Mathematics Examining Committee Members: Prof. Dr. Ersan Akyıldız METU, Institute of Applied Mathematics Assoc. Prof. Ali Doganaksoy˘ METU, Department of Mathematics Dr. Muhiddin Uguz˘ METU, Department of Mathematics Dr. Meltem Sonmez¨ Turan Dr. Nurdan Saran C¸ankaya University, Department of Computer Engineering Date: I hereby declare that all information in this document has been obtained and presented in accordance with academic rules and ethical conduct. I also declare that, as required by these rules and conduct, I have fully cited and referenced all material and results that are not original to this work. Name, Last Name: CIHANG˙ IR˙ TEZCAN Signature : iii ABSTRACT IMPOSSIBLE DIFFERENTIAL CRYPTANALYSIS OF REDUCED ROUND HIGHT Tezcan, Cihangir M.Sc., Department of Cryptography Supervisor : Assoc. Prof. Dr. Ali Doganaksoy˘ June 2009, 49 pages Design and analysis of lightweight block ciphers have become more popular due to the fact that the future use of block ciphers in ubiquitous devices is generally assumed to be extensive.
    [Show full text]
  • Case Studies: Crypto
    CSE331 : COMPUTER SECURITY FUNDAMENTALS Case Study : Crypto 2 Overview • DES : Cracking a strong cipher [which has grown old] • Short history • Key size issue • Specialized hardware [Deep Crack] • AES : Competition to select the successor to DES • Selecting Finalists • Selected details on algorithm analysis Data Security: Case Study I : Dyn DDOS Attack (Mirai) [Tony Mione, SUNY Korea, 2020] 3 DES – Short history • Late 1960s, IBM works on developing a strong cipher • => Lucifer • IBM seeks help in strengthening algorithm from NSA (Nat. Security Agency) and other analysts • 1973 : NBS (National Bureau of Standards) puts out call for proposals of encryption algorithms • Modified Lucifer was proposed to the NBS as a national encryption standard • 1977 => Adopted by NBS and labeled DES (Data Encryption Standard) • FIPS 46 [Federal Information Processing Standard] Data Security: Case Study I : Dyn DDOS Attack (Mirai) [Tony Mione, SUNY Korea, 2020] 4 NSA Changes • Key size [128 => 56 bits] • Drew some criticism at the time due to small key size and possible brute force attack • DES used a 56-bit key, so there are 256, or 72,057,594,037,927,936 of them • Brute force attack became possible by late 1990s, several days to crack a key • S-Boxes redesigned • NSA would not comment on design rationale • Suspicion that NSA inserted a back-door • Actually, S-boxes were found to resist differential cryptanalysis (a technique discovered in the public crypto community in 1990) Data Security: Case Study I : Dyn DDOS Attack (Mirai) [Tony Mione, SUNY Korea,
    [Show full text]
  • Cryptology — (236506) Prof. Eli Biham —
    ¤ ¥ Cryptology | ¡ ¢£ £ ¦ ¡ §¨ (236506) ¤ ¦ £ § ¦ Prof. Eli Biham | © ¡ ¡ Computer Science Department Technion, Haifa 32000, Israel May 3, 2005 c Eli Biham Use and distribution (without modification) of this material are allowed as long as the copyright notices and this permission are maintained, and as long as the full set of slides remains complete. Shimon Even, Dror Rawitz, Moni Shachar and Orr Dunkelman made major contributions to these slides. c Eli Biham - May 3, 2005 1 Introduction (1) Cryptology Course ¤¦¥ Lecturer: Eli Biham | ¡ ¢ £ ¢ ¤¦¥ Assistant: Elad Barkan | §¨ © £ Class: Thursday 10:30{12:30, Taub 5 Tutorial: Thursday 13:30{14:30, Taub 5 Prerequisites: ¤ 104134 Modern Algebra H ¢ © ¡ © £ ¥ 094412 Probability M © £ ¡ 236343 Computability Theory ¢ £ ¢ ¡ © c Eli Biham - May 3, 2005 2 Introduction (1) Cryptology Course (cont.) Grade: 70% exam, 30% exercises (exam grades below 46 will not be combined with the grades of the exer- cises) Exam: 1/7/2005. moed B: 9/10/2005. WWW page: http://www.cs.technion.ac.il/ cs236506/ Between other things, these slides can be fetched∼ from this page. Mailing List: Register through the course WWW page. All messages will be posted through this mailing list. All students must be registered to the list. c Eli Biham - May 3, 2005 3 Introduction (1) (1) ¡ ¢ £ ¤ ¤ ¢ duction £ ¨ ¢ tro © In ¢ ¢ ¡ © ¤ © © £ ¨ ¢ ¤ ¥ ¢ © £ £ ¡ ¡ ¢ ¤§¦ ¤ ¤ ¢ ¥ ¢ ¤ £ ¡ ¨ 4 §£ ¢ ¤ ¡ © ¡ £ ¢ ¡ 2005 3, y Ma - Biham Eli c Lecturer Contact Information ¤¦¥ Lecturer: Eli Biham | ¡ ¢ £ ¢ Office: Taub
    [Show full text]
  • Cryptanalysis of Block Ciphers
    Cryptanalysis of Block Ciphers Jiqiang Lu Technical Report RHUL–MA–2008–19 30 July 2008 Royal Holloway University of London Department of Mathematics Royal Holloway, University of London Egham, Surrey TW20 0EX, England http://www.rhul.ac.uk/mathematics/techreports CRYPTANALYSIS OF BLOCK CIPHERS JIQIANG LU Thesis submitted to the University of London for the degree of Doctor of Philosophy Information Security Group Department of Mathematics Royal Holloway, University of London 2008 Declaration These doctoral studies were conducted under the supervision of Prof. Chris Mitchell. The work presented in this thesis is the result of original research carried out by myself, in collaboration with others, whilst enrolled in the Information Security Group of Royal Holloway, University of London as a candidate for the degree of Doctor of Philosophy. This work has not been submitted for any other degree or award in any other university or educational establishment. Jiqiang Lu July 2008 2 Acknowledgements First of all, I thank my supervisor Prof. Chris Mitchell for suggesting block cipher cryptanalysis as my research topic when I began my Ph.D. studies in September 2005. I had never done research in this challenging ¯eld before, but I soon found it to be really interesting. Every time I ¯nished a manuscript, Chris would give me detailed comments on it, both editorial and technical, which not only bene¯tted my research, but also improved my written English. Chris' comments are fantastic, and it is straightforward to follow them to make revisions. I thank my advisor Dr. Alex Dent for his constructive suggestions, although we work in very di®erent ¯elds.
    [Show full text]
  • Differential Cryptanalysis of the Data Encryption Standard
    Differential Cryptanalysis of the Data Encryption Standard Eli Biham1 Adi Shamir2 December 7, 2009 1Computer Science Department, Technion – Israel Institute of Technology, Haifa 32000, Israel. Email: [email protected], WWW: http://www.cs.technion.ac.il/˜biham/. 2Department of Applied Mathematics and Computer Science, The Weizmann Institute of Science, Rehovot 76100, Israel. Email: [email protected]. This versionofthebookisprocessedfromtheauthor’soriginalLaTeXfiles,andmaybe differentlypaginatedthantheprintedbookbySpringer(1993). Copyright:EliBihamandAdiShamir. Preface The security of iterated cryptosystems and hash functions has been an active research area for many years. The best known and most widely used function of this type is the Data Encryption Standard (DES). It was developed at IBM and adopted by the National Bureau of Standards in the mid 70’s, and has successfully withstood all the attacks published so far in the open literature. Since the introduction of DES, many other iterated cryptosystems were developed, but their design and analysis were based on ad-hoc heuristic arguments, with no theoretical justification. In this book, we develop a new type of cryptanalytic attack which can be successfully applied to many iterated cryptosystems and hash functions. It is primarily a chosen plaintext attack but under certain circumstances, it can also be applied as a known plaintext attack. We call it “differen- tial cryptanalysis”, since it analyzes the evolution of differences when two related plaintexts are encrypted under the same key. Differential cryptanalysis is the first published attack which is capable of breaking the full 16-round DES in less than 255 complexity. The data analysis phase computes the key by analyzing about 236 ciphertexts in 237 time.
    [Show full text]
  • Standing the Test of Time: the Data Encryption Standard, Volume 47
    Standing the Test of Time: The Data Encryption Standard Susan Landau ast and hard, that is all that cryptographers bit key length was insecure. In spite of such claims, have ever wanted: a system that encrypts DES remained a strong encryption algorithm until quickly but is essentially impossible to the middle of the 1990s—several times longer break. With their reliance on elementary than the government had reason to expect. Now, number theory, public-key systems have however, DES is past the end of its useful lifetime. Fcaptured mathematicians’ imagination. Public-key In the summer of 1998 DES’s insecurity was algorithms are too slow to be used for most data definitively demonstrated when a $250,000 com- transmissions, and instead public-key algorithms puter built by the Electronic Frontier Foundation are used for establishing a key. Then a private-key (EFF) decrypted a DES-encoded message in 56 system does the encryption. Private-key algorithms hours. In January 1999 this was improved to 22 are typically faster than public-key ones. hours through a combination of 100,000 networked The workhorse private-key algorithm is the Data PCs and the EFF machine. But until a substitute is Encryption Standard (DES), which relies on cryp- found, DES remains a de facto standard. The Na- tographic design principles that predate public tional Institute of Standards and Technology key. With the exception of RC4 in Web browsers (NIST)—whose predecessor, the National Bureau of and relatively insecure cable-TV signal encryption, Standards, certified DES—is currently seeking a suc- DES is the most widely used public cryptosystem cessor to the algorithm.
    [Show full text]
  • Differential Cryptanalysis
    Differential Cryptanalysis C¸etin Kaya Ko¸c Oregon State University 1 Differential cryptanalysis is a method for breaking certain classes of cryptosystems It was invented in 1990 by Israeli researchers Eli Biham and Adi Shamir However, apparently the IBM researchers who designed DES knew about differential crypt- analysis, as was indicated by Don Copper- smith of TJ Watson Research Center 2 Differential cryptanalysis is efficient when the cryptanalyst can choose plaintexts and obtain ciphertexts (chosen plaintext cryptanalysis) The known plaintext differential cryptanalysis is also possible, however, often the size of the known text pairs is very large The method searches for plaintext, ciphertext pairs whose difference is constant, and inves- tigates the differential behavior of the cryp- tosystem The difference of two elements P1 and P2 is defined as P1 ⊕ P2 (bit-wise XOR operation) for DES The difference may be defined differently if the method is applied to some other cryptosystem 3 Differential cryptanalysis is applicable to the iterated ciphers with a weak round function (so-called Feistel ciphers) The summary of the technique: • Observe the difference between the two ci- phertexts as a function of the difference between the corresponding plaintexts • Find the highest probability differential in- put (called characteristic) which can be traced through several rounds • Assign probabilities to the keys and locate the most probable key 4 Notation • P denotes plaintext, T denotes ciphertext • (P, P ∗)isapair of plaintexts which XOR to a specific value P , i.e., P = P ⊕ P ∗ • (T,T∗)isapair of ciphertexts which XOR to a specific value T , i.e., T = T ⊕ T ∗ • Primed values are always differential: P , T , a, A, etc.
    [Show full text]