An Evaluation of the Klimov-Shamir Keystream Generator Timothy D

Total Page:16

File Type:pdf, Size:1020Kb

An Evaluation of the Klimov-Shamir Keystream Generator Timothy D Masthead Logo Iowa State University Capstones, Theses and Retrospective Theses and Dissertations Dissertations 1-1-2005 An evaluation of the Klimov-Shamir keystream generator Timothy D. Dewey Iowa State University Follow this and additional works at: https://lib.dr.iastate.edu/rtd Recommended Citation Dewey, Timothy D., "An evaluation of the Klimov-Shamir keystream generator" (2005). Retrospective Theses and Dissertations. 18877. https://lib.dr.iastate.edu/rtd/18877 This Thesis is brought to you for free and open access by the Iowa State University Capstones, Theses and Dissertations at Iowa State University Digital Repository. It has been accepted for inclusion in Retrospective Theses and Dissertations by an authorized administrator of Iowa State University Digital Repository. For more information, please contact [email protected]. An evaluation of the Klimov-Shamir keystream generator by Timothy D. Dewey A thesis submitted to the graduate faculty in partial fulfillment of the requirements for the degree of MASTER OF SCIENCE Major: Information Assurance Program of Study Committee: Cliff Bergman, Major Professor Jonathan Smith Doug Jacobson Iowa State University Ames, Iowa 2005 Copyright ©Timothy D. Dewey, 2005. All rights reserved. ii Graduate College Iowa State University This is to certify that the master's thesis of Timothy D. Dewey has met the thesis requirements of Iowa State University Signatures have been redacted for privacy iii DEDICATION I would like to dedicate this thesis to Dr. Frank Blume. Without his expertise and dedica­ tion, I would not have pursued this goal. IV TABLE OF CONTENTS LIST OF TABLES . VI LIST OF FIGURES vii ABSTRACT. Vlll CHAPTER 1. TRADITIONAL STREAM CIPHERS 1 1.1 One-time Pad- Motivation for Stream Ciphers 1 1.2 Definitions and Examples . 3 1.3 Common Constructions- Clock Controlled Generators 8 CHAPTER 2. PROPERTIES OF STREAM CIPHERS . 10 2.1 Definitions and Notation . 10 2 .1.1 Definit ions 10 2.1.2 Notation .. 10 2.2 Basic Properties of Synchronous Stream Ciphers 11 2.3 Pseudorandomness . .... ... .. ..... 13 CHAPTER 3. T-FUNCTION KEYSTREAM GENERATORS . 16 3.1 Definitions and Notations 16 3 .1.1 Definitions 16 3.1.2 Notation .. 16 3.2 Advantages of T -functions 17 3.3 Constructions for Keystreams 19 3.4 Properties of T -function Cycles and Streams 20 3.5 Vulnerabilities of T-functions . ....... 22 v CHAPTER 4. EVALUATION OF KLIMOV-SHAMIR GENERATOR... 31 4.1 Proposed Keystream Generator by Klimov and Shamir . 31 4.2 Evaluation Using Golomb's Randomness Postulates . 32 4.2.1 Evaluation Using Postulate 1 32 4.2.2 Evaluation Using Postulate 2 32 4.2.3 Evaluation Using Postulate 3 34 4.3 Proposed Attacks on the Klimov-Shamir Generator . 37 4.4 A Proposed Construction . 40 CHAPTER 5. CONCLUSIONS AND OPEN PROBLEMS 44 APPENDIX TABLES AND GRAPHS 46 BIBLIOGRAPHY . ... 54 ACKNOWLEDGEMENTS 56 Vl LIST OF TABLES 3.1 Example of Theorem 3.4.2 for xf = x + (x2 V 5) (mod 25) in counter mode. 23 3.2 Example of Theorem 3.4.2 for xf = x + (x2 V 5) (mod 25 ) in feedback mode. 24 4.1 Percentage of total runs and length of runs in the n-th bit slice of xf = x + (x2 V 5) (mod 2n) for various values of n. 33 4.2 Percentage of total runs and length of runs in the n-th bit slice of xf = x + (x2 V 5) (mod 2n) for various values of n (continued). 34 4.3 Length of bit patterns in the subsequence S2k of the keystream of xf = x + (x2 V 5) (mod 220) with initial state 0 and filtering function g1; autocorrelation values C(t) of the first half of the subsequence. 37 A.l Experimental values of C( ~) for a single cycle of the Klimov-Shamir keystream generator with n = 9 and various values of m in the filtering function 9m : Xi t---> [xi]n, . .. , [xi]n- m+l · . 49 vii LIST OF FIGURES 1.1 LFSR with three registers x1, x2, and x3 that satisfies the linear recur- rence Xn = Xn-l EB Xn- 3· ... ... · · · · · · · 5 2.1 C(t) for maximal length LFSR with 8 registers. 15 3.1 C(t) of the Klimov-Shamir keystream generator (see Chapter 4) with n = 16 and 91. 28 4.1 C(t) of the Klimov-Shamir keystream generator with n = 12 and 91· 35 4.2 C(t) of the Klimov-Shamir keystream generator with n = 14 and 91· 36 4.3 C(t) of the K-S shrinking generator with n = 16. .... .... 43 A.l C(t) of the Klimov-Shamir keystream generator with n = 10 and 91· 46 A.2 C(t) of t he Klimov-Shamir keystream generator with n = 12 and 91· 47 A.3 C(t) of the Klimov-Shamir keystream generator with n = 14 and 91· 47 A.4 C(t) of the Klimov-Shamir keystream generator with n = 16 and 91. 48 A.5 C(t) of the Klimov-Shamir keystream generator with n = 12 and 91 . 50 A.6 C(t) of the Klimov-Shamir keystream generator with n = 12 and 92· 50 A.7 C(t) of the Klimov-Shamir keystream generator with n = 12 and 93. 51 A .8 C(t) of the K-S shrinking generator with n = 10. 51 A.9 C(t) of the K-S shrinking generator with n = 12. 52 A.10 C(t) of the K-S shrinking generator with n = 14. 52 A.11 C(t) of t he K-S shrinking generator with n = 16. 53 Vlll ABSTRACT Stream ciphers are valuable in applications where efficiency and security are both needed. Linear feedback shift register sequences have been the mainstay of stream ciphers in the past. However, Alexander Klimov and Adi Shamir recently proposed a class of invertible T-functions as a possible source of cryptographic building blocks for stream ciphers. In particular, they present the mapping xf = x + (x2 V 5) (mod 2n) which is a permutation with a single cycle modulo 2n for any n. We discuss traditional stream cipher constructions and the desired properties of sequences produced by pseudorandom keystream generators. We then utilize these desired properties to analyze the aforementioned Klimov-Shamir keystream generator. Finally, we propose a possible construction for a keystream generator that combines a traditional stream cipher construction and the function proposed by Klimov and Shamir in order to produce a keystream that adheres to the desired properties we set forth. 1 CHAPTER 1. TRADITIONAL STREAM CIPHERS 1.1 One-time Pad- Motivation for Stream Ciphers Many stream ciphers provide a level of security that is suspect or untested. However, the concept of a stream cipher comes from Shannon's work with the one-time pad which is famous for its perfect security although infeasible key management. In using stream ciphers, we attempt to utilize the concept of the security of the one-time pad as well as developing a feasible key management scheme. First, let us examine the one-time pad. The one-time pad is an encryption scheme in which the key (which can only be used once- hence the name) is a random sequence that is at least as long as the message. For a simple example of how a one-time pad works, suppose a teacher needs to report a letter grade to a student. First, the teacher and student exchange a key at some point in time before they desire to have this secure communication. Let their common key K be the randomly produced bit string K = 11100110. Assume the teacher wants to tell the student that he received an 'A' in the class; the message is simply the ASCII code for the letter 'A' which is 01000001. In order to encrypt the message, the teacher simply takes the XOR of the key and the plaintext message. We will use the common notation of EB as the XOR operation, which is equivalent to bitwise addition modulo 2. Now the teacher has (11100110 EB 01000001) = 10100111 and gives the ciphertext message 10100111 to the student. The student simply applies his key to the ciphertext (i.e., 10100111) in order to decrypt the message. He now has (11100110 EB 10100111) = 01000001 which is the plaintext, and if he is familiar with ASCII encoding, he now knows his grade. If not, he may be slightly confused. If we consider this example, we can see that if K is kept secret, we gain no information about the plaintext from the ciphertext. Assume that we know the ciphertext C; make an 2 arbitrary guess M at the plaintext (notice that C and M should have the same length). For any guess M we can find a K that satisfies our encryption scheme. For each bit position Ci = 1 in the ciphertext, let the key bit ki be the complement of mi, and for each ciphertext bit Ci = 0, let ki = mi. The key K comprised of the ki satisfies M EB K = C. Therefore, if we have no information about the key, then we can do no better than guess any one of the possible messages. This amazing result leads us to the question, "Can we develop an encryption scheme with similar security but with reasonable key management?" The short answer is, "No, we cannot." However, the one-time pad has motivated the idea of using a pseudorandom number generator (PRNG) to produce a key for our cipher. If we can find a relatively efficient deterministic function that creates a sequence of bits that is indistinguishable from a bit sequence that has been randomly produced, t hen we have achieved the goal of creating a practical one-time pad.
Recommended publications
  • Pseudo-Random Bit Generators Based on Linear-Feedback Shift Registers in a Programmable Device
    184 Measurement Automation Monitoring, Jun. 2016, no. 06, vol. 62, ISSN 2450-2855 Maciej PAROL, Paweł DĄBAL, Ryszard SZPLET MILITARY UNIVERSITY OF TECHNOLOGY, FACULTY OF ELECTRONICS 2 Gen. Sylwestra Kaliskiego, 00-908 Warsaw, Poland Pseudo-random bit generators based on linear-feedback shift registers in a programmable device Abstract known how to construct LFSRs with the maximum period since they correspond to primitive polynomials over the binary field F2. We present the results of comparative study on three pseudo-random bit The N-bit length LFSR with a well-chosen feedback function generators (PRBG) based on various use of linear-feedback shift registers gives the sequence of maximal period (LFSR). The project was focused on implementation and tests of three such PRBG in programmable device Spartan 6, Xilinx. Tests of the designed PRBGs were performed with the use of standard statistical tests =2 . (1) NIST SP800-22. For example, an eight bit LFSR will have 255 states. LFSRs Keywords: pseudo-random bit generators, linear-feedback shift register, generators have good statistical properties, however they have low programmable device. linear complexity equal to their order (only N in considered case), which is the main drawback of primitive LFSRs. They can 1. Introduction be easily reconstructed having a short output segment of length just 2N [4]. In addition, they are very easy for implementation in In dynamically developed domains of information technology programmable devices. Figure 1 presents the structure of a simple and telecommunication, sequences of random generated bits are LFSR-based generator. still more and more required and used. There are two common sources of random bits, i.e.
    [Show full text]
  • Breaking Crypto Without Keys: Analyzing Data in Web Applications Chris Eng
    Breaking Crypto Without Keys: Analyzing Data in Web Applications Chris Eng 1 Introduction – Chris Eng _ Director of Security Services, Veracode _ Former occupations . 2000-2006: Senior Consulting Services Technical Lead with Symantec Professional Services (@stake up until October 2004) . 1998-2000: US Department of Defense _ Primary areas of expertise . Web Application Penetration Testing . Network Penetration Testing . Product (COTS) Penetration Testing . Exploit Development (well, a long time ago...) _ Lead developer for @stake’s now-extinct WebProxy tool 2 Assumptions _ This talk is aimed primarily at penetration testers but should also be useful for developers to understand how your application might be vulnerable _ Assumes basic understanding of cryptographic terms but requires no understanding of the underlying math, etc. 3 Agenda 1 Problem Statement 2 Crypto Refresher 3 Analysis Techniques 4 Case Studies 5 Q & A 4 Problem Statement 5 Problem Statement _ What do you do when you encounter unknown data in web applications? . Cookies . Hidden fields . GET/POST parameters _ How can you tell if something is encrypted or trivially encoded? _ How much do I really have to know about cryptography in order to exploit implementation weaknesses? 6 Goals _ Understand some basic techniques for analyzing and breaking down unknown data _ Understand and recognize characteristics of bad crypto implementations _ Apply techniques to real-world penetration tests 7 Crypto Refresher 8 Types of Ciphers _ Block Cipher . Operates on fixed-length groups of bits, called blocks . Block sizes vary depending on the algorithm (most algorithms support several different block sizes) . Several different modes of operation for encrypting messages longer than the basic block size .
    [Show full text]
  • Key Differentiation Attacks on Stream Ciphers
    Key differentiation attacks on stream ciphers Abstract In this paper the applicability of differential cryptanalytic tool to stream ciphers is elaborated using the algebraic representation similar to early Shannon’s postulates regarding the concept of confusion. In 2007, Biham and Dunkelman [3] have formally introduced the concept of differential cryptanalysis in stream ciphers by addressing the three different scenarios of interest. Here we mainly consider the first scenario where the key difference and/or IV difference influence the internal state of the cipher (∆key, ∆IV ) → ∆S. We then show that under certain circumstances a chosen IV attack may be transformed in the key chosen attack. That is, whenever at some stage of the key/IV setup algorithm (KSA) we may identify linear relations between some subset of key and IV bits, and these key variables only appear through these linear relations, then using the differentiation of internal state variables (through chosen IV scenario of attack) we are able to eliminate the presence of corresponding key variables. The method leads to an attack whose complexity is beyond the exhaustive search, whenever the cipher admits exact algebraic description of internal state variables and the keystream computation is not complex. A successful application is especially noted in the context of stream ciphers whose keystream bits evolve relatively slow as a function of secret state bits. A modification of the attack can be applied to the TRIVIUM stream cipher [8], in this case 12 linear relations could be identified but at the same time the same 12 key variables appear in another part of state register.
    [Show full text]
  • Stream Ciphers (Contd.)
    Stream Ciphers (contd.) Debdeep Mukhopadhyay Assistant Professor Department of Computer Science and Engineering Indian Institute of Technology Kharagpur INDIA -721302 Objectives • Non-linear feedback shift registers • Stream ciphers using LFSRs: – Non-linear combination generators – Non-linear filter generators – Clock controlled generators – Other Stream Ciphers Low Power Ajit Pal IIT Kharagpur 1 Non-linear feedback shift registers • A Feedback Shift Register (FSR) is non-singular iff for all possible initial states every output sequence of the FSR is periodic. de Bruijn Sequence An FSR with feedback function fs(jj−−12 , s ,..., s jL − ) is non-singular iff f is of the form: fs=⊕jL−−−−+ gss( j12 , j ,..., s jL 1 ) for some Boolean function g. The period of a non-singular FSR with length L is at most 2L . If the period of the output sequence for any initial state of a non-singular FSR of length L is 2L , then the FSR is called a de Bruijn FSR, and the output sequence is called a de Bruijn sequence. Low Power Ajit Pal IIT Kharagpur 2 Example f (,xxx123 , )1= ⊕⊕⊕ x 2 x 3 xx 12 t x1 x2 x3 t x1 x2 x3 0 0 0 0 4 0 1 1 1 1 0 0 5 1 0 1 2 1 1 0 6 0 1 0 3 1 1 1 3 0 0 1 Converting a maximal length LFSR to a de-Bruijn FSR Let R1 be a maximum length LFSR of length L with linear feedback function: fs(jj−−12 , s ,..., s jL − ). Then the FSR R2 with feedback function: gs(jj−−12 , s ,..., s jL − )=⊕ f sjj−−12 , s ,..., s j −L+1 is a de Bruijn FSR.
    [Show full text]
  • An Analysis of the Hermes8 Stream Ciphers
    An Analysis of the Hermes8 Stream Ciphers Steve Babbage1, Carlos Cid2, Norbert Pramstaller3,andH˚avard Raddum4 1 Vodafone Group R&D, Newbury, United Kingdom [email protected] 2 Information Security Group, Royal Holloway, University of London Egham, United Kingdom [email protected] 3 IAIK, Graz University of Technology Graz, Austria [email protected] 4 Dept. of Informatics, The University of Bergen, Bergen, Norway [email protected] Abstract. Hermes8 [6,7] is one of the stream ciphers submitted to the ECRYPT Stream Cipher Project (eSTREAM [3]). In this paper we present an analysis of the Hermes8 stream ciphers. In particular, we show an attack on the latest version of the cipher (Hermes8F), which requires very few known keystream bytes and recovers the cipher secret key in less than a second on a normal PC. Furthermore, we make some remarks on the cipher’s key schedule and discuss some properties of ci- phers with similar algebraic structure to Hermes8. Keywords: Hermes8, Stream Cipher, Cryptanalysis. 1 Introduction Hermes8 is one of the 34 stream ciphers submitted to eSTREAM, the ECRYPT Stream Cipher Project [3]. The cipher has a simple byte-oriented design, con- sisting of substitutions and shifts of the state register bytes. Two versions of the cipher have been proposed. Originally, the cipher Hermes8 [6] was submitted as candidate to eSTREAM. Although no weaknesses of Hermes8 were found dur- ing the first phase of evaluation, the cipher did not seem to present satisfactory performance in either software or hardware [4]. As a result, a slightly modified version of the cipher, named Hermes8F [7], was submitted for consideration dur- ing the second phase of eSTREAM.
    [Show full text]
  • Recovering the MSS-Sequence Via CA
    Procedia Computer Science Volume 80, 2016, Pages 599–606 ICCS 2016. The International Conference on Computational Science Recovering the MSS-sequence via CA Sara D. Cardell1 and Amparo F´uster-Sabater2∗ 1 Instituto de Matem´atica,Estat´ıstica e Computa¸c˜ao Cient´ıfica UNICAMP, Campinas, Brazil [email protected] 2 Instituto de Tecnolog´ıas F´ısicasy de la Informaci´on CSIC, Madrid, Spain [email protected] Abstract A cryptographic sequence generator, the modified self-shrinking generator (MSSG), was re- cently designed as a novel version of the self-shrinking generator. Taking advantage of the cryptographic properties of the irregularly decimated generator class, the MSSG was mainly created to be used in stream cipher applications and hardware implementations. Nevertheless, in this work it is shown that the MSSG output sequence, the so-called modified self-shrunken sequence, is generated as one of the output sequences of a linear model based on Cellular Au- tomata that use rule 60 for their computations. Thus, the linearity of these structures can be advantageous exploited to recover the complete modified self-shrunken sequence from a number of intercepted bits. Keywords: Modified Self-Shrinking Generator, Cellular Automata, Rule 60, Cryptography 1 Introduction Symmetric key ciphers, also known as secret key ciphers [10, 12 ], are characterized by the fact that the same key is used in both encryption and decryption processes. They are commonly classified into block ciphers and stream ciphers. As opposed to block ciphers, in stream ciphers thesymbolsizetobeencryptedequalsthesizeofeachcharacterinthealphabet.Ifweusea binary alphabet, then the encryption is performed bit by bit, that is, every bit in the original message (plaintext) is encrypted separate and independently from the previous or the following bits.
    [Show full text]
  • A 32-Bit RC4-Like Keystream Generator
    A 32-bit RC4-like Keystream Generator Yassir Nawaz1, Kishan Chand Gupta2 and Guang Gong1 1Department of Electrical and Computer Engineering University of Waterloo Waterloo, ON, N2L 3G1, CANADA 2Centre for Applied Cryptographic Research University of Waterloo Waterloo, ON, N2L 3G1, CANADA [email protected], [email protected], [email protected] Abstract. In this paper we propose a new 32-bit RC4 like keystream generator. The proposed generator produces 32 bits in each iteration and can be implemented in software with reasonable memory requirements. Our experiments show that this generator is 3.2 times faster than original 8-bit RC4. It has a huge internal state and offers higher resistance against state recovery attacks than the original 8-bit RC4. We analyze the ran- domness properties of the generator using a probabilistic approach. The generator is suitable for high speed software encryption. Keywords: RC4, stream ciphers, random shuffle, keystream generator. 1 Introduction RC4 was designed by Ron Rivest in 1987 and kept as a trade secret until it leaked in 1994. In the open literatures, there is very small number of proposed keystream generator that are not based on shift registers. An interesting design approach of RC4 which have originated from exchange- shuffle paradigm [10], is to use a relatively big table/array that slowly changes with time under the control of itself. As discussed by Goli´c in [5], for such a generator a few general statistical properties of the keystream can be measured by statistical tests and these criteria are hard to establish theoretically.
    [Show full text]
  • Iso/Iec 18033-4:2005(E)
    This preview is downloaded from www.sis.se. Buy the entire standard via https://www.sis.se/std-906455 INTERNATIONAL ISO/IEC STANDARD 18033-4 First edition 2005-07-15 Information technology — Security techniques — Encryption algorithms — Part 4: Stream ciphers Technologies de l'information — Techniques de sécurité — Algorithmes de chiffrement — Partie 4: Chiffrements en flot Reference number ISO/IEC 18033-4:2005(E) © ISO/IEC 2005 This preview is downloaded from www.sis.se. Buy the entire standard via https://www.sis.se/std-906455 ISO/IEC 18033-4:2005(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobe's licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobe's licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. © ISO/IEC 2005 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISO's member body in the country of the requester.
    [Show full text]
  • The Rc4 Stream Encryption Algorithm
    TTHEHE RC4RC4 SSTREAMTREAM EENCRYPTIONNCRYPTION AALGORITHMLGORITHM William Stallings Stream Cipher Structure.............................................................................................................2 The RC4 Algorithm ...................................................................................................................4 Initialization of S............................................................................................................4 Stream Generation..........................................................................................................5 Strength of RC4 .............................................................................................................6 References..................................................................................................................................6 Copyright 2005 William Stallings The paper describes what is perhaps the popular symmetric stream cipher, RC4. It is used in the two security schemes defined for IEEE 802.11 wireless LANs: Wired Equivalent Privacy (WEP) and Wi-Fi Protected Access (WPA). We begin with an overview of stream cipher structure, and then examine RC4. Stream Cipher Structure A typical stream cipher encrypts plaintext one byte at a time, although a stream cipher may be designed to operate on one bit at a time or on units larger than a byte at a time. Figure 1 is a representative diagram of stream cipher structure. In this structure a key is input to a pseudorandom bit generator that produces a stream
    [Show full text]
  • Stream Cipher Designs: a Review
    SCIENCE CHINA Information Sciences March 2020, Vol. 63 131101:1–131101:25 . REVIEW . https://doi.org/10.1007/s11432-018-9929-x Stream cipher designs: a review Lin JIAO1*, Yonglin HAO1 & Dengguo FENG1,2* 1 State Key Laboratory of Cryptology, Beijing 100878, China; 2 State Key Laboratory of Computer Science, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China Received 13 August 2018/Accepted 30 June 2019/Published online 10 February 2020 Abstract Stream cipher is an important branch of symmetric cryptosystems, which takes obvious advan- tages in speed and scale of hardware implementation. It is suitable for using in the cases of massive data transfer or resource constraints, and has always been a hot and central research topic in cryptography. With the rapid development of network and communication technology, cipher algorithms play more and more crucial role in information security. Simultaneously, the application environment of cipher algorithms is in- creasingly complex, which challenges the existing cipher algorithms and calls for novel suitable designs. To accommodate new strict requirements and provide systematic scientific basis for future designs, this paper reviews the development history of stream ciphers, classifies and summarizes the design principles of typical stream ciphers in groups, briefly discusses the advantages and weakness of various stream ciphers in terms of security and implementation. Finally, it tries to foresee the prospective design directions of stream ciphers. Keywords stream cipher, survey, lightweight, authenticated encryption, homomorphic encryption Citation Jiao L, Hao Y L, Feng D G. Stream cipher designs: a review. Sci China Inf Sci, 2020, 63(3): 131101, https://doi.org/10.1007/s11432-018-9929-x 1 Introduction The widely applied e-commerce, e-government, along with the fast developing cloud computing, big data, have triggered high demands in both efficiency and security of information processing.
    [Show full text]
  • On the Design and Analysis of Stream Ciphers Hell, Martin
    On the Design and Analysis of Stream Ciphers Hell, Martin 2007 Link to publication Citation for published version (APA): Hell, M. (2007). On the Design and Analysis of Stream Ciphers. Department of Electrical and Information Technology, Lund University. Total number of authors: 1 General rights Unless other specific re-use rights are stated the following general rights apply: Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. • Users may download and print one copy of any publication from the public portal for the purpose of private study or research. • You may not further distribute the material or use it for any profit-making activity or commercial gain • You may freely distribute the URL identifying the publication in the public portal Read more about Creative commons licenses: https://creativecommons.org/licenses/ Take down policy If you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately and investigate your claim. LUND UNIVERSITY PO Box 117 221 00 Lund +46 46-222 00 00 On the Design and Analysis of Stream Ciphers Martin Hell Ph.D. Thesis September 13, 2007 Martin Hell Department of Electrical and Information Technology Lund University Box 118 S-221 00 Lund, Sweden e-mail: [email protected] http://www.eit.lth.se/ ISBN: 91-7167-043-2 ISRN: LUTEDX/TEIT-07/1039-SE c Martin Hell, 2007 Abstract his thesis presents new cryptanalysis results for several different stream Tcipher constructions.
    [Show full text]
  • Linear Statistical Weakness of Alleged RC4 Keystream Generator
    Linear Statistical Weakness of Alleged RC4 Keystream Generator Jovan Dj. GoliC * School of Electrical Engineering, University of Belgrade Bulevar Revolucije 73, 11001 Beograd, Yugoslavia Abstract. A keystream generator known as RC4 is analyzed by the lin- ear model approach. It is shown that the second binary derivative of the least significant bit output sequence is correlated to 1 with the corre- lation coefficient close to 15 ' 2-3" where n is the variable word size of RC4. The output sequence length required for the linear statistical weak- ness detection may be realistic in high speed applications if n < 8. The result can be used to distinguish RC4 from other keystream generators and to determine the unknown parameter n, as well as for the plaintext uncertainty reduction if n is small. 1 Introduction Any keystream generator for practical stream cipher applications can generally be represented as an aiit,onomous finite-state machine whose initial state and possibly the next-state and output functions as well are secret key dependent. A common type of keystream generators consists of a number of possibly irregularly clocked linear feedback shift registers (LFSRs) that are combined by a function with or without memory. Standard cryptographic criteria such as a large period, a high linear complexity, and good statistical properties are thus relatively easily satisfied, see [16], [17], but such a generator may in principle be vulnerable to various divide-and-conquer attacks in the known plaintext (or ciphertext-only) scenario, where the objective is to reconstruct, the secret key controlled LFSR initial states from the known keystream sequence, for a survey see [17] and [6].
    [Show full text]