Abstract

Wang and Yu proposed a block cipher scheme based on dynamic sequences generated by multiple chaotic systems, which overcomes the problem of periodical degradation on random sequences due to computational precision. Their scheme has a feature that a plaintext is encrypted by a keystream created from several one-dimensional chaotic maps. However, this feature results in some weaknesses of the encryption algorithm. We show three kinds of attacks in this paper, through which one can recover the plaintext from a given ciphertext without the secret key. We also present an improvement on their scheme, which prevents the three attacks mentioned above. Security of the enhanced cipher is presented and analyzed, which shows that our improved scheme is secure under the current attacks.

1. Introduction

Thechaos-based encryption scheme was first proposed in 1989 [1]. Following the work, a lot of cryptography researchers haveproposed many chaos-based encryption schemes (some of them are the improvements on the previous ones) [26]. Security of all these schemes relies on the properties of chaotic systems: the sensitive dependence on initial conditions and system parameters, pseudorandom property, nonperiodicity and topological transitivity.

There are two types of cipher schemes in the chaos-based cryptosystems: stream ciphers and block ciphers. In the chaotic stream ciphers [2, 79], a pseudorandom sequence is generated by chaotic sequence generator to encrypt the plaintext. However, the limited computational precision degrades the pseudorandom sequence to a periodic sequence eventually. The chaotic block ciphers adopt chaotic maps to generate parameters used in encryption and decryption procedures. Pareek has proposed two block ciphers based on external keys [10, 11]. But too much time consumption in computation makes them hard to implement in the real-time telecommunication.

Wang and Yu proposed a new block encryption scheme in [12] (the Wang-Yu scheme) by combining these two methods of chaotic cryptography. Their scheme provides not only good randomness but also high computational efficiency. In their scheme, several one-dimensional chaotic maps are used to generate pseudorandom sequences with independent and uniform distribution. Through a series of transformations, the sequences constitute a keystream randomly distributed in the key space. The keysteam is used to encrypt the plaintext by executing simple operations such as Exclusive-OR (XOR) and shifting repeatedly with sufficient rounds.

Generally speaking, a secure cipher is supposed to resist the following attacks: the chosen plaintext attacks (CPAs), the chosen ciphertext attacks (CCAs) and the known plaintext attacks (KPAs). Unfortunately, the Wang-Yu cipher cannot resist any of the above attacks because the keystream remains unchanged during the execution of the encryption procedure each time. Thus, for an attacker, knowing the keystream is equivalent to knowing the secret key.

Our Contributions
We point out the drawbacks of the Wang-Yu block cipher based on dynamic sequences generated by multiple chaotic systems. Their scheme is vulnerable to the following three kinds of attacks: the chosen plaintext attacks, the chosen ciphertext attacks, and the known plaintext attacks. In order to obtain a secure block cipher from chaotic systems, we make efforts to improve the Wang-Yu block cipher. We design a new block cipher which makes the keystream sensitive to any change of the plaintext and the ciphertext. Therefore, our new block cipher is able to resist the above attacks. On the other hand, our scheme preserves the high computational efficiency of the original one.

In Section 2, some essential notations and security definitions are introduced. In Section 3, the Wang-Yu block cipher is reviewed. In Section 4, we analyze the Wang-Yu scheme and show three different attacks to the scheme. In Section 5, an improved block cipher scheme is proposed. We analyze security and discuss the efficiency of the new scheme in Section 6. Finally, we conclude the paper in Section 7.

2. Preliminaries

2.1. Notations

We use the following notations: : Plaintext,:th plaintext block,: Ciphertext,:ith ciphertext block,: Number of plaintext blocks,: Number of transformation rounds,: Index of a chosen chaotic map,: 64-bit temporary value in encryption/decryption transformation,: 64-bit value generated by a chaotic map in the Wang-Yu scheme,: Keystream of ith plaintext block in the Wang-Yu scheme,: 64-bit value generated by a chaotic map in the improved scheme,: Key stream of ith plaintext block in the improved scheme,: A real number in indexed by .

2.2. Definitions and Security Notions

We review the definition of chaos and security notions for block cipher as follows.

Definition 2.1 (Chaos). Chaos is aperiodic time-asymptotic behaviour in a deterministic system which exhibits sensitive dependence on initial conditions.
This definition contains three main elements.
(1)Aperiodic time-asymptotic behaviour: this implies the existence of phase-space trajectories which do not settle down to fixed points or periodic orbits. For practical reasons, we insist that these trajectories are not too rare. We also require the trajectories to be bounded, that is, they should not go off to infinity. (2)Deterministic: this implies that the equations of motion of the system possess no random inputs. In other words, the irregular behaviour of the system arises from nonlinear dynamics and not from noisy driving forces. (3)Sensitive dependence on initial conditions: this implies that nearby trajectories in phase-space separate exponentially fast in time; that is, the system has a positive Lyapunov exponent.

Definition 2.2 (One-way function). A function is one-way if can be computed by a polynomial time algorithm, but for every randomized polynomial time algorithm , for every polynomial and sufficiently large , assuming that is chosen from the uniform distribution on .

