Fast Software Encryption: 8th International Workshop, FSE 2001 Yokohama, Japan, April 2–4, 2001 Revised Papers [1 ed.] 9783540438694, 3540438696

This book constitutes the thoroughly refereed post-proceedings of the 8th International Workshop on Fast Software Encryp

324 79 4MB

English Pages 354 [359] Year 2002

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
The Saturation Attack — A Bait for Twofish....Pages 1-15
Linear Cryptanalysis of Reduced Round Serpent....Pages 16-27
Cryptanalysis of the Mercy Block Cipher....Pages 28-36
Producing Collisions for PANAMA....Pages 37-51
The RIPEMD L and RIPEMD R Improved Variants of MD4 Are Not Collision Free....Pages 52-65
New Constructions of Resilient Boolean Functions with Maximal Nonlinearity....Pages 66-77
Optimized Self-Synchronizing Mode of Operation....Pages 78-91
Fast Encryption and Authentication: XCBC Encryption and XECB Authentication Modes....Pages 92-108
Incremental Unforgeable Encryption....Pages 109-124
ZIP Attacks with Reduced Known Plaintext....Pages 125-134
Cryptanalysis of the SEAL 3.0 Pseudorandom Function Family....Pages 135-143
Cryptanalysis of SBLH....Pages 144-151
A Practical Attack on Broadcast RC4....Pages 152-164
Improved Square Attacks against Reduced-Round Hierocrypt ....Pages 165-173
Differential Cryptanalysis of Q....Pages 174-186
Differential Cryptanalysis of Nimbus....Pages 187-195
Fast Correlation Attack Algorithm with List Decoding and an Application....Pages 196-210
Bias in the LEVIATHAN Stream Cipher....Pages 211-218
Analysis of SSC2....Pages 219-232
Round Security and Super-Pseudorandomness of MISTY Type Structure....Pages 233-247
New Results on the Pseudorandomness of Some Blockcipher Constructions....Pages 248-266
NESSIE: A European Approach to Evaluate Cryptographic Algorithms....Pages 267-276
Related Key Attacks on Reduced Round KASUMI....Pages 277-285
Security of Camellia against Truncated Differential Cryptanalysis....Pages 286-299
Impossible Differential Cryptanalysis of Zodiac....Pages 300-311
The Block Cipher SC2000....Pages 312-327
Flaws in Differential Cryptanalysis of Skipjack....Pages 328-335
Efficient Algorithms for Computing Differential Properties of Addition....Pages 336-350
Recommend Papers

Fast Software Encryption: 8th International Workshop, FSE 2001 Yokohama, Japan, April 2–4, 2001 Revised Papers [1 ed.]
 9783540438694, 3540438696

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Citation preview

Lecture Notes in Computer Science Edited by G. Goos, J. Hartmanis, and J. van Leeuwen

2355

3

Berlin Heidelberg New York Barcelona Hong Kong London Milan Paris Tokyo

Mitsuru Matsui (Ed.)

Fast Software Encryption 8th International Workshop, FSE 2001 Yokohama, Japan, April 2-4, 2001 Revised Papers

13

Series Editors Gerhard Goos, Karlsruhe University, Germany Juris Hartmanis, Cornell University, NY, USA Jan van Leeuwen, Utrecht University, The Netherlands Volume Editor Mitsuru Matsui Mitsubishi Electric Corporation 5-1-1 Ofuna Kamakura Kanagawa, 247-8501, Japan E-mail: [email protected]

Cataloging-in-Publication Data applied for Die Deutsche Bibliothek - CIP-Einheitsaufnahme Fast software encryption : 8th international workshop ; proceedings / FSE 2001, Yokohama, Japan, April 2 - 4, 2001. Mitsuru Matsui (ed.). - Berlin ; Heidelberg ; New York ; Barcelona ; Hong Kong ; London ; Milan ; Paris ; Tokyo : Springer, 2002 (Lecture notes in computer science ; Vol. 2355) ISBN 3-540-43869-6

