Cryptanalysis of Two Symmetric Encryption Algorithms ARIA and SALSA20
- Author
- LiShenHua
- Advisor
- WangXiaoYun
- School
- Shandong University
- Major
- Information Security
- Classification
- TN918.1 Theory
- Degree
- Doctoral dissertation
- Year
- 2008
- Downloads
- 333
- Citations
- 9
- Symmetric encryption algorithm
- Block cipher
- Stream Cipher
- Aria
- Salsa20
- Differential cryptanalysis
- linear cryptanalysis
- impossible differential cryptanalysis
- Differential Fault Analysis
Abstract
Symmetric cryptography is an important branch of cryptography. It includes block cipher and stream cipher. Symmetric encryption algorithm has many attractive features such as high rates and small memory space for both software and hardware implementation . In this thesis, we research on the security of block cipher and stream cipher.Approved in 1977, DES [51] was the early standard for block cipher, which has been widely used in the world. The block size and the key length are respectively 64 bits and 56 bits, which became the main security disadvantages. So DES has been unsecured and needs to be replaced. To this end the National Institute of Standards and Technology (NIST) has been holding a competition to develop the Advanced Encryption Standard (AES) as a replacement for DES. In 1997, NIST announced the initiation of the AES and called for new algorithms. In 1998, NIST announced fifteen AES candidate algorithms at the First AES Candidate Conference. The Second AES Candidate Conference was held in 1999 to discuss the results of the analysis by the global cryptanalyzers on the candidate algorithms. At last, NIST selected five algorithms from the original fifteen submissions. The AES finalist candidate algorithms were MARS, RC6 [59], Rijndael [25], Serpent [1], and Twofish [56]. The third AES Candidate Conference announced Rijndael designed by J. Daemen and V. Rijmen was the winner.The security of block cipher is difficult to be proved. It is risk to introduce an unproved cipher. So many countries dedicate to design cryptosystems for themselves. Now some countries have standardized encryption algorithms for themselves.ARIA version 0.8 [52] was first announced at an annual conference on security in Korea. It had 10/12/14 rounds for key sizes of 128/192/256, and only two kinds of S-boxes were used. A. Biryukov et al. evaluated the security of it with different types of attacks [17]. One of these attacks is dedicated linear attack and they indicated that this attack can be avoided by using four different kinds of S-boxes. ARIA version 0.9 [40] which four different S-boxes are used in its substitution was announced later. ARIA version 1.0 [53], the current one, was announced and distributed on its official website at http://www.nsri.re.kr/ARIA/ in mid 2004. The number of rounds was increased to 12/14/16, and there were some modifications to the key expansion. In December 2004, ATS(Agency for Technology and Standards) of Korea standardized ARIA as 128-bit Block Encryption Algorithm ARIA (KS X 1213). In addition, an impossible differential analysis of ARIA was proposed by W. L. Wu et al. in 2007 [66].There are a variety of efficient and trusted block ciphers. Unfortunately the same is not true for stream ciphers. As a response to the lack of efficient ciphers, ECRYPT (a 4-year Network of Excellence funded by the European Union) manages and coordinates a multi-year effort called eSTREAM to identify new stream ciphers suitable for widespread adoption. This master’s project began in September 2005. The initial call for algorithms resulted in 34 candidates. The first evaluation phase was ended in February, 2006. The second phase was ended in April, 2007. Now is the third phase and there remain 16 ciphers. Salsa20 [3, 4] is one of them.Salsa20 is designed by D. J. Bernstein in 2005. It was highly praised in the first and second phase of eSTREAM Project. In 2005, P. Crowley proposed five round truncated differential eryptanalysis [21]. S. Fischer et al. researched the non-randomness of Salsa20 [29].In this thesis, we provide some cryptanalysis on ARIA and Salsa20 and have the following results.(1) Improved impossible differential cryptanalysis of ARIA reduced to six roundsW. L. Wu et al. proposed an impossible differential cryptanalysis of ARIA. In their cryptanalysis, they used a four-round Impossible Differential Property. It can be described as follows:(a, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) (?) (0, h, 0,0,0,0,0,0, h, h, h, 0,0,0, h, 0),where a and h are nonzero.We find a new impossible differential property which can be used for attacking ARIA reduced to six rounds more effectively.Impossible Differential Property of ARIA. Given a plaintext pair which is equal in all bytes except bytes (1,12), there is no ciphertext pair after four rounds satisfying the following three points:(a) The ciphertexts are not equal at bytes (3,11,12,13). (b) The ciphertexts are equal at the other bytes.(c) The difference of the ciphertexts at bytes (3,11,12,13) are equal.This four-round impossible differential property can be expressed as (0, a<sub>1</sub>,0,0,0,0,0,0,0,0,0,0,a<sub>12</sub>,0,0,0)(?)(0,0,0,f,0,0,0,0,0,0,0,f,f,f, 0,0),where a<sub>1</sub>,a<sub>12</sub> and f are nonzero.We can also find many impossible differential properties similar to (1). For example:(0, 0, 0, a<sub>3</sub>, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, a<sub>1</sub>4), 0) (?) (0, f, 0, 0, 0, 0, 0, 0, 0, 7,0, 0, 0, 0, f,f), (0, 0, 0, 0, 0, 0, a<sub>6</sub>, 0, 0, 0, 0, 0, 0, a<sub>13</sub>, 0, 0)(?)(0, 0, 0, 0, f, 0, 0, 0, f, 0, 0, 0, 0, f,f, 0),(0,0,0,0,0,0,0, a<sub>7</sub>, 0,0,0,0, a<sub>12</sub>,0,0,0) (?) (0,0,0,0,0, f, 0,0,0, f, 0,0, f, 0,0,f).Then we propose an attack on ARIA reduced to six rounds based on Property1. In our attack, 10 bytes of round keys are needed to be guessed instead of 12 bytes in the previous one, so the time complexity is reduced by 2<sup>16</sup> times. It needs 2<sup>120</sup> chosen plaintexts and 2<sup>96</sup> encryptions in our attack.(2) Linear attack on ARIA version 1.0A. Biryukov et al. proposed a dedicated linear attack on ARIA version 0.8 which used two different kinds of S-boxes in substitution layer. They advised that ARIA should be improved by using four different kinds of S-boxes in order to resist this attack. The designers of ARIA accepted this advice in version 0.9 and 1.0. However, we propose a new linear attack on version 0.9 and 1.0 and prove that the new versions of ARIA are weak to linear attack.For the substitution layer of ARIA, we have the following property:Property of substitution layer.P(S<sub>i</sub>(x<sub>0</sub>)⊕S<sub>i</sub>(x<sub>1</sub>)⊕S<sub>j</sub>(x<sub>2</sub>)⊕S<sub>j</sub>(x<sub>3</sub>)=0|x<sub>0</sub>⊕x<sub>1</sub>⊕x<sub>2</sub>⊕x<sub>3</sub>=0)≈2×2<sup>-8</sup>.(3)where S<sub>i</sub>, S<sub>j</sub> are two different S-boxes used in the substitution layer.For the diffusion layer of ARIA, we have the following properties.Property of diffusion layer. For the transform DL, there are twelve conclusions which are (a)y<sub>8</sub>⊕y<sub>10</sub>⊕y<sub>12</sub>⊕y<sub>14</sub>=x<sub>8</sub>⊕x<sub>10</sub>⊕x<sub>12</sub>⊕x<sub>14</sub>,(b)y<sub>9</sub>⊕y<sub>11</sub>⊕y<sub>13</sub>⊕y<sub>15</sub>=x<sub>9</sub>⊕x<sub>11</sub>⊕x<sub>13</sub>⊕x<sub>15</sub>,(c)y<sub>4</sub>⊕y<sub>5</sub>⊕y<sub>12</sub>⊕y<sub>13</sub>=x<sub>4</sub>⊕x<sub>5</sub>⊕x<sub>12</sub>⊕x<sub>13</sub>,(d)y<sub>6</sub>⊕y<sub>7</sub>⊕y<sub>14</sub>⊕y<sub>15</sub>=x<sub>6</sub>⊕x<sub>7</sub>⊕x<sub>14</sub>⊕x<sub>15</sub>,(e)y<sub>1</sub>⊕y<sub>2</sub>⊕y<sub>13</sub>⊕y<sub>14</sub>=x<sub>1</sub>⊕x<sub>2</sub>⊕x<sub>13</sub>⊕x<sub>14</sub>,(f)y<sub>0</sub>⊕y<sub>3</sub>⊕y<sub>12</sub>⊕y<sub>15</sub>=x<sub>0</sub>⊕x<sub>3</sub>⊕x<sub>12</sub>⊕x<sub>15</sub>,(g)y<sub>1</sub>⊕y<sub>3</sub>⊕y<sub>5</sub>⊕y<sub>7</sub>=x<sub>0</sub>⊕x<sub>2</sub>⊕x<sub>4</sub>⊕x<sub>6</sub>,(h)y<sub>2</sub>⊕y<sub>3</sub>⊕y<sub>10</sub>⊕y<sub>11</sub>=x<sub>0</sub>⊕x<sub>1</sub>⊕x<sub>8</sub>⊕x<sub>9</sub>,(i)y<sub>5</sub>⊕y<sub>6</sub>⊕y<sub>9</sub>⊕y<sub>10</sub>=x<sub>4</sub>⊕x<sub>7</sub>⊕x<sub>8</sub>⊕x<sub>11</sub>,(j)y<sub>0</sub>⊕y<sub>2</sub>⊕y<sub>4</sub>⊕y<sub>6</sub>=x<sub>1</sub>⊕x<sub>3</sub>⊕x<sub>5</sub>⊕x<sub>7</sub>,(k)y<sub>0</sub>⊕y<sub>1</sub>⊕y<sub>8</sub>⊕y<sub>9</sub>=x<sub>2</sub>⊕x<sub>3</sub>⊕x<sub>10</sub>⊕x<sub>11</sub>,(l)y<sub>4</sub>⊕y<sub>7</sub>⊕y<sub>8</sub>⊕y<sub>11</sub>=x<sub>5</sub>⊕x<sub>6</sub>⊕x<sub>9</sub>⊕x<sub>10</sub>.By these properties of substitution layer and diffusion layer, we can build 12 routes for linear attack on ARIA version 1.0. That is to say, based on each of the 12 routes, a distinguisher can be builded for linear attack.For example, an r rounds distinguisher is P(y<sub>9</sub><sup>r</sup>⊕y<sub>11</sub><sup>r</sup>⊕y<sub>13</sub><sup>r</sup>⊕y<sub>15</sub><sup>r</sup>=0|x<sub>9</sub><sup>1</sup>⊕x<sub>11</sub><sup>1</sup>⊕x<sub>13</sub><sup>1</sup>⊕x<sub>15</sub><sup>1</sup>=0)≈2<sup>-8</sup>+2<sup>-8r</sup>.(4)We succeed in attacking on ARIA version 1.0 reduced 7/9/9/ rounds for key sizes of 128/192/256 by using any of these approximations. These results are similar to the dedicated linear attack on ARIA version 0.8 and reveal that the improved version is also weak to resist the dedicated linear attack. Table 1 gives the comparison between the result of our attack on ARIA version 1.0 and the attack on ARIA version 0.8 in [17]. (3) The differential of Salsa20The core of Salsa20 is an Hash function with 64-byte input and 64-byte output. Although there are some results of differential analysis of Salsa20, the properties on the differential of basic function of Salsa20 have not been given. We investigate the differential of quarterround function and round function. We find some important properties of quarterround function, for example: (0,△y<sub>1</sub>[t+7],0,△y<sub>3</sub>[t+0])→(△z<sub>0</sub>[t+18],0,0,△z<sub>3</sub>[t+0]),if t = 31 p=1;if t≠31 p=1/4.These properties can be used in analysis of the round function. In Chapter 6, we give a four rounds differential with probability 2<sup>-50</sup>. In addition, we research on related key attack on Salsa20. We build a model of related key attack on Salsa20 reduced to six rounds based on the truncated differential cryptanalysis of five-round Salsa20.(4) Differential fault analysis of Salsa20We propose two differential fault analysis of Salsa20 with two fault models. In the first one, fault is induced on a bit of the middle states in the memory when a plaintext is encrypted by Salsa20. In the second one, fault is induced on a whole byte. With the first model, the computational complexity of the attack on Salsa20-256 is 2<sup>70</sup> by using 186 faulty ciphertexts, and the computational complexity of attack on Salsa20-128 is 2<sup>20</sup> by using 124 faulty ciphertexts. With the second model, if 4n (n > 5) faulty ciphertexts are chosen for k<sub>i</sub>, i = 0,1,2,3, the 31 bits of k<sub>i</sub> are recovered with the respective probability p = 1 - (1/2<sup>n</sup>×31).In the fault analysis of Salsa20, we research on the relation between addition and exclusive-or. The combination of the two operations is one of the widely used symmetric cipher components. Phelix, Mars, RC6, Twofish and the MD-family of hash functions are the applications of addition and exclusive-or. It is important for cryptology to research on the relation between them.
Table of contents
Chinese part 2-77
Summary 6-11
Abstract 11-18
Introduction and main results 18-24
§ 1.1 of modern cryptography school 18
§ 1.2 block cipher 18-19
§ 1.2.1 Block Cipher development 18-19
§ 1.2.2 block cipher security analysis 19
§ 1.3 stream ciphers and eSTREAM project 19-20
§ 1.4 This paper is organized with the main results 20-24
Korea Encryption Standard ARIA description 24-28
§ 2.1 ARIA encryption and decryption 24-25
§ 2.1.1 round function consists of three parts 24
§ 2.1.2 replacement layer (SL) 24-25
§ 2.1.3 chaotic layer (DL) 25
§ 2.2 key expansion algorithm 25-26
§ 2.3 ARIA history of the development 26-28
stream cipher algorithm Salsa20 description 28-32
§ 3.1 Salsa20 the round function 28-29
§ 3.2 Salsa20 the encryption and decryption 29-32
the fourth chapter of ARIA and Salsa20 of existing safety analysis 32-40
§ 4.1 ARIA existing safety analysis 32-36
§ 4.1.1 of the classical linear analysis and differential analysis 32-
§ 4.1.2 truncated differential 32-34
§ 4.1.3 dedicated linear attack 34
§ 4.1.4 Alex.Biryukov such as the summary of the analysis on the ARIA 34-35
§ 4.1.5 impossible differential cryptanalysis 35-36
§ 4.2 Salsa20 existing safety analysis 36-40
§ 4.2.1 Salsa20 simplify to five truncated differential cryptanalysis 36-38
§ of 4.2.2 Salsa20 non-randomness 38-39
§ 4.2.3 simplifies to the eight Salsa20 differential analysis 39-40
fifth chapter of the ARIA safety analysis of the results 40-56
§ 5.1 on the chaotic layer DL 41-43
§ 5.2 to the ARIA improve the impossible differential cryptanalysis 43-48
§ 5.2.1 ARIA four impossible differential nature 43-46
§ 5.2.2 simplifies to six rounds of ARIA impossible differential cryptanalysis 46-48
§ 5.2.3 Summary 48
§ 5.3 of ARIA version 1.0 linear attack 48-54
§ 5.3.1 ARIA replacement layer and some of the chaotic layer properties 48-51
§ 5.3.2 linear attack on the ARIA 51-54
§ 5.3.3 Summary 54
§ 5.4 on the ARIA key expansion 54-56
differential analysis and differential fault analysis of the
Chapter VI Salsa20 56-68
§ 6.1 Salsa20 differential analysis 56-59
§ 6.1.1 QR differential 56-57
§ 6.1.2-round function of the difference 57-59
§ 6.2 Salsa20 differential fault attack 59-68
§ 6.2.1, the differential fault attack Salsa20 first mode 60-63
§ 6.2.2 Based on the second failure induced model of differential fault attack 63-67
§ 6.2.3 Summary 67-68
References 68-74
thank 74-75
About 75-76
dissertation reviewers and the respondent table 76-77
English part 77-173
Abstract 84-90
Summary 90-95
Notations 95-96
Chapter 1 Introduction 96-104
§ 1.1 Modern Cryptography 96-97
§ 1.2 Block Cipher 97-99
§ 1.2.1 Advancement of Block Cipher 97-98
§ 1.2.2 Cryptanalysis of Block Cipher 98-99
§ 1.3 Stream Cipher and eSTREAM Project 99
§ 1.4 Organization and Outline 99-104
Chapter 2 Description of Korean Block Cipher Standard: ARIA 104-110
§ 2.1 Encryption and Decryption of ARIA 104-107
§ 2.1.1 Round Function of ARIA 104-105
§ 2.1.2 Substitution Layer (SL) 105-106
§ 2.1.3 Diffusion Layer (DL) 106-107
§ 2.2 Key Expansion 107-108
§ 2.3 History 108-110
Chapter 3 Description of Salsa20 110-114
§ 3.1 Round Function 110-111
§ 3.2 Encryption and Decryption of Salsa20 111-114
Chapter 4 Previous cryptanalysis of ARIA and Salsa20 114-126
§ 4.1 Previous Cryptanalysis of ARIA 114-120
§ 4.1.1 Classical Linear and Differential Cryptanalysis 114
§ 4.1.2 Truncated Differential Cryptanalysis 114-117
§ 4.1.3 Dedicated Linear Attack 117
§ 4.1.4 Summary by A. Biryukov et al 117-119
§ 4.1.5 Impossible Differential Cryptanalysis 119-120
§ 4.2 Previous Cryptanalysis of Salsa20 120-126
§ 4.2.1 Truncated Differential Cryptanalysis of Five Rounds of Salsa20 120-122
§ 4.2.2 Non-randomness in Salsa20 122-124
§ 4.2.3 Differential Cryptanalysis of Eight Rounds of Salsa20 124-126
Chapter 5 New Results of the Cryptanalysis of ARIA 126-146
§ 5.1 Note on Diffusion Layer 127-129
§ 5.2 Improved Impossible Differential Attack of ARIA 129-136
§ 5.2.1 Four Rounds Impossible Differential Property of ARIA 130-133
§ 5.2.2 Impossible Differential Cryptanalysis of ARIA Reduced to Six Rounds 133-135
§ 5.2.3 Conclusion 135-136
§ 5.3 Dedicated Linear Attack on ARIA Version 1.0 136-144
§ 5.3.1 Some properties of ARIA 136-140
§ 5.3.2 Dedicated Linear Attack on ARIA 140-143
§ 5.3.3 Conclusion 143-144
§ 5.4 Note on the Key Schedule of ARIA 144-146
Chapter 6 Differential Analysis and Differential Fault Analysis of Salsa20 146-162
§ 6.1 Differential Analysis of Salsa20 146-149
§ 6.1.1 On Differential of QR 146-147
§ 6.1.2 Differential of Round Function 147-149
§ 6.2 Differential Fault Analysis of Salsa20 149-162
§ 6.2.1 Differential Fault Analysis of Salsa20 with the First Fault Model 151-155
§ 6.2.2 Differential Fault Analysis of Salsa20-128 with the Second Fault Model 155-160
§ 6.2.3 Conclusion 160-162
Bibliography 162-170
Acknowledgement 170-172
CURRICULUM VITAE 172-173
dissertation reviewers and the respondent table 173
Related dissertations
- Impossible Differential Cryptanalysis and Meet-in-the-Middle Attack on ARIA
- Security Analysis on Block-Like Type Stream Ciphers
- On the Theory and Some Key Techniques of Block Ciphers
- The design and analysis of block cipher
- Analysis Method Research on the Block Cipher AES
- Cryptanalysis of IDEA and ARIA Block Cipher
- The Extended Differential Cryptanalysis on Three SPN Block Ciphers
- The Analysis of Differential Probability Based on Arithmetic Operation in Block Cipher
- Research on Attacks about LEX Algorithm
- Output Error Analysis of Wireless Block Ciphered Transmission and Performance Test for a Stream Cipher
- Research on Computing Method of the Differential Probability of SPS Structure
- Security Research Based on Chaotic Block Cipher
- Cryptanalysis of Light-Weight and Large Non-surjective S-box Block Ciphers
- Research on Impossible Differential Cryptanalysis and Algebraic Cryptanalysis of Some Block Ciphers
- Research on Key Technologies of Cipher Theory
- A Study on Chaos Theory and Its Application in Information Security
- On the Design and Security Analysis of Block Ciphers
- Techniques for Cryptanalysis of Block Ciphers
- Cryptanalysis of Block Cipher Clefia and Macs Based on Four Rounds AES
- Research on Linear Cryptanalysis and Its Extensions