Cryptanalysis of Block Cipher Clefia and Macs Based on Four Rounds AES
- Author
- WangZuo
- Advisor
- WangXiaoYun
- School
- Shandong University
- Major
- Information Security
- Classification
- TP309.7 Encryption and decryption
- Degree
- Doctoral dissertation
- Year
- 2009
- Downloads
- 215
- Citations
- 0
Abstract
Block ciphers belong to symmetric ciphers, which use the same key for both encryption and decryption. A block cipher is an efficient, keyed permutation that transforms a fixed-length block of plaintext into a block of ciphertext of the same length. Block ciphers can be used in many cryptographic primitives, such as encryption and message authentication code (MAC). A MAC function takes as input a secret key and a message of arbitrary length, and produces as output a short tag. MAC is used to ensure integrity and authenticity of messages. The security evaluation of block ciphers and MAC functions has been hot topics of cryptographic research during the past decade.There are two main approaches to construct block ciphers, one is Feistel Network, and another is Substitution-Permutation Network (SPN). An early and highly influential block cipher, the Data Encryption Standard (DES), is based on the Feistel Network, which has a block size of 64-bit and key size of 56-bit. As the rapid development of computer technology, the inadequacy in the key length became apparent. In September 1997, National Institute of Standards and Technology (NIST) announced request for candidate algorithms for the Advanced Encryption Standard (AES),a successor to DES. In October 2000, Rijndael, which is designed by Daemen and Rijnmen, was selected as the proposed AES, and was approved as FIPS PUB 197 in November 2001. AES is a SPN, with a block size of 128-bit and key size of 128/192/256-bit, which has been one of the most popular block ciphers.Many other block ciphers are influenced by the design rationale of the above two, such as CLEFIA, which was proposed by Shirai et al. at FSE 2007. CLEFIA is a 4-branch generalized Feistel Network, and supports 128-bit input and 128/192/256-bit key for 18/22/26-round, respectively. Each round contains two SP-type F-functions, composed of AddRoundKey, SubByte and MixColumn operations. Sony claimed that CLEFIA will be used across various applications and products.The development of block ciphers influences the design of MAC algorithms. Beside the CBC-MAC, which is a well-known mode for block ciphers to provide MACs, several new MAC constructions have been proposed. They take a block cipher and a reduced version of the block cipher as main components, in order to gain higher performance. The AES and reduced AES are taken as representative. Daemen and Ri-jmen, the designer of AES, proposed the A<sub>LRED</sub> construction at FSE’05, and presented an instance based on AES and 1-round AES, which is named A<sub>LPHA</sub>-MAC. Later, they published an optimized version of A<sub>LPHA</sub>-MAC, the P<sub>ELICAN</sub> algorithm, which is composed of AES and 4-round AES. Minematsu and Tsunoom introduced the MT-MAC construction and PC-MAC construction at FSE’06, including two examples MT-MAC-AES and PC-MAC-AES, which are also based on AES and 4-round AES. Since they take reduced AES, all of them are efficient than CBC-MAC instantiated with AES.New design techniques improve the performance of algorithms, while their impact on the security needs further investigation. Under the instructions of my supervisor, Xiaoyun Wang, we present cryptanalysis of block cipher CLEFIA and MAC functions P<sub>ELICAN</sub>, MT-MAC-AES and PC-MAC-AES as follows.(1) Saturation cryptanalysis of reduced CLEFIASony Corporation published the security and performance evaluations of CLEFIA, which claimed that CLEFIA achieves sufficient immunity against known cryptanalytic attacks. For saturation cryptanalysis, they presented two 8-round saturation characteristics, and applied them to attack the CLEFIA reduced to 10-round without key whitenings.We point out that the 8-round distinguishes proposed by the designers are wrong, and present a right one. We observe that the whitening key can be combined with the round subkey, and the equation with 32-bit variable can be subdivided into 4 byte-wise equations, thus the number of guessed subkeys can be reduced by a divide-and-conquer strategy. Moreover, the partial sum technique is adopted to reduce the time complexity. As a result, the 10-round saturation cryptanalysis is extended to 11-round CLEFIA-128/192/256,12-round CLEFIA-192/256 and 13-round CLEFIA-256, taking the whitening keys into consideration. Till now, it’s the best result in the saturation cryptanalysis of CLEFIA.The new 8-round saturation distinguisher we identify is:where A<sub>0(96)</sub>,A<sub>1(96)</sub> and A<sub>2(96)</sub> are 32-bit words, and A<sub>0(96)</sub>|A<sub>1(96)</sub>|A<sub>2(96)</sub> stands for all states of 96-bit values. The distinguisher means that for 2<sup>96</sup> different inputs where the third 32-bit word is a constant, the XOR value of the 2<sup>96</sup> 8-round outputs is zero at the first word.According to the 8-round distinguisher, the correct subkey candidates are suggested by the equation (?)C<sub>3</sub><sup>8,i</sup>=0, where i=0,…,2<sup>96</sup>. Choose other sets of plaintexts enough, and get such an equation respectively, only the right subkey value satisfies all equations.Combining with the structure of CLEFIA, we find that a divide-and-conquer strat-egy can be used to guess solutions for the equation (?)C<sub>3</sub><sup>8,i</sup>=0, which is equivalent to four byte-wise equations. Moreover, we observe that the XOR of 128-bit whitening key and 128-bit subkey can be considered as a 128-bit equivalent subkey. Therefore, the number of related subkeys which are needed to do a partial decryption is reduced greatly. Taking the attack on 10-round version for example, the first byte-wise equation can be written aswhere Y<sub>0</sub> can be derived from the ciphertexts directly. To do a partial decryption, only 40-bit subkey (RK’<sub>17,0</sub>,RK<sub>18</sub>) is needed to guess instead of 64-bit subkey (RK<sub>17</sub>,RK<sub>18</sub>) claimed in. The partial sum technique is adopted to reduce the time complexity of our attack.The time complexity of the guessing step is about 2<sup>46.2</sup> encryptions, while the previous result is about 2<sup>124</sup> encryptions. Thus we can directly extend the 10-round attack to 11-round by guessing the 64-bit subkeys involved in the 11-th round. The complexity is 2<sup>111.4</sup> encryptions and 2<sup>99.8</sup> chosen plaintexts. The attacks on 12-round CLEFIA-192/256 and 13-round CLEFIA-256 can be proceeded in a similar way.(2) Impossible differential cryptanalysis of reduced CLEFIAFor impossible differential cryptanalysis, Sony corporation proposed two 9-round impossible differentials, and analyzed 10-round CLEFIA-128/192/256, 11-round CLEFIA-192/256 and 12-round CLEFIA-256, where they did not consider key whitenings in 12-round attack.We utilize the same impossible differentials, but adopt different extension way. Exploring more technique details, the wrong subkeys can be filtered out more efficiently. Based on the specific difference of plaintexts pairs, we propose the birthday sieve method to reduce the time complexity of precomputation greatly. For CLEFIA-128/192/256, we extend the attack from 10-round to 12-round. For 13-round CLEFIA-192/256 and 14-round CLEFIA-256, our attack still works. We correct the error in the complexity evaluation of 12-round attack in. Meanwhile, it is clear that the whitening keys have no influence on the resistance against impossible differential cryptanalysis.To perform the impossible differential cryptanalysis, we prepend and append more rounds on the top and end of the impossible differential first, and obtain the wanted input/output difference. Construct plaintexts structures where each two plaintexts satisfy the input difference, and sieve the plaintexts pairs with the required output differences by precomputation. Since there are 2<sup>2n-1</sup> plaintexts pairs from 2<sup>n</sup> plaintexts, we need to explore a more efficient algorithm to sieve required pairs. We observe the relation between the difference of input and output, and propose a birthday sieve method based on the birthday attack, which reduces the time complexity of sieving pairs to 2<sup>n</sup> XOR operations. Suppose the input differenceΔP=(0,0,α,*) and the wanted output dif-ferenceΔC=(*,*,0,α), whereαis a fixed 32-bit value, and * denotes arbitrary 32-bit nonzero value. Since the second and third bytes ofΔP equal to the third and fourth bytes ofΔC respectively,ΔC=(*,*,0,α) is equivalent toΔ(?)=(*,*,0,0), where (?)=(P>>>32)(?)C. And the pairs satisfyingΔ(?)=(*,*,0,0) can be obtained by birthday attack.Then, for each sieved pair, discard the wrong subkeys which cause the partial encryption and decryption to match the impossible differential. Only the correct subkey is left in the subkey space after enough pairs are analyzed. In the sieve process, the following property can be used to deduce one 32-bit subkey in one F-computation by time-memory tradeoff.·For the F-function F (F<sub>0</sub>orF<sub>1</sub>), let (In,In’) be two 32-bit inputs, andΔOut be the difference of the corresponding outputs, the 32-bit round subkey RK involved in F can be deduced with about one F-computation.Moreover, from the specific structure of CLEFIA, we deduce a linear relation between the whitening key and round subkey, and take the two subkeys as one, which reduce the number of related subkeys.·For r-round CLEFIA, let (RK<sub>2r-3</sub>,RK<sub>2r-4</sub>) be the subkey in the (r-1)-th round, (RK<sub>2r-1</sub>,RK<sub>2r-2</sub>) be the subkey in the r-th round, (WK<sub>2</sub>, WK<sub>3</sub>) be the whiten-ing key in the final round, and C<sup>r</sup>=(C<sub>0</sub><sup>r</sup>,C<sub>1</sub><sup>r</sup>,C<sub>2</sub><sup>r</sup>,C<sub>3</sub><sup>r</sup>) be the ciphertext, we have the following two equations which reveal the correlations among subkeys WK<sub>2</sub>, WK<sub>3</sub>,RK<sub>2r-3</sub>, and RK<sub>2r-4</sub>:Here InS<sub>F<sub>0</sub></sub><sup>r-1</sup> and InS<sub>F<sub>1</sub></sub><sup>r-1</sup> are the inputs to the four S-boxes of F<sub>0</sub><sup>r-1</sup> and F<sub>1</sub><sup>r-1</sup> inthe (r-1)-th round, respectively.By these observations, our attack on 11-round CLEFIA only takes 2<sup>103.1</sup> encryp-tions and 2<sup>103.1</sup> chosen plaintexts, instead of the original 2<sup>188</sup> encryptions and 2<sup>103.5</sup> chosen plaintexts. Moreover, combining with a special way to choose plaintexts pairs, our attack can be applied to 12-round CLEFIA-128/192/256 with 2<sup>119.1</sup> time complexity and 2<sup>119.1</sup> data complexity.Independently, similar observations are presented by Tsunoo et al. They presented some new 9-round impossible differentials, which were applied to attack 12-round CLEFIA-128/192/256, 13-round CLEFIA-192/256 and 14-round CLEFIA-256. However, in the attack on 12-round CLEFIA, they neglected the time complexity of the precomputation. Thus the time complexity is 2<sup>125.8</sup> encryptions actually, which is higher than the claimed 2<sup>118.9</sup>. Using the birthday sieve method described in this dissertation, we correct this mistake and keep the previous complexity. At present, these results had been improved by Tsujihara et al.(3) Impossible differential cryptanalysis of MACs based on 4-round AESP<sub>ELICAN</sub>, MT-MAC-AES and PC-MAC-AES belong to iterative MAC algorithms. Based on birthday attack, Preneel et al. presented a general forgery attack on all iterative MACs with (?) messages and (?) queries, where n is the length of MAC value. Furthermore, for P<sub>ELICAN</sub>, suppose a key or an internal state is known, the second preim-age can be found. In addition, a side-channel collision attack can recover its internal state, which mounts a selective forgery attack.Recently, Wang et al. explored new ideas based on the birthday attack to detect the inner near-collision with specific difference rather than collision, from which more information can be derived. According to birthday paradox, the existence of the inner near-collision with specific difference can be guaranteed by collection of 2<sup>n/2</sup> (message, MAC) pairs. Then such a collision is detected with probability close to 1 by appending message pairs with specific form. The series works extended these ideas to the second preimage attack on CBC-like MACs and an equivalent subkey recovery attack on A<sub>lpha</sub>-MAC, respectively.Enlightened by the above techniques, Xiaoyun Wang suggests us to adopt the impossible differential cryptanalysis on MACs, which brings new idea to the cryptanalysis of MACs. Impossible differential cryptanalysis is a powerful attack on AES, which can be applied to 7-round AES-128 (10 rounds in total) . However, little has been done for impossible differential cryptanalysis on MACs, due to the fact that the internal state values as well as their difference, are concealed by the final encryption or complex keyed iterations. We identify the difference of the internal states by birthday attack. Since the main components of P<sub>ELICAN</sub>, MT-MAC-AES and PC-MAC-AES are AES and 4-round AES, we can recover the internal state of P<sub>ELICAN</sub> with 2<sup>85.5</sup> chosen messages and 2<sup>85.5</sup> queries with a new 3-round impossible differential of AES. Then the selective forgery attack can be processed. This internal state recovery attack directly turns to be a subkey recovery attack on MT-MAC-AES with the same complexities. For PC-MAC-AES, we are able to recover its two 128-bit secret keys separately, once the internal state is identified with 2<sup>85.5</sup> chosen messages and 2<sup>128</sup> queries.The main idea is as follows: First, construct two structures to produce messagepairs with specific difference. Each structure has 2<sup>n/2</sup> messages. Second, utilize thebirthday attack to search collisions between the two structures. Since the compressionfunction is a permutation, output collision means inner collision. And the inner valueis the XOR of message word and internal state. Thus, the difference of the internalstates can be detected from the difference of message words. Third, once the differenceof the internal states is verified, we can recover the internal state XORed with themessage using a 3-round impossible differential property since 4-round AES is takenas a building block. The 3-round impossible differential characteristic is as follows:·For 3-round AES, given an input pair (z<sub>2</sub><sup>I</sup>,z<sub>2</sub><sup>I’</sup>) whose components equal in allexcept six bytes indexed by (0,1,5,8,12,13) (or (0,1,4,5,9,12), or (0,4,5,8,9,13), or (1,4,8,9,12,13)), the difference of the output pair (z<sub>4</sub><sup>O</sup>,z<sub>4</sub><sup>O’</sup>) can not haveexactly one nonzero byte.
Table of contents
Chinese part 2-85
Summary 6-12
ABSTRACT 12-22
Chapter Introduction and main results 22 - 28
1.1 modern cryptanalysis 22-24
1.2 birthday attack 24-25
1.3 saturation analysis 25-26
1.4 impossible differential cryptanalysis 26
1.5 the main structure 26-28
Chapter CLEFIA algorithm description 28-32
2.1 encryption process 28
2.2 F function 28-31
2.3 design Guidelines 31-32
Chapter reduced number of rounds CLEFIA algorithm analysis 32-56
3.1 CLEFIA algorithm to reduce the number of rounds of existing analytical results 32-33
3.2 two useful properties 33-34
3.3 reduce the number of rounds CLEFIA algorithm saturation analysis 34-40
3.3.1 8 laps saturation characteristics 35-36
3.3.2 10 laps CLEFIA saturation analysis 36-40
3.3.3 11 laps CLEFIA saturation analysis 40
3.3.4 Summary 40
3.4 to reduce the number of rounds of CLEFIA algorithm impossible differential cryptanalysis 40-56
3.4.1 9 laps impossible differential characteristics 41-42
3.4.2 11 laps CLEFIA impossible differential cryptanalysis 42-45
3.4.3 11 laps CLEFIA impossible differential analysis ( method two ) 45-48
3.4.4 12 laps CLEFIA impossible differential cryptanalysis 48 - 49
3.4.5 change iETsunoo of 12 laps CLEFIA impossible differential cryptanalysis 49-51
3.4.6 13 laps CLEFIA-192/256 impossible differential cryptanalysis 51-52
3.4.7 14 laps CLEFIA-256 impossible differential cryptanalysis 52-54
3.4.8 Summary 54-56
Chapter P_ (ELICAN), MT-MAC-AES and PC-MAC-AES algorithm description 56-62
4.1 AES algorithm description 56-57
4.2 P_ (ELICAN) algorithm description 57-58
4.3 MT-MAC-AES algorithm description 58-60
4.4 PC-MAC-AES algorithm description 60-62
first chapters four laps AES based message authentication code impossible differential cryptanalysis 62-72
5.1 MAC security of the algorithm to analyze the latest research 62-64
5.2 impossible differential analysis MAC algorithm main idea 64-65
5.2.1 3 laps AES impossible differential characteristic 64
5.2.2 Filter news right 64 - 65
5.3 P_ (ELICAN), MT-MAC-AES and PC-MAC-AES impossible differential cryptanalysis 65-71
5.3.1 P_ (ELICAN) intermediate state recovery attack 66-69
5.3.2 MT-MAC-AES sub key recovery attack 69
5.3.3 PC-MAC-AES key recovery attack 69-71
5.4 Summary 71-72
Chapter VI conclusions and research programs 72-74
References 74-80 <br / > Thanks 80-82
biographical 82-84
thesis reviewers and the respondent Fact Sheet 84-85
English part 85-187
ABSTRACT 91-98
ABSTRACT (Chinese Version) 98-104
NOTATIONS 104-107
1 Introduction and Main Results 107-115
1.1 Modern Cryptanalysis 107-110
1.2 Birthday Attack 110-111
1.3 Saturation Cryptanalysis 111 -112
1.4 Impossible Differential Cryptanalysis 112-113
1.5 Outline of This Dissertation 113-115
2 Description of Block Cipher CLEFIA 115-121
2.1 Data Processing Part 115-117
2.2 F-functions 117-118
2.3 Design Rationale 118-121
3 Cryptanalysis of Reduced CLEFIA 121-151
3.1 Related Attacks on Reduced CLEFIA 121-122
3.2 Some Observations on CLEFIA 122-125
3.3 Saturation Cryptanalysis of Reduced CLEFIA 125-132
3.4 Impossible Differential Cryptanalysis of Reduced CLEFIA 132-151
4 Descriptions of MAC Algorithms: Pelican, MT-MAC-AES and PC-MAC- AES 151-159
4.1 Description of Block Cipher AES 151-153
4.2 Description of Pelican 153-155
4.3 Description of MT-MAC -AES 155-156
4.4 Description of PC-MAC-AES 156-159
5 Impossible Differential Cryptanalysis of MACs Based on Four Rounds AES 159-173
5.1 Recent Works on Cryptanalysis of MAC Algorithms 160-162
5.2 Main Idea of ??Impossible Differential Cryptanalysis of MAC Algorithms 162-164
5.3 Impossible Differential Cryptanalysis of Pelican , MT-MAC-AES and PC-MAC-AES 164-171
5.4 Conclusion 171-173
6 Conclusions and Open Problems 173-175
BIBLIOGRAPHY 175-183
ACKNOWLEDGEMENTS 183-185
CURRICULUM VITAE 185-187
thesis reviewers and the respondent Fact Sheet 187
Related dissertations
- Research on Impossible Differential Cryptanalysis and Algebraic Cryptanalysis of Some Block Ciphers
- Cryptanalysis of Two Symmetric Encryption Algorithms ARIA and SALSA20
- Impossible Differential Cryptanalysis and Meet-in-the-Middle Attack on ARIA
- The Research of Data Interface Adaptive Card of Computer to Plate
- The Design and Implementation of High-performance fixed-point Arithmetic Unit for SIMD DSP
- Research on Data Link Layer Interface Protocol of the Lte Network Architecture
- Research on Key Joint Optimization Techniques for Quality of Service Provisioning in WiMAX Mesh Networks
- Delay Analysis of Cooperative GBN-ARQ Protocol Joint MAC Contention
- Research and Development of a Multi-core CPU Based Software Radio Platform and Applications
- Research of MAC’s Scheduling and HARQ in LTE System
- Research on Medium Access Control for Cognitive Radio Network Based on IEEE802.22
- Research and Performance Analysis of MAC Protocols for Wireless LAN
- Differential-Algebraic Cryptanalysis on SMS4Cryptosystem
- Analysis of HASH BMW function and SM3 algorithm
- Design and implementation of the lightweight block cipher ESF
- The Energy Efficiency Optimization in MAC Protocol of Wireless Body Area Network Based on the Priority and the Sleep Mechanism
- The Study on the Multi-Antenna Based Wireless Network MAC Protocol
- Verification of AMBAIO System Based on SoC
- Sevoflurane Anesthesia Experiment and Its Clinical Qualitive Assessment in Minipigs
- MAC Layer Performance Optimization Research for Smart Grid Wireless Networks