CR Subject Classification (1998): E.3, F.2.1, E.4, G.4 ISSN 0302-9743 ISBN 3-540-43869-6 Springer-Verlag Berlin Heidelberg New York This work is subject to copyright. All rights are reserved, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, re-use of illustrations, recitation, broadcasting, reproduction on microfilms or in any other way, and storage in data banks. Duplication of this publication or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965, in its current version, and permission for use must always be obtained from Springer-Verlag. Violations are liable for prosecution under the German Copyright Law. Springer-Verlag Berlin Heidelberg New York a member of BertelsmannSpringer Science+Business Media GmbH http://www.springer.de © Springer-Verlag Berlin Heidelberg 2002 Printed in Germany Typesetting: Camera-ready by author, data conversion by PTP Berlin, Stefan Sossna e. K. Printed on acid-free paper SPIN 10870083 06/3142 543210

Preface Fast Software Encryption is an eight-year-old workshop on symmetric cryptography, including the design and cryptanalysis of block and stream ciphers, as well as hash functions. The first Fast Software Encryption Workshop was held in Cambridge in 1993, followed by Leuven in 1994, Cambridge in 1996, Haifa in 1997, Paris in 1998, Rome in 1999, and New York in 2000. This Fast Software Encryption Workshop, FSE 2001, was held from 2-4 April 2001 in Yokohama, Japan, in cooperation with the Institute of Industrial Science, of the University of Tokyo. This year a total of 46 papers were submitted to FSE 2001. After a twomonth review process, 27 papers were accepted for presentation at the workshop. In addition, we were fortunate to be able to organize a special talk by Bart Preneel on the NESSIE project, a European initiative to evaluate cryptographic algorithms. The committee of this workshop was: General Chair Hideki Imai (The University of Tokyo) Program Committee Ross Anderson (Cambridge Univ.) Eli Biham (Technion) Cunsheng Ding (Singapore) Henri Gilbert (France Telecom) Dieter Gollman (Microsoft) Thomas Johansson (Lund Univ.) Lars Knudsen (Bergen Univ.) James Massey (Denmark) Mitsuru Matsui (Mitsubishi Electric, Chair) Kaisa Nyberg (Nokia) Bart Preneel (Katholieke Univ. Leuven) Bruce Schneier (Counterpane) We would like to thank all submitting authors and the committee members for their hard work. We are also appreciative of the financial support provided by Mitsubishi Electric Corporation. Special thanks are due to Toshio Tokita, Junko Nakajima, Yasuyuki Sakai, Seiichi Amada, Toshio Hasegawa, Katsuyuki Takashima, and Toru Sorimachi for their efforts in making the local arrangements for this workshop. We were very pleased and honored to host the first FSE workshop held in Asia. Finally, we are also happy to announce that the next FSE will be the first FSE workshop sponsored by International Association for Cryptologic Research (IACR). May 2002

Mitsuru Matsui

Table of Contents

Cryptanalysis of Block Ciphers I The Saturation Attack – A Bait for Twofish . . . . . . . . . . . . . . . . . . . . . . . . . . . Stefan Lucks

1

Linear Cryptanalysis of Reduced Round Serpent . . . . . . . . . . . . . . . . . . . . . . . 16 Eli Biham, Orr Dunkelman, Nathan Keller Cryptanalysis of the Mercy Block Cipher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Scott R. Fluhrer

Hash Functions and Boolean Functions Producing Collisions for PANAMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Vincent Rijmen, Bart Van Rompay, Bart Preneel, Joos Vandewalle The RIPEMDL and RIPEMDR Improved Variants of MD4 Are Not Collision Free . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Christophe Debaert, Henri Gilbert New Constructions of Resilient Boolean Functions with Maximal Nonlinearity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Yuriy Tarannikov

Modes of Operations Optimized Self-Synchronizing Mode of Operation . . . . . . . . . . . . . . . . . . . . . . 78 Ammar Alkassar, Alexander Geraldy, Birgit Pfitzmann, Ahmad-Reza Sadeghi Fast Encryption and Authentication: XCBC Encryption and XECB Authentication Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Virgil D. Gligor, Pompiliu Donescu Incremental Unforgeable Encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Enrico Buonanno, Jonathan Katz, Moti Yung

Cryptanalysis of Stream Ciphers I ZIP Attacks with Reduced Known Plaintext . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Michael Stay Cryptanalysis of the SEAL 3.0 Pseudorandom Function Family . . . . . . . . . . 135 Scott R. Fluhrer