Definition 2.3 (Block cipher). A symmetric key block cipher consists of two PPT algorithms with the following properties: for any random , the encryption algorithm on input and , outputs a ciphertext ; the decryption algorithm on input and , outputs a plaintext if . For any and , correctness requires the following to be hold:

Definition 2.4 (One-way CPA). Let be a block cipher. If any adversary (any PPT algorithm) that is allowed to obtain the ciphertext of any message, cannot extract the plaintext from a challenge ciphertext, we say that is one-way under the chosen plaintext attacks.

Definition 2.5 (One-way CCA). Let be a block cipher. If any adversary (any PPT algorithm) that is allowed to obtain the plaintext of any ciphertext (except for the challenge ciphertext), cannot extract the plaintext from a challenge ciphertext, we say that is one-way under the chosen ciphertext attacks.

Definition 2.6 (One-way KPA). Let be a block cipher. If any adversary (any PPT algorithm) that is given a set of random plaintexts and corresponding ciphertexts (except for the challenge ciphertext), cannot extract the plaintext from a challenge ciphertext. We say that is one-way under the known plaintext attacks.

3. Review of the Wang-Yu Block Cipher

3.1. Algorithm Description

In this section, we briefly review the block cipher proposed by Wang and Yu [12]. In their scheme, plaintext blocks are converted into ciphertext blocks after several round transformations with XOR and shift operations. A number of 64-bit binary strings as the keystreams are generated in such transformations.

Let us see how the keystream is generated. There are two tables in the Wang-Yu scheme. One table consists of four one-dimensional chaotic maps. The other called chaotic map set (CMS) includes initial values between 0 and 1, which are produced through a random number generator from a given secret key. At the beginning, one map is randomly chosen from the first table. An initial value is also chosen from the CMS table by certain rules. The chosen map is then iterated with the initial value for 64 times. Each time the map generates a new real number. If the new number is bigger than , we get for the corresponding digit. Otherwise, we get . Eventually, we get a 64-bit binary string after 64 iterations.

3.2. Procedure in Detail

The Wang-Yu scheme is described as follows.(i)Encryption of : .(1)Initialization: ; ; ; ; CMS table. Here, is the secret key of the block cipher.(2), value of th column, th row in the CMS table.(3)For to 64: (a)if : ;(b)if : ; (c)if : ; (d)if : . (4)For to 64: where . The keystream is . (5)Encryption transformation: (6)If , go to step (7); else ; ; goto step (2). (7). Here, the operation “” represents a cyclic left shift of by bits.(ii)Decryption of : .

Parameter and keystream generations here are the same as those in the encryption. The only difference is that the equations in step (5) should be replaced by Here, the operation “” represents a cyclic right shift of by bits.

3.3. Weaknesses of the Scheme

A keystream in the Wang-Yu scheme is generated by a certain secret key . Then it is used to encrypt the plaintext according to the following rule: Decryption of a ciphertext block can be accomplished by calculating the corresponding keystream if the key is given and doing the reverse operations of encryption . However, the block cipher is not secure because some problems occur in their keystream generation and the encryption algorithm. Exactly, if we know the keystream , we can recover the plaintext of a given ciphertext without the secret key.

In the next section we will show how to recover the keystream under the chosen plaintext attack, the chosen ciphertext attack and the known plaintext attack, respectively. We note that knowing the keystream generated by a certain secret key is equivalent to knowing the key indeed [3].

4. Cryptanalysis of the Wang-Yu Block Cipher

With the help of the keystream , we can recover the plaintext from a given ciphertext. Therefore, the following attacks focus on recovering the keystream . Suppose that we have a challenge ciphertext composed by () to “decrypt” without the secret key. We shall calculate the keystream by launching one of the attacks described later.

The encryption transformation can be described as follows: For simplicity, the encryption procedure is described as follows: where . The operation represents that the action of is repeated times.

Since the keystream does not change for every plaintext blocks, we can get it from a given plaintext block and a corresponding ciphertext block. Then we can use it to recover the plaintexts from other ciphertexts. A plaintext block can be recovered by using the known keystream and a given ciphertext block as follows: Then, we can recover the plaintexts without the secret key. The following explains how to recover the plaintexts under three different attacks.

4.1. How to Recover the Plaintext under CPA

Suppose that we have obtained temporary access to the encryption machine. Given index and a special plaintext block , where (the ciphertext block also consists of 64 bits), we can obtain the ciphertext block of the plaintext block from the encryption machine.

So, the keystream can be generated from and :

The recovered plaintext block can be obtained using the keystream and the ciphertext block as follows:

The flowchart of this attack is given in Figure 1, and Figure 2 shows the simulation results of the chosen plaintext attack on a ciphered image of size .

4.2. How to Recover the Plaintext under CCA

Assume that we have obtained temporary access to the decryption machine. Given index and a special ciphertext block , where (the challenge ciphertext block also consists of 64 bits), we can obtain the plaintext block of the ciphertext block from the decryption machine. The keystream can be generated from and by

