Security Evaluation of GOST 28147-89 in View of International Standardisation

Total Page:16

File Type:pdf, Size:1020Kb

Security Evaluation of GOST 28147-89 in View of International Standardisation Security Evaluation of GOST 28147-89 In View Of International Standardisation Nicolas T. Courtois University College London, Gower Street, London, UK, [email protected] Abstract. GOST 28147-89 is is a well-known 256-bit block cipher which is a plausible alternative for AES-256 and triple DES which is known to have a much lower implementation cost, see [31]. GOST is implemented in standard crypto libraries such as OpenSSL and Crypto++ [25, 45], and is increasingly popular and used also outside its country of origin and on the Internet [23, 24, 31]. In 2010 GOST was submitted to ISO, to become a worldwide industrial encryption standard. Until 2011 researchers unanimously agreed that GOST could or should be very secure, which was summarized in 2010 in these words: \despite considerable cryptanalytic e®orts spent in the past 20 years, GOST is still not broken", see [31]. Unhappily, it was recently discovered that GOST can be broken and is a deeply flawed cipher. There is a very con- siderable amount of recent not yet published work on cryptanalysis of GOST known to us, see [12]. One simple attack was already presented in February at FSE 2011, see [28]. In this short paper we describe an- other attack, to illustrate the fact that there is now plethora of attacks on GOST, which require much less memory, and don't even require the reflection property [29] to hold, without which the recent attack from [28] wouldn't work. We are also aware of many substantially faster at- tacks and of numerous special even weaker cases, see [12]. These will be published in appropriate peer-reviewed cryptography conferences but we must warn the ISO committees right now. More generally, our ambition is to do more than just to point out that a major encryption standard is flawed. We would like to present and sug- gest a new general paradigm for e®ective symmetric cryptanalysis of so called \Algebraic Complexity Reduction" which in our opinion is going to structure and stimulate substantial amounts of academic research on symmetric cryptanalysis for many years to come. This paradigm already leads to a large number of new attacks on GOST [12], way more complex, better and more e±cient than in [28]. In this paper we will explain the main ideas behind it and explain also the precise concept of \Black-box Algebraic Complexity Reduction". This new paradigm generalizes many already known attacks on symmetric ciphers, such ¯xed point, slide, in- volution, cycling and other self-similarity attacks but the exact attacks we obtain, could never be developed previously, because only in the re- cent 5 years it became possible to show the existence of an appropriate last step for many such attacks, which is a low data complexity software algebraic attack. Key Words: Block ciphers, Feistel schemes, key scheduling, self-similarity, reflection attacks, single-key attacks, algebraic attacks, algebraic complexity re- duction, black-box reductions. 2 Nicolas T. Courtois, 1 May 2011 1 What Do We Know About GOST 1.1 The O±cial Status of GOST GOST 28147-89 was standardized in 1989 and ¯rst it became an o±cial standard for the protection of con¯dential information but the speci¯cation of the cipher remained con¯dential [21]. In 1994, the standard was declassi¯ed, published and also translated to English [21, 22]. It is also described in several more recent Internet standards [24, 23]. Unlike DES which could only be used to protect unclassi¯ed information, and like AES, GOST allows to protect also classi¯ed and secret information apparently without any limits, which is explicitly stated by the Russian standard, see the ¯rst page of [22]. Therefore GOST is much more than a Russian equivalent of DES, and its large key size of 256 bits make GOST a plausible alternative for AES-256 and 3-key triple DES. The latter for the same block size of 64 bits o®ers keys of only 168 bits. Clearly GOST is a very serious military-grade cipher designed with most serious applications in mind. At least two sets of GOST S-boxes have been explicitly identi¯ed as being used by the two largest Russian banks, cf. [42, 25]). These banks need to securely communicate with tens of thousands of branches to protect assets worth many hundreds of billions of dollars against fraud. 1.2 Basic Cryptographic Speci¯cation of GOST GOST is a block cipher with a simple Feistel structure, 64-bit block size, 256-bit keys and 32 rounds. Each round contains a key addition modulo 232, a set of 8 bijective S-boxes on 4 bits, and a simple rotation by 11 positions. A particularity of GOST is that its S-boxes can be secret. and they can be used to constitute a secondary key which is common to a given application, further extending key size to a total of 610 bits. One set of S-boxes has been published in 1994 as a part of the Russian standard hash function speci¯cation GOST R 34.11- 94 and according to Schneier [42] this set is used by the Central Bank of the Russian Federation. They also appear in more recent RFC4357 [24] as being part of the so called "id-GostR3411-94-CryptoProParamSet". A source code was included in [42] however this Schneier implementation speci¯es apparently a wrong (reversed) ordering of the S-boxes compared to later code contained in Crypto++ library [45]. This precise version of GOST 28147-89 block cipher is the most popular one, and it is commonly called just \the GOST cipher" in the cryptographic literature. The most complete current reference implementation of GOST which is of genuine Russian origin is a part of OpenSSL library and contains eight standard sets of S-boxes [25]. Other (secret) S-boxes could be recovered from a chip or implementation, see [39, 17]. 1.3 GOST Is Very Competitive In addition to the very long bit keys GOST has a much lower implementation cost than AES or any other comparable encryption algorithm. It really costs much less than AES: for example in hardware GOST 256 bits requires less than Security Evaluation of GOST 28147-89 3 800 GE, while AES-128 requires 3100 GE, see [31]. More than 4 time more gates for a much lower level of security (nearly 1040 times lower). Thus it is not surprising that GOST became an Internet standard [24, 23], it is part of many crypto libraries such as OpenSSL and Crypto++ [25, 45], and is increasingly popular also outside its country of origin [23, 24, 31]. In 2010 GOST was submitted to ISO to become a worldwide encryption stan- dard. Very few crypto algorithms have ever become an international standard. ISO/IEC 18033-3:2010 speci¯es the following algorithms. Four 64-bit block ci- phers: TDEA, MISTY1, CAST-128, HIGHT and three 128-bit block ciphers: AES, Camellia, SEED. GOST is intended to be added to the same standard ISO/IEC 18033-3. Now it appears that never in history of industrial standardisation, we had such a competitive algorithm in terms of cost vs. claimed security level. GOST also has 20 years of cryptanalysis e®orts behind it, and it appears that this claimed military-grade security level was never disputed, until now. 1.4 What Experts Say About GOST Nothing in the current knowledge and literature about GOST ever suggested that it could be insecure. On the contrary, large keys and a large number of 32 rounds make that GOST seems a plausible encryption algorithm to be used for many decades to come. Everyone familiar with the Moore's Law, understands that, in theory 256-bit keys should remain secure for at least 200 years. GOST was widely studied by the top cryptography experts active in the area of block cipher cryptanalysis such as Schneier, Biryukov, Dunkelman, Wagner, various Australian, Japanese, German and Russian scientists, ISO cryptography experts, and all researchers always seemed to agree that it could be or should be secure. While it is widely under- stood that the structure of GOST is in itself quite weak, for example compared to DES, and in particular the di®usion is not quite as good, it was however al- ways stipulated that this should be compensated by a large number of 32 rounds cf. [19, 42, 40] and also by the additional non-linearity and di®usion provided by modular additions [19, 34]. In [3], Biryukov and Wagner write: \A huge number of rounds (32) and a well studied Feistel construction combined with Shannon's substitution- permutation sequence provide a solid basis for GOST's security." In the same paper we read: \after considerable amount of time and e®ort, no progress in cryptanalysis of the standard was made in the open literature". Thus, so far there was no signi¯cant attack on this algorithm from the point of view of communications con¯dentiality: an attack which would allow decryption or key recovery in a realistic scenario where GOST is used for encryption with various random keys. In contrast, there are already many many papers on weak keys in GOST [29, 3], attacks for some well-chosen number of rounds [29, 1, 40], at- tacks with modular additions removed [3], related-key attacks [30, 16, 36], reverse engineering attacks on S-boxes [39, 17], and at Crypto 2008 the hash function based on this cipher was broken [27]. In all these attacks the attacker has much more freedom than we would allow ourselves here. However, as far as traditional 4 Nicolas T.
Recommended publications
  • Thesis Submitted for the Degree of Doctor of Philosophy
    Optimizations in Algebraic and Differential Cryptanalysis Theodosis Mourouzis Department of Computer Science University College London A thesis submitted for the degree of Doctor of Philosophy January 2015 Title of the Thesis: Optimizations in Algebraic and Differential Cryptanalysis Ph.D. student: Theodosis Mourouzis Department of Computer Science University College London Address: Gower Street, London, WC1E 6BT E-mail: [email protected] Supervisors: Nicolas T. Courtois Department of Computer Science University College London Address: Gower Street, London, WC1E 6BT E-mail: [email protected] Committee Members: 1. Reviewer 1: Professor Kenny Paterson 2. Reviewer 2: Dr Christophe Petit Day of the Defense: Signature from head of PhD committee: ii Declaration I herewith declare that I have produced this paper without the prohibited assistance of third parties and without making use of aids other than those specified; notions taken over directly or indirectly from other sources have been identified as such. This paper has not previously been presented in identical or similar form to any other English or foreign examination board. The following thesis work was written by Theodosis Mourouzis under the supervision of Dr Nicolas T. Courtois at University College London. Signature from the author: Abstract In this thesis, we study how to enhance current cryptanalytic techniques, especially in Differential Cryptanalysis (DC) and to some degree in Al- gebraic Cryptanalysis (AC), by considering and solving some underlying optimization problems based on the general structure of the algorithm. In the first part, we study techniques for optimizing arbitrary algebraic computations in the general non-commutative setting with respect to sev- eral metrics [42, 44].
    [Show full text]
  • Public Evaluation Report UEA2/UIA2
    ETSI/SAGE Version: 2.0 Technical report Date: 9th September, 2011 Specification of the 3GPP Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. Document 4: Design and Evaluation Report LTE Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. page 1 of 43 Document 4: Design and Evaluation report. Version 2.0 Document History 0.1 20th June 2010 First draft of main technical text 1.0 11th August 2010 First public release 1.1 11th August 2010 A few typos corrected and text improved 1.2 4th January 2011 A modification of ZUC and 128-EIA3 and text improved 1.3 18th January 2011 Further text improvements including better reference to different historic versions of the algorithms 1.4 1st July 2011 Add a new section on timing attacks 2.0 9th September 2011 Final deliverable LTE Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. page 2 of 43 Document 4: Design and Evaluation report. Version 2.0 Reference Keywords 3GPP, security, SAGE, algorithm ETSI Secretariat Postal address F-06921 Sophia Antipolis Cedex - FRANCE Office address 650 Route des Lucioles - Sophia Antipolis Valbonne - 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 X.400 c= fr; a=atlas; p=etsi; s=secretariat Internet [email protected] http://www.etsi.fr Copyright Notification No part may be reproduced except as authorized by written permission. The copyright and the foregoing restriction extend to reproduction in all media.
    [Show full text]
  • Algebraic Complexity Reduction and Cryptanalysis of GOST Nicolas T
    Algebraic Complexity Reduction and Cryptanalysis of GOST Nicolas T. Courtois University College London, Gower Street, London, UK Abstract. GOST 28147-89 is a well-known Russian government encryp- tion standard. Its large key size of 256 bits at a particularly low imple- mentation cost [83] make that it is widely implemented and used [70, 105, 66, 83, 88]. In 2010 GOST was submitted to ISO to become an inter- national standard. GOST was analysed by Schneier, Biham, Biryukov, Dunkelman, Wagner, various Australian, Japanese, and Russian scien- tists, and all researchers seemed to agree that it looks quite secure. Though the internal structure of GOST seems quite weak compared to DES, and in particular the diffusion is not quite as good, it is always stip- ulated that this should be compensated by a large number of 32 rounds cf. [63, 101, 100, 8] and by the additional non-linearity and diffusion pro- vided by modular additions [63, 84]. At Crypto 2008 the hash function based on this cipher was broken. Yet as far as traditional encryption ap- plications with keys generated at random are concerned, until 2011 no cryptographically significant attack on GOST was found. In this paper we present several new attacks on full 32-rounds GOST. Our methodology is derived from the idea of conditional algebraic attacks on block ciphers [25, 20] which can be defined as attacks in which the prob- lem of key recovery is written as a problem of solving a large system of algebraic equations, and where the attacker makes some \clever" as- sumptions on the cipher which lead to an important simplification in the algebraic description of the problem, which makes it solvable in practice if the assumptions hold.
    [Show full text]
  • Algebraic Cryptanalysis of the Data Encryption Standard
    Algebraic Cryptanalysis of the Data Encryption Standard Nicolas T. Courtois1 and Gregory V. Bard2 1University College of London, Gower Street, London, UK, [email protected] 2Fordham University, NY, USA [email protected] Abstract. In spite of growing importance of AES, the Data Encryption Standard is by no means obsolete. DES has never been broken from the practical point of view. The triple DES is believed very secure, is widely used, especially in the financial sector, and should remain so for many many years to come. In addition, some doubts have been risen whether its replacement AES is secure, given the extreme level of “algebraic vulnerability” of the AES S-boxes (their low I/O degree and exceptionally large number of quadratic I/O equations). Is DES secure from the point of view of algebraic cryptanalysis, a new very fast-growing area of research? We do not really hope to break it, but just to advance the field of cryptanalysis. At a first glance, DES seems to be a very poor target — as there is (apparently) no strong algebraic structure of any kind in DES. However in [14] it was shown that “small” S-boxes always have a low I/O degree (cubic for DES as we show below). In addition, due to their low gate count requirements, by introducing additional variables, we can always get an extremely sparse system of quadratic equations. To assess the algebraic vulnerabilities is the easy part, that may appear unproductive. In this paper we demonstrate that in this way, several interesting attacks on a real-life “industrial” block cipher can be found.
    [Show full text]
  • Computational and Algebraic Aspects of the Advanced Encryption Standard
    Computational and Algebraic Aspects of the Advanced Encryption Standard Carlos Cid, Sean Murphy and Matthew Robshaw Information Security Group, Royal Holloway, University of London, Egham, Surrey, TW20 0EX, U.K. [email protected] [email protected] [email protected] Abstract. The new Advanced Encryption Standard (AES) has been recently selected by the US government to replace the old Data Encryption Standard (DES) for protecting sensitive o±cial information. Due to its simplicity and elegant algebraic structure, the choice of the AES algorithm has motivated the study of a new approach to the analysis of block ciphers. While conventional methods of cryptanalysis (e.g. di®erential and linear cryptanalysis) are usually based on a \statistical" approach, where an attacker attempts to construct statistical patterns through many interactions of the cipher, the so-called algebraic attacks exploit the intrinsic algebraic structure of a cipher. More speci¯cally, the attacker expresses the encryption transformation as a set of multivariate polynomial equations and attempts to recover the encryption key by solving the system. In this paper we consider a number of algebraic aspects of the AES, and examine a few computational and algebraic techniques that could be used in the cryptanalysis of cipher. We show how one can express the cipher as a very large, though surprisingly simple, system of multivariate quadratic equations over the ¯nite ¯eld F28 , and consider some approaches that can be used to solve this system. 1 Introduction In 1997 the US National Institute of Standards and Technology (NIST) announced an open compe- tition to select a substitute for the old 64-bit block, 56-bit key Data Encryption Standard (DES).
    [Show full text]
  • An Algebraic Masking Method to Protect AES Against Power Attacks⋆
    An Algebraic Masking Method to Protect AES Against Power Attacks? Nicolas T. Courtois1 and Louis Goubin1,2 1 Axalto Crypto Research & Advanced Security, 36-38 rue de la Princesse, BP 45, F-78430 Louveciennes Cedex, France, [email protected] 2 PRiSM Versailles University, 45 avenue des Etats-Unis, F-78035 Versailles Cedex, France, [email protected] Abstract. The central question in constructing a secure and efficient masking method for AES is to address the interaction between additive masking and the inverse S-box of Rijndael. All recently proposed meth- ods to protect AES against power attacks try to avoid this problem and work by decomposing the inverse in terms of simpler operations that are more easily protected against DPA by generic methods. In this paper, for the first time, we look at the problem in the face, and show that this interaction is not as intricate as it seems. In fact, any operation, even complex, can be directly protected against DPA of any given order, if it can be embedded in a group that has a compact representation. We show that a secure computation of a whole masked inverse can be done directly in this way, using the group of homographic transformations over the projective space (but not exactly, with some non-trivial technicalities). This is used to propose a general high-level algebraic method to protect AES against power attacks of any given or- der. Key Words: Rijndael, AES, inverse S-box, homographic transforma- tions, linear fractional transformations, M¨obius transformations, the zero- masking problem, Differential Power analysis, higher-order DPA.
    [Show full text]
  • Algebraic Attacks Over GF(2 K), Application to HFE Challenge 2 and Sflash-V2
    Algebraic Attacks over GF (2k), Application to HFE Challenge 2 and Sflash-v2 Nicolas T. Courtois Axalto Cryptography Research & Advanced Security, 36-38 rue de la Princesse, BP 45, 78430 Louveciennes Cedex, France http://www.nicolascourtois.net [email protected] Abstract. The problem MQ of solving a system of multivariate quadratic equations over a finite field is relevant to the security of AES and for several public key cryptosystems. For example Sflash, the fastest known signature scheme (cf. [1]), is based on MQ equations over GF (27), and Patarin’s 500 $ HFE Challenge 2 is over GF (24). Similarly, the fastest alleged algebraic attack on AES due to Courtois, Pieprzyk, Murphy and Robshaw uses a MQ system over GF (28). At present very little is known about practical solvability of such systems of equations over GF (2k). The XL algorithm for Eurocrypt 2000 was initially studied over GF (p), and only recently in two papers presented at CT-RSA’02 and ICISC’02 the behaviour of XL is studied for systems of equations over GF (2). In this paper we show (as expected) that XL over GF (2k), k > 1 (never studied so far) does not always work very well. The reason is the existence of additional roots to the system in the extension field, which is closely related to the remark made by Moh, claiming that the XSL attack on AES cannot work. However, we explain that, the specific set of equations proposed by Murphy and Robshaw already contains a structure that removes the problem. From this, we deduce a method to modify XL so that it works much better over GF (2k).
    [Show full text]
  • Differential Cryptanalysis of GOST
    Di®erential Cryptanalysis of GOST Nicolas T. Courtois1 and MichaÃlMisztal2 1 University College London, Gower Street, London, UK, [email protected] 2 Military University of Technology, Kaliskiego 2, Warsaw, Poland, [email protected] Abstract GOST 28147-89 is a well-known block cipher and the o±cial en- cryption standard of the Russian Federation. A 256-bit block cipher considered as an alternative for AES-256 and triple DES, having an amazingly low implementation cost and thus increasingly popular and used [22, 23, 30, 24, 41]. Until 2010 researchers unanimously agreed that: \despite considerable cryptanalytic e®orts spent in the past 20 years, GOST is still not broken", see [30] and in 2010 it was submitted to ISO 18033 to become a worldwide industrial encryption standard. In 2011 it was suddenly discovered that GOST is insecure on more than one account. There is an amazing variety of recent attacks on GOST [8, 15]. We have reflection attacks [26, 15], attacks with double reflec- tion [15], and various attacks which does not use reflections [15, 8]. All these methods follow a certain general framework called \Alge- braic Complexity Reduction", a new general \umbrella" paradigm in- troduced in [15, 8]. The ¯nal key recovery step is in most cases a software algebraic attack [15, 8] and sometimes a Meet-In-The-Middle attack [26, 15]. In this paper we show that GOST is NOT SECURE even against (advanced forms of) di®erential cryptanalysis (DC), Previously Rus- sian researchers postulated that GOST will be secure against DC for as few as 7 rounds out of 32 [18, 38] and Japanese researchers were already able to break about 13 rounds [37].
    [Show full text]
  • Stream Ciphers and the Estream Project? Vincent Rijmen A,∗ Akatholieke Universiteit Leuven, Dept
    The ISC Int'l Journal of Information Security January 2010, Volume 2, Number 1 (pp. 3{11) ISeCure http://www.isecure-journal.org Invited Paper Stream Ciphers and the eSTREAM Project? Vincent Rijmen a;∗ aKatholieke Universiteit Leuven, Dept. ESAT/SCD-COSIC and IBBT, Kasteelpark Arenberg 10, B-3001 Heverlee, Belgium, and Institute for Applied Information Processing and Communications (IAIK), Graz University of Technology, Inffeldgasse 16a, A-8010 Graz, Austria A R T I C L E I N F O. ABSTRACT Article history: Stream ciphers are an important class of symmetric cryptographic algorithms. Received: 6 October 2009 Revised: | The eSTREAM project contributed significantly to the recent increase of Accepted: 30 November 2009 activity in this field. In this paper, we present a survey of the eSTREAM Published Online: 18 January 2010 project. We also review recent time/memory/data and time/memory/key Keywords: trade-offs relevant for the generic attacks on stream ciphers. Cryptology, Stream Ciphers, Time-Memory Trade-offs, c 2010 ISC. All rights reserved. eSTREAM 1 Introduction design of secure stream ciphers. In Section2 we start with one of the remarkable issues in the stream ciphers The design of secure stream ciphers is one of the old- versus block ciphers debate, namely the fuzzy border est problems in cryptography. Although there exists separating them from one another. In Section3, we a nicely developed theory that answers several of the describe some general results that were obtained dur- important questions, the question is not fully solved ing the eSTREAM competition. These generic attacks (and it will probably never be).
    [Show full text]
  • Security of Wireless Embedded Devices in the Real World
    Security of Wireless Embedded Devices in the Real World Timo Kasper . David Oswald . Christof Paar Chair for Embedded Security HGI, Ruhr-University Bochum Universitaetsstrasse 150 44801 Bochum, Germany {timo.kasper | david.oswald | christof.paar}@rub.de Abstract In the past years, wireless embedded devices have become omnipresent. Portable tokens communicating via an RF (Radio Frequency) interface are employed in contactless applications such as access control, iden- tification, and payments. The survey presented in this paper focuses on those devices that employ crypto- graphic mechanisms as a protection against ill-intended usage or unauthorizedly accessing secured data. By analyzing different commercial products, i.e., electronic passports, the remote keyless entry system KeeLoq, a Mifare Classic based contactless payment system, and a public transport system relying on Mifare DESfire cards we demonstrate that it is feasible to recover the secret cryptographic keys from various cryptographic tokens. At hand of the real-world examples, the implications of a key extraction for the security of the re- spective contactless application are illustrated. 1 Introduction Wireless tokens have become ubiquitous in our everyday life. RFID (Radio Frequency Identifica- tion) technology is used in the supply chain as a barcode replacement, in the medical sector (pace makers, patient wristbands), as a countermeasure against product piracy, or helps to prevent car theft in the form of car immobilizers. Contactless cards, representing the most powerful variant of RFIDs, enable amongst others comfortable ticketing, contactless payments and secure access control. Active, battery-powered remote controls possess their own transmitter enabling greater operating ranges. They are often used in Remote Keyless Entry (RKE) systems that have already replaced the conventional mechanical keys for accessing the majority of modern cars and build- ings.
    [Show full text]
  • Outsmarting Smart Cards
    Outsmarting Smart Cards Gerhard de Koning Gans Copyright c Gerhard de Koning Gans, 2013 ISBN: 978-94-6191-675-4 IPA dissertation series: 2013-05 Typeset using LATEX The work in this thesis has been carried out under the auspices of the re- search school IPA (Institute for Programming research and Algorithmics) The graphical art of this work, except for the comic on page 25, is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ The remaining part of this work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Netherlands License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/nl/ Outsmarting Smart Cards PROEFSCHRIFT ter verkrijging van de graad van doctor aan de Radboud Universiteit Nijmegen op gezag van de rector magnificus prof. mr. S.C.J.J. Kortmann, volgens besluit van het college van decanen in het openbaar te verdedigen op donderdag 11 april 2013 om 15:30 uur precies door Gerrit Theodoor de Koning Gans geboren op 1 juni 1983 te Zwolle Promotor: Prof. dr. B.P.F. Jacobs Copromotor: Dr. F.D. Garcia Manuscriptcommissie: Prof. dr. G. Avoine Université Catholique de Louvain Prof. dr. ir. H.J. Bos Vrije Universiteit Amsterdam Dr. J.C. Hernandez-Castro University of Kent Dr. J.H. Hoepman Prof. dr. E.R. Verheul In memory of Johannes Pap Acknowledgements I would like to thank the many people that helped me directly or indirectly in the completion of my thesis.
    [Show full text]
  • Cryptanalysis of Block Ciphers with Overdefined Systems of Equations
    Cryptanalysis of Block Ciphers with Overdefined Systems of Equations Nicolas T. Courtois1 and Josef Pieprzyk2 1 CP8 Crypto Lab, SchlumbergerSema, 36-38 rue de la Princesse BP 45, 78430 Louveciennes Cedex, France http://www.nicolascourtois.net [email protected] 2 ICS, Macquarie University, NSW 2109, Australia [email protected] Abstract. Several recently proposed ciphers are built with layers of small S-boxes, interconnected by linear key-dependent layers. Their security relies on the fact, that the classical methods of cryptanalysis (e.g. linear or differential attacks) are based on probabilistic characteristics, which makes their security grow exponentially with the number of rounds Nr. In this paper we study the security of such ciphers under an additional hypothesis: the S-box can be described by an overdefined system of algebraic equations (true with probability 1). We show that this hypothesis is true for both Serpent (due to a small size of S-boxes) and Rijndael (due to unexpected algebraic properties). We study general methods known for solving overdefined systems of equations, such as XL from Euro- crypt’00, and show their inefficiency. Then we introduce a new method called XSL that uses the sparsity of the equations and their specific structure. The XSL attack has a parameter P , and in theory we show that P should be a constant. The XSL attack would then be polynomial in Nr, with a huge constant that is double- exponential in the size of the S-box. We demonstrated by computer simulations that the XSL attack works well enough on a toy cipher.
    [Show full text]