VIII

Table of Contents

Cryptanalysis of SBLH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 Goce Jakimovski, Ljupˇco Kocarev A Practical Attack on Broadcast RC4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Itsik Mantin, Adi Shamir

Cryptanalysis of Block Ciphers II Improved Square Attacks against Reduced-Round Hierocrypt . . . . . . . . 165 Paulo S.L.M. Barreto, Vincent Rijmen, Jorge Nakahara, Bart Preneel, Joos Vandewalle, Hae Y. Kim Differential Cryptanalysis of Q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Eli Biham, Vladimir Furman, Michal Misztal, Vincent Rijmen Differential Cryptanalysis of Nimbus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Vladimir Furman

Cryptanalysis of Stream Ciphers II Fast Correlation Attack Algorithm with List Decoding and an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 Miodrag J. Mihaljevi´c, Marc P.C. Fossorier, Hideki Imai Bias in the LEVIATHAN Stream Cipher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Paul Crowley, Stefan Lucks Analysis of SSC2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Daniel Bleichenbacher, Willi Meier

Pseudo-Randomness Round Security and Super-Pseudorandomness of MISTY Type Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 Tetsu Iwata, Tomonobu Yoshino, Tomohiro Yuasa, Kaoru Kurosawa New Results on the Pseudorandomness of Some Blockcipher Constructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 Henri Gilbert, Marine Minier

FSE 2001 Special Talk NESSIE: A European Approach to Evaluate Cryptographic Algorithms . . . 267 Bart Preneel

Cryptanalysis of Block Ciphers III Related Key Attacks on Reduced Round KASUMI . . . . . . . . . . . . . . . . . . . . . 277 Mark Blunden, Adrian Escott

Table of Contents

IX

Security of Camellia against Truncated Differential Cryptanalysis . . . . . . . . 286 Masayuki Kanda, Tsutomu Matsumoto Impossible Differential Cryptanalysis of Zodiac . . . . . . . . . . . . . . . . . . . . . . . . 300 Deukjo Hong, Jaechul Sung, Shiho Moriai, Sangjin Lee, Jongin Lim

Design and Evaluation The Block Cipher SC2000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 Takeshi Shimoyama, Hitoshi Yanami, Kazuhiro Yokoyama, Masahiko Takenaka, Kouichi Itoh, Jun Yajima, Naoya Torii, Hidema Tanaka Flaws in Differential Cryptanalysis of Skipjack . . . . . . . . . . . . . . . . . . . . . . . . . 328 Louis Granboulan Efficient Algorithms for Computing Differential Properties of Addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 Helger Lipmaa, Shiho Moriai

Author Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351

The Saturation Attack – A Bait for Twofish Stefan Lucks⋆ Theoretische Informatik University of Mannheim, 68131 Mannheim, Germany [email protected]

Abstract. This paper introduces the notion of a “saturation attack”. Consider a permutation p over w-bit words. If p is applied to all 2w disjoint words, the set of outputs is exactly the same as the set of inputs. A saturation attack exploits this fact. The current paper applies saturation attacks on reduced-round variants of the Twofish block cipher with up to seven rounds with full whitening or eight rounds without whitening at the end (i.e., half of the cipher). The attacks take up to 2127 chosen plaintexts (half of the codebook) and are 2–4 times faster than exhaustive search. The attacks are based on key-independent distinguishers for up to six rounds of Twofish, making extensive use of saturation properties.

1

Introduction

Modern b-bit block ciphers often use permutations p : {0, 1}w → {0, 1}w with w < b as building blocks. E.g., p may be an S-box, a round function, or a group operation where one of the operands is constant. The constant may be unknown to the cryptanalyst, e.g. as a part of the (round) key. We regard the input for p as a data channel. For the cryptanalyst, p may be known or unknown, and the cryptanalysts may be unable to determine the input for p. A “saturation attack” is based on the idea of choosing a set of k ∗ 2w plaintexts such that each of the 2w inputs for p occurs exactly k times. In this case, we say that the data channel into p is “saturated”. A saturation attack exploits the fact that if the input for p is saturated, then the output from p is saturated, too. The name “saturation attack” is new, but such attacks have been studied before. E.g., the “Square attack” is a saturation attack, developed for the block cipher Square [4]. It works as well for other Square-like ciphers such as the AES candidate Crypton [11,12] and the finalist Rijndael [5], which has recently been chosen as the AES. All these ciphers are 128-bit block ciphers with 8-bit data channels. The attack starts with a set of 28 plaintexts with one saturated channel. The other 15 channels are constant. After two rounds, all 16 data channels are saturated. After three rounds, the saturation property is likely to have been lost, but the sum of all values in a data channel is zero. This allows to distinguish the three-round output from random. The best currently known attacks on Crypton [3] and Rijndael/AES [7] are extensions of the Square attack. ⋆