The recovered plaintext block can be obtained by using the keystream and the ciphertext block as follows:

The flowchart of this attack is given in Figure 3. Simulation results of a chosen ciphertext attack on a ciphered image of size are given in Figure 4.

4.3. How to Recover the Plaintext under KPA

The knowledge of one plaintext block and its corresponding ciphertext block with the same length leads to potential damage of privacy for the cryptosystems. We know that given a plaintext block and its corresponding ciphertext block , the keystream can be computed as follows:

The recovered plaintext block can be obtained by using the keystream and the ciphertext block as follows:

The flowchart of this attack is given in Figure 5 and Figure 6 shows a recovered Lena image from the ciphertext by the known plaintext attack using a known pair of plaintext/ciphertext of Jet.

Therefore, we can draw the following conclusion from the above three attacks.

Theorem 4.1. The Wang-Yu block cipher is not secure (i.e., not one-way) under any of the following attacks: the chosen plaintext attacks, the chosen ciphertext attacks and the known plaintext attacks.

5. Improvement

The ciphertext is independent from the keystream, which makes the encryption algorithm presented in [12] vulnerable to the above attacks. To enable the block cipher to be secure against the above attacks, a reasonable solution is shown. Actually, the ciphertext is sensitive to the change of the keystream and the plaintext in our improvement, which results in a cipher with enhanced security. In this section, we present the modification as follows. (i)Encryption of : .(1)Initialization: ; ; ; CMS table; ; . Here, is the secret key of the block cipher.(2), , value of th column, th row in the CMS table.(3)For to 64: (a)if : ; (b)if : ; (c)if : ;(d)if : . (4)For to 64: where . The keystream is . (5)Encryption transformation: (6)If , goto step (7); else ; ; goto step (2). (7).(ii)Decryption of :

Parameter and keystream generations here are the same as those in the encryption. The only difference is that the equations in step (5) should be replaced by

6. Security and Efficiency of the Improved Scheme

The block cipher algorithm in [12] is not secure since its keystream is reused each time, which makes the keystream easy to recover. Our proposed version of the scheme is designed in a PCBC (Propagating Cipher Block Chaining) mode [13]. Through this mode, an attacker cannot discover the relationship among the keystream, the plaintext and the ciphertext. In order to show that our improved cipher is secure, we consider the three kinds of attacks described previously to recover the keystream in our scheme. As a result, we find that the chosen plaintext attacks, the chosen ciphertext attacks and the known plaintext attacks all fail if the encryption algorithm and the decryption algorithm follow our proposal.

Moreover, the described attacks are harmless for the enhanced scheme. We assume that is the keystream used in the encryption of th block. The keystream is computed as follows: Here, and are the plaintext block and the ciphertext block with index , respectively; is a one-way function from chaotic map iterations. Obviously, even if an attacker knows and , he cannot get without the secret key.

Meanwhile, the above attacks cannot break our scheme since breaking the cipher is equivalent to knowing . However, knowing is impossible in our proposal. Thus, the algorithm is secure against the chosen plaintext attacks, the chosen ciphertext attacks and the known plaintext attacks.

In our scheme, one XOR and one MOD operations are added in the encryption of a plaintext block. The overload of the improved scheme does not influence the efficiency, compared with the Wang-Yu scheme. But our improved scheme achieves a high level of security.

The simulation for the proposed scheme is implemented in Matlab 7.0. Performance is measured on a 2.0 GHz Pentium Dual-Core with 1 GB RAM running Windows XP. The simulation results show that the average running speed of the Wang-Yu cipher and that of our improved cipher are 20.46 MB/s and 19.54 MB/s, respectively.

7. Conclusions

In this paper, three kinds of attacks are presented to break a recently proposed block cipher based on multiple chaotic systems. We show that the reuse of the keystream during the encryption iteration makes the Wang-Yu scheme insecure against the chosen plaintext attacks, the chosen ciphertext attacks and the known plaintext attacks. To enhance the security, we introduce a new method by updating the keystream in a way sensitive to the plaintext and the ciphertext.

Chaotic system is distinguished by its ergodicity and sensitivity to initial conditions and system parameters. These attributes allow the chaotic time series to be a promising alternative to the conventional cryptographic algorithms and image processing [1421]. Fractal time series is distributed in a more random pattern than chaos time series does, due to the nondeterministic characteristic. Fractal time series differs from the conventional time series in the statistic properties [2224]. Many open problems exist in this research area such as stationarity test problem [25], power spectrum problem [26, 27] and bound problem [28]. We are looking for possible ways to apply fractal time series to stochastic number simulation in cryptographic research.

Acknowledgment

This work has been supported by the Major Research plan of the National Natural Science Foundation of China (Grant no. 90718041), the National Natural Science Foundation of China (Grant nos. 10771072, 60703004 and 60873217), and the Research Fund for the Doctoral Program of Higher Education of China (Grant no. 20070269005).