Supported by German Science Foundation (DFG) grant KR 1521/3-2.

M. Matsui (Ed.): FSE 2001, LNCS 2355, pp. 1–15, 2002. c Springer-Verlag Berlin Heidelberg 2002 

2

S. Lucks

“Miss in the middle” attacks [1] are rudimentarily related to saturation attacks, exploiting the fact that given two inputs x = y for a permutation p one gets two outputs p(x) and p(y) with p(x) = p(y). Also related is the attack on “Ladder DES”, based on choosing c∗232 distinct inputs for a 64-bit data channel and checking if all the outputs are distinct [2]. When using “higher-order differentials” [9], one chooses a certain complete set of plaintexts and, after some rounds of the cipher, predicts a key-independent property with probability one. This resembles the current approach. This paper shows that saturation attacks are a useful tool for ciphers which are definitely not Square-like. We concentrate on the AES finalist Twofish [15]. So far, the authors of Twofish published some preliminary cryptanalytic results [16,6] themselves, a key separation property has been identified for Twofish [13, 14,8], and some observations on the generation of the Twofish S-Boxes and on differential cryptanalysis have been made [10]. The motivation for this research has been twofold. First, even though Twofish has not been chosen as the AES, it is (and probably will continue to be) used in practice. E.g., recent versions of popular email encryption programs, namely PGP and GnuPG [17], implement Twofish. Second, the study of saturation attacks appears to be of independent interest in cryptanalysis. 1.1

Notation

We will use the notion of a “multiset” to describe a w-bit data channel. A multiset with k ∗ 2w entries is “saturated” if every value in {0, 1}w is found exactly k times in the multiset. If k = 1, a saturated multiset is the set {0, 1}w . In the context of this paper, a data channel is always 32 bits wide, and we call a value in a data channel a “word”. We interchangeably view a word x as  a 32-bit string x = (x31 , . . . , x0 ) ∈ {0, 1}32 and as an unsigned integer x = i xi ∗ 2i . The addition of values in a data channel is thus addition mod 232 . We write “x<
>b” for rotation to the right. E.g. (x<
>b = x for all x and b, and (x31 , x30 , . . . , x1 , x0 )< < 1, x := (a′ ⊕ c)>

and y := b′ ⊕ (d1 K 2i+3 ❄ ❄ ❄ ❄ a b Round Function Fi x y Fig. 2. The Application of the Twofish Round Function.

Our attack greatly depends on the functions G1 and G2 to be permutations over {0, 1}32 . Actually, G2 (x) = G1 (x< < 1}.) The swap changes these texts to (A, γ3 , β0 , β1 ). In the second round, the 232 inputs for the round function are (A, γ3 ). The round function generates the pairs (bi , ci ) with bi = G1 (ai )+G2 (γ3 )+K6 and ci = G1 (ai )+2G2 (γ3 )+K7 for ai ∈ A. The sets B = {bi } and C = {ci } are saturated, just like A. Applying the round function here means XORing the constant β0 to the values of B, followed by a rotation, and XORing β1 <
❄ ❄ ❄ ❄ (const)(const) A (const)  ✘✘ ✘✘✘     ✘✘  ✘✘✘ ❄ ❄ ❄ ❄ A (const) (const)(const) ❄ < < < ✲❄ ✲ ❢ ✲❄ ✲ F2 ❢ ❄ > > > ❄ ❄ ❄ C❄ A (const) B  ✘✘ ✘✘✘   ✘✘    ✘✘✘ ❄ ❄ ❄ ❄ A (const) B C ❄ ❄ ❄ ❄





❄(const) ❄ ❄ < < < ✲ ✲❄ ❢ ✲ F3 ✲❄ ❢ ❄ > > > ❄ ❄ ❄ ❄ B C (bal.) (bal.)  ✘✘ ✘✘✘     ✘✘  ✘✘✘ ❄ ❄ ❄ ❄ (bal.) (bal.) B C ❄ < < < ❄ ✲ ✲❢ ✲ F4 ✲❄ ❢ ❄ > > > ❄ ❄ ❄ ??❄ (bal.) (bal.) ?  ✘✘ ✘✘✘   ✘✘    ✘✘✘ ❄ ❄ ❄ ❄ (bal.) (bal.) B

C

?

?

A

F

G

Fig. 4. The Four-Round Distinguisher from Section 3.1

3.2

Another Four-Round Distinguisher

Our second distinguisher works quite similarly to the first one. We start with 232 plaintexts of the form (α0 , α1 , α2 , A) with arbitrary constants αi . The prewhitening changes the constants and we get texts (β0 , β1 , β2 , A). After the first round, including the swap, these are (γ2 , A, β0 , β1 ). In the second round, the inputs to the round function are of the form (γ2 , A), where A = {0, 1}32 is a saturated set and γ2 is constant. The round function generates the pairs (bi , ci ) with bi = G1 (γ2 ) + G2 (ai ) + K6 and ci = G1 (γ2 ) + 2G2 (ai ) + K7 for ai ∈ A. Now the set B = {bi } is saturated like A, but the multiset C ∗ = {ci } isn’t. Instead, it is semi-saturated with a constant LSB(ci ) = γ ∗ ∈ {0, 1} for all ci ∈ C ∗ : γ ∗ = LSB(G1 (γ2 )) ⊕ LSB(K7 ). We apply the round function by adding some constants to the elements of B and C ∗ , and by then rotating the elements of B. The results are a saturated set B and a semi-saturated set C ∗ , as before. After the swap, we have texts of the form (B, C ∗ , γ2 , A). In the third round the 232 inputs for the round function are of the form (B, C ∗ ). Consider the round function’s outputs (di , ei ) with di = G1 (bi ) +

The Saturation Attack – A Bait for Twofish

7

G2 (ci ) + K8 and ei = G1 (bi ) + 2G2 (ci ) + K9 . Since B = {bi } is saturated, so is {G1 (bi )}, and especially  G1 (bi ) ≡ 0 (mod 2). 0≤i1))) ,

i

i

δb∗ (K19 ) =

 i

 LSB1 (fi ) .

As above, a subkey triple (LSB(K17 ), K18 , K19 ) ∈ {0, 1} × {0, 1}32 × {0, 1}32 is “valid for S” if and only if δa∗ (K18 ) ⊕ (δa∗c (K18 ) ∗ LSB(K17 )) ⊕ δb∗ (K19 ) = δf∗ .

The Saturation Attack – A Bait for Twofish

13

The basic idea for the attack is to run a filtering algorithm to sort out 50% of the keys, and then to exhaustively search the remaining half of the keys. First we guess the key-dependent vector S, defining G1 and G2 . When G1 and G2 are known, computing δb∗ (K19 ) takes roughly 264 very simple steps for each key K19 . Similarly, computing δa (K18 ) and δa∗c (K18 ) takes roughly 264 very simple steps for each key K18 . The filtering is significantly faster than exhaustive key search for K ≥ 192, key finding using this attack takes the equivalent of about 2K−2 encryptions and hence is twice as fast as exhaustively searching the entire key space. 4.4

An Improvement for 256-Bit Keys

Reconsider seven rounds of Twofish and 2127 plaintexts chosen as before, as described in Section 4.2 and Figure 5. So far, we only have used one distinguishing property: the bits at the LSB-position of the words di are balanced. Thus we could filter out half of the keys. Using the second property too, we can filter out 75 % of the keys: the bits at the MSB-position of the ci -words are balanced. Set ui = G1 (wi ⊕ K18 ) + G2 (xi ⊕ K19 ) and vi = ui ⊕ K16 . Then ci = vi ⊕ ((yi ⊕ K20 )> > >1). The bits at the MSB-position of ci are balanced, i,e.,    MSB(yi <