Digital Implementation of an Improved LTE Stream Cipher Snow-3 G Based on Hyperchaotic PRNG

SNOW-3G is a stream cipher used by the 3GPP standards as the core part of the confidentiality and integrity algorithms for UMTS and LTE networks. This paper proposes an enhancement of the regular SNOW-3G ciphering algorithm based on HC-PRNG. The proposed cipher scheme is based on hyperchaotic generator which is used as an additional layer to the SNOW-3G architecture to improve the randomness of its output keystream. The objective of this work is to achieve a high security strength of the regular SNOW-3G algorithm while maintaining its standardized properties. The originality of this new scheme is that it provides a good trade-off between good randomness properties, performance, and hardware resources. Numerical simulations, hardware digital implementation, and experimental results usingXilinx FPGAVirtex technology have demonstrated the feasibility and the efficiency of our secure solution while promising technique can be applied to secure the new generation mobile standards.Thorough analysis of statistical randomness is carried out demonstrating the improved statistical randomness properties of the new scheme compared to the standard SNOW-3G, while preserving its resistance against cryptanalytic attacks.


Introduction
Nowadays, the security of communications becomes more and more important to meet the demand for real-time secure data transmission over the open networks [1].Indeed, in our modern life, all our daily transactions and communications are more made over mobile networks.The Universal Mobile Telecommunications System (UMTS) [2], Long Term Evolution (LTE), and LTE-advanced standards are the 3rd-and 4th-generation mobile networks that enable mobile migrations of Internet applications like Voice over IP (VoIP), video streaming, music downloading, mobile TV, and so on.The security of these mobile standards is based principally on the SNOW-3G stream cipher [3] which is considered as the kernel of the 128-EEA1 confidentiality and 128-EIA1 integrity algorithms of the 4G LTE security [4] replacing the f8 and f9 algorithms of UMTS security [5,6].Thereafter, the Third-Generation Partnership Project (3GPP) has already standardized two other kernel algorithms for LTE confidentiality and integrity protection [7].These algorithms are the Advanced Encryption Standard (AES) in its CounTeR mode (CTR mode) [8] which is composed of 10 rounds processing essentially on the Substitution-Diffusion Network (SDN) principle [9] and the ZUC stream cipher specifically designed for use in China [10,11].
However, AES algorithm has a long computational time [12]; ZUC stream cipher is recently designed and requires more security analysis to prove its robustness and efficiency [13].However, several analyses have proved that SNOW-3G encryption algorithm is weak.In particular, improvements to guard against the following: (i) The short keystream data set attack: this attack discovers a weakness in the initialization process of SNOW-3G stream cipher when 8 from the 15 NIST (National Institute of Standards and Technology) tests fail the short keystream data set test [14].(ii) The improved Heuristic Guess and Determine (IHGD) attack which reduces the complexity from (2 320 ) to  (2 160 ) and the size of guessed basis from 2 Security and Communication Networks 10 to 5: this attack exploits the weakness of main linear feedback polynomials of the cipher [15].
(iii) The fault attack which recovers the secret key with only 22 fault injections on the Linear Feedback Shift Register (LFSR): the attack model assumes that the attacker is able to modify a 32-bit value of one state of the LFSR (   ) during the keystream generation, where  is chosen by the attacker, but he has no full control about  [16].
(iv) The cache-timing attack which is capable of recovering the full cipher state from empirical timing data in a matter of seconds: the attack exploits the cipher using the output from a -box as input to another box [17].
(v) The multiset collision attack on reduced-round: this attack analyzes the resynchronization mechanism of SNOW-3G using multiset collision attacks.This technique has proved itself useful against AES [18].This technique can be applied to SNOW-3G since its Finite State Machine (FSM) is essentially a 96bit AES-like cipher in which the LFSR plays a role of a key-schedule.This attack is complicated by the fact that there is a feedback from the FSM to the LFSR during the setup phase (a feature never present in block ciphers) and the attacker sees only 32 bits of output at a time, while the internal state keeps changing constantly [19].
(vi) The sliding property attack of stream ciphers: this attack is used to find sets of related keys.This attack is applicable due to the nature of the initialization process of SNOW-3G; such related keys do not generate slid keystreams, but only keystreams that have several equal words.However, this still allows distinguishing the produced keystream from random keystreams [20].
Consequently, we remark that the majority of the cited attacks exploit mainly the weakness of the initialization process based on the LFSR polynomials and the FSM -box.Therefore, we can not improve all the cited weaknesses, but we focus in this paper on the improvement of the statistical properties analyzed in [14], and we propose updating the SNOW-3G stream cipher in order to enhance its robustness and being able to resist against new cryptanalysis attacks based on the considered weaknesses.
During the last decade, the use of chaos to design digital chaotic stream ciphers has become a part of cryptography and very important topic of research [21].With regard to the characteristics of a chaotic dynamical system these are as follows: a deterministic system, ergodic, sensitive to initial conditions and control parameters, and having a randomlike behaviour.In addition, these characteristics are related to confusion and diffusion concepts usually used in traditional cryptosystems which allow the application of chaos in cryptography.Considering the possibility for the selfsynchronization of chaotic systems, this concept has become a focal topic for research [22].Therefore, several schemes have been developed to exploit this property of chaotic systems for secure communications.Encryption based chaos has been suggested as a new and efficient way to deal with the problem of fast and highly secure mobile communications.Similarly, several works are proposed to exploit the hyperchaotic (HC) systems providing the nonlinearity and the good randomness.Among them, we can cite the R ö ssler's hyperchaotic systems [23,24], Chen's hyperchaotic systems [25,26], Lu's hyperchaotic system [27], and Lorenz's hyperchaotic systems [28][29][30].
This paper proposes a new architecture which combines the regular SNOW-3G cipher with a Hyperchaotic Pseudo-Random Number Generator (HC-PRNG) in order to design a hyperchaotic SNOW-3G stream cipher providing good randomness, infinite period, and unpredictability on long term while increasing the complexity of a cryptanalysis attack from the weakness in the initialization mode of the regular SNOW-3G cipher [14].The considered HC-PRNG is based on a four-dimensional (4D) Lorenz's chaotic system which is used as an additional layer to the regular SNOW-3G while maintaining its standard properties.Contrariwise of the previous simulated system adding one simple linear chaotic map with the FSM layer of the regular SNOW-3G algorithm [31], we propose an enhancement of initialization process and complexity and randomness of output keystream.The main purpose of this added layer is the perturbation of both the digital LFSR sequences and the FSM output.Thus, we suggest this hyperchaotic perturbation technique to investigate the encryption efficiency of LFSR based stream cipher.Consequently, the proposed architecture has the following features.First, the structure of the stream generator key is more complex having a number of variables and parameters, and the time sequence of output is nonrule and not predictable.Thereby, a large key space is provided for use as seed keys of cipher sequences.Second, the standardized core of SNOW-3G stream cipher is respected in order to facilitate the integration of our approach in the current and future mobile communication networks.Moreover, the considered system is irreversible and unpredictable and it may be extended to many other (4D) continuous chaotic systems while being suitable for digital implementation.Considering the numerical resolution of nonlinear differential equations to get a digital implementation, our proposed approach has been designed and verified using a VHDL (VHSIC Hardware Description Language) description with a fixed-point representation of all data on 48 bits leading to a successful hardware implementation targeted to FPGA technology (Field-Programmable Gate Array).The obtained implementation results provide good performance in terms of hardware area and throughput.Finally, the sturdiness of our proposed architecture has been tested using security analyses and statistical tests.Consequently, the experimental results presented in this paper prove that the added HC generator enhances the randomness and robustness of SNOW-3G algorithm against different analyses and statistical attacks.
The rest of this paper is organized as follows.Section 2 briefly reminds the reader with the architecture of the regular SNOW-3G stream cipher.Section 3 details the processing steps and architecture of the enhanced SNOW-3G stream cipher including a Lorenz's HC generator as PRNG to perturb  the digital output of the regular SNOW-3G stream cipher.The digital implementation results on Virtex-5 Xilinx FPGA technology and evaluations are presented in Section 4. In this section, the performance and architectural simulations prove the feasibility and the efficiency of our proposed HC SNOW-3G stream cipher.In Section 5, the robustness of our new scheme is evaluated through three security analyses: exhaustive key search, key sensitivity, and statistical tests to prove that the proposed HC SNOW-3G stream cipher resists against cryptanalysis attacks and exhibits truly random sequences suitable as cipher keys for the data encryption compared to the regular SNOW-3G cipher.Finally, Section 6 concludes this paper.

Regular SNOW-3G Algorithm
The SNOW-3G is a cryptographic algorithm which was originally designed as the kernel of the UMTS confidentiality and integrity functions f8 and f9 [5], respectively.After that, it has been kept as the first kernel algorithm for the LTE security functions 128-EEA1 and 128-EIA1, respectively [3,4].SNOW-3G is a stream cipher that generates 32-bit word keystream under the control of the 128-bit Ciphering Key (CK) and 128bit Initialization Vector (IV).It is divided into two interacting layers.The first layer is the LFSR layer which is formed by 16 stages of 32 bits each ( 0 ,  1 , . . .,  15 ).The second one is the FSM layer which is formed by three registers (1, 2, and 3) of 32 bits each.The detailed architecture of the SNOW-3G stream cipher is illustrated in Figure 1, where ⊕ represents bitwise XOR operation and ⊞ is adder arithmetic operator.Considering that the regular SNOW-3G can not offer robustness against short keystream data set attacks [14], we propose enhancing its statistical properties and security level by overcoming its weaknesses through an additional layer updating the initialization and keystream modes while keeping its standard.

Enhanced SNOW-3G Algorithm Based on HC-PRNG
In this section, we present our designed scheme to enforce the confidentiality and integrity protection for LTE and new generations of mobile standards.We propose adding a HC-PRNG as an additional layer to the regular SNOW-3G architecture which is based on the LFSR and FSM layers.The HC-PRNG is added to the regular SNOW-3G architecture to consolidate the complexity of the regular SNOW-3G stream cipher in order to improve the randomness of the output keystream and to ameliorate the LFSR initialization based on the perturbation effect.More precisely, the HC-PRNG output is mixed with the feedback value of the LFSR layer during the initialization process (see Figure 2), or mixed with the FSM output  and with the register  0 during the keystream generation process (more details in Section 3.4).Finally, a specific HC SNOW-3G stream cipher is obtained.Figures 2  and 6 depict the considered enhanced architecture.The layers forming the HC SNOW-3G architecture are detailed in the following subsections.

LFSR Layer.
As with the regular SNOW-3G, this layer is formed by 16 stages of 32 bits each ( 0 ,  1 , . . .,  15 ) (see Figures 1 and 2).The associated feedback is defined by a primitive polynomial over the finite Galois field GF(2 32 ) using bitwise XOR operations and the well-known   and V  main functions [3].The LFSR component is clocked in two operating modes described as follows.
Initialization Mode.In this mode, the LFSR is performed by using three stage registers  0 ,  2 , and  11 and one 32-bit word called  which is the output value of the FSM layer.First, the two 32-bit stage registers  0 and  11 are divided into four bytes as follows: where ‖ is the concatenation operation.In this division step, the feedback value V is calculated by  ( Keystream Mode.In this mode, the main difference with the initialization mode is that the feedback value V is calculated without using the 32-bit word  and by All the other steps are similar to the initialization mode.

FSM Layer.
As with the regular SNOW-3G, the FSM layer is formed by three registers 1, 2, and 3 of 32 bits each (see Figures 1 and 2).To generate a 32-bit output keystream word named , this component uses two substitution boxes 1 and 2, one linear bitwise XOR operation, and one nonlinear integer modulo 2 32 adder [3].The FSM is clocked by using two inputs provided by the two registers  5 and  15 arising from the previous LFSR component (see Figure 1).Therefore,  can be expressed by Thereby, an intermediate value  is calculated to set the three registers 1, 2, and 3 at each clock cycle as defined by

HC-PRNG Layer.
The added HC-PRNG layer is performed by a nonlinear dynamic generator which is very sensitive to initial conditions and presents high recurrences (see Figure 2).This system can be used in cryptography to replace the PRNG.A cryptosystem based on this HC-PRNG consists of using a chaotic nonlinear oscillator as a pseudorandom signal generator which is combined with the message before transmission.At the reception, the similar chaotic oscillator is used in order to regenerate the pseudo-random signal which is combined with the received signal through the inverse operation and in order to recover the original message [32].Moreover, the added HC-PRNG layer must be synchronized between the emitter and the receiver to ensure encryption/decryption process like any chaotic or HC system.To realize our HC-PRNG, we have implemented the Lorenz HC system which is generated by deriving the generalized Lorenz quadratic controller system (4D) by providing a hyperchaotic behaviour.It is a four-dimensional dynamical controlled system which is characterized by the following [33]: where , , , and  are the control parameters.Note that , , , and  are >0, and usually  = 10,  = 8/3,  = 5, and  is varied.The system exhibits one hyperchaotic behaviour for  = 28.The initial conditions are set as  0 =  0 =  0 =  0 = −10.The two principal requisites presented below must be considered to obtain hyperchaos behaviour: (1) The minimal dimension of the phase space that embeds a HC attractor should be at least four, which requires the minimum number of coupled first-order autonomous ordinary differential equations to be four. ( The number of terms in the coupled equations giving rise to instability should be at least two, of which at least one should have a nonlinear function [34]. For resolving (7), we use the Runge-Kutta fourth-order resolution method (RK-4 method) [35,36].We present a brief review of this method.
For example, a nonlinear system is defined by Note that (0) =  0 , (0) =  0 , (0) =  0 , and (0) =  0 , where , , , and  are nonlinear functions.At each iteration  + 1, RK-4 uses four intermediate values from the iteration .Then, ( 9) is used to solve (8): Note that ℎ is the integration step (interval).For each integration step ℎ, four increments are defined for each function (, , , and ): first increment at the beginning, then two increments at the midpoint, and a last increment at the end of the interval ℎ, as follows.
When  =  0 , the first increment values are defined based on the slope at the beginning of the interval, as follows: and when  =  + ℎ/2, the second increment values are defined based on the slope at the midpoint of the interval, using previous values ( 0 ,  0 ,  0 , and  0 ), as follows: and when  =  + ℎ/2, the third increment values are defined based on the slope at the midpoint of the interval, using previous values ( 1 ,  1 ,  1 , and  1 ), as follows: and when  =  + ℎ, the fourth increment values are defined based on the slope at the end of the interval, using previous values ( 2 ,  2 ,  2 , and  2 ), as follows: Mentioning that HC signals are real, we used the fixedpoint format of 48 bits as 1632.The real part is encoded on 16 bits and the decimal part is encoded on 32 bits.The used arithmetic fixed-point allows achieving a good compromise between performance and cost.Equation set (8) is simulated in MATLAB platform using the numerical tool RK-4, and the results are illustrated in Figures 3 and 4

Digital Implementation of the Proposed HC-PRNG.
To realize the HC-PRNG component, we opt for a hardware behaviour description based on Moore's Finite State Machine [35].This FSM system describes the numerical resolution based on Runge-Kutta method performing (7).Thereby, the RK-4 method is implemented in digital way suitable for FPGA using the FSM system coded in VHDL language and detailed in Figure 5.This figure describes the FSM system corresponding to the internal states of the HC-PRNG layer.
A detailed description at each state of the FSM system is presented as follows.State End.It is the last state of the FSM, the first chaotic key values , , , and  are generated to perturb SNOW-3G, and they are also used to update the variables , , , and , respectively, for the next chaotic key calculation.At the next rising edge of clock signal, if  < , then it jumps to state 2 to start new generation key cycle.But if  = , which indicates that all the required keys are generated, the FSM jumps to state 1 to wait a new order of  keystream generation. is a command to control the end of output keystreams and  is the number of keystreams to be generated.

Keystream Generation.
To ensure the synchronization of the enhanced SNOW-3G stream cipher parts, all its components are ordered by the same clock and reset signals.Thereby, two main 128-bit inputs CK and IV are loaded to the LFSR stages before starting the process.And then the algorithm is performed according to two operating modes (initialization and keystream modes) depending on the LFSR mode.The perturbation of the LFSR and FSM layers is ordered by a specific block command which defines the starting of perturbation (see Figures 2 and 6).This block provides one perturbation command which is defined by the 4 Least Significant Bits (LSB) of the Initial Vector (LSB(IV) = IV[3 down to 0]).The keystream generator is performed from the following processing steps.x = x 0 , y = y 0 , z = z 0 , w = w 0 Key Loading.This step is performed before the initialization mode.First, it begins by dividing each of the two 128-bit input words CK and IV into 32-bit words as follows:

Keystream output Zt
Figure 6: The architecture of our proposed hyperchaotic SNOW-3G stream cipher in its keystream mode.
In parallel of this key loading step, the HC-PRNG layer command is initialized by the IV as follows: Initialization Mode.When the key loading process is completed, the FSM layer is executed using  15 and  5 stage registers from LFSR layer to generate a 32-bit output word  expressed by (5).The registers of the FSM layer are set to zero (1 = 2 = 3 = 0) before computing .At the same time, the HC-PRNG is executed to produce the 32-bit word  perturbation signal.After waiting  clock cycles,  is mixed with  by a bitwise XOR operator in order to perturb the LFSR updating.Consequently, the new feedback value is calculated from the following equation: The number of clock cycles is defined by  = 0, 1, . . ., 15, corresponding to the value contained in  which depends on IV.The 16 LFSR stage registers are updated as follows: The FSM and HC-PRNG layers run in the initialization mode 32 clock cycles, producing the two 32-bit words  and , which are used by the LFSR feedback value as defined in (17).Note that the initialization mode does not produce any output keystream .The detailed architecture of the proposed HC SNOW-3G stream cipher in its initialization mode is given in Figure 2.
Keystream Mode.At the end of initialization mode, the FSM is performed during one clock cycle, and the associated output word  is discarded.Then, the LFSR feedback value is calculated by (4), and the 16 stage registers are updated as follows: For the next clock cycles, the FSM 32-bit output word  generated by ( 5) is mixed with the HC-PRNG 32-bit output word  and the register  0 of the LFSR in order to produce the 32-bit keystream word  as defined by (20).The architecture of the proposed HC SNOW-3G stream cipher in its keystream mode is given in Figure 6: Therefore, in this processing mode, the LFSR operates on keystream mode, and both FSM and HC-PRNG layers are clocked at each clock cycle to generate a 32-bit keystream word  as mentioned before.This mode runs  times where  is the number of 32-bit blocks to be encrypted.

FPGA Implantation of the Proposed Design
The proposed architecture is mainly based on three layers, as already discussed: the HC-PRNG layer and the FSM and LFSR layers of the regular SNOW-3G.The added HC-PRNG layer is used in order to perturb the LFSR synchronization in the initialization mode and the FSM output in the keystream mode, as described in Figures 2 and 6, respectively.The RTL description of the proposed architecture has been implemented on Xilinx Virtex-5 FPGA (XC5vfx70t-1) through the ML507 Virtex Development platform [37] using VHDL structural description.ISE 13.1i of Xilinx tools have been used for this digital implementation allowing obtaining the logic resource requirements and the associated real-time constraints.The Xilinx Synthesis Technology (XST) results after place and route show the performance analysis of our implementation in Table 1.To exhibit the importance of this architecture, we also implemented the regular SNOW-3G and the PLCM (Piecewise Linear Chaotic Map) SNOW-3G proposed in [31] on the same FPGA device.The results are presented in Table 1.This table depicts comparison in terms of hardware resources, maximum time frequency, throughput, and the power consumption.Our logic implementation on a Xilinx Virtex-5 device requires only 2391 Slice registers, 56 bonded IOBs, and 10 block RAMs.In addition, the low power consumption estimated by 1.36 Watts is suitable for embedded electronic applications thanks to the considered FSM encoding algorithm and the fixed-point coding data.
To evaluate the performance of the proposed stream cipher, the throughput rate metric is considered.The throughput rate is defined as the number of bits of key in a unit of time for a keystream.In view of the performance results (see Table 1), we have achieved a maximal throughput of 922.88 Mbps for the proposed HC SNOW-3G and 422.56 Mbps for the PLCM SNOW-3G, where the regular SNOW-3G achieves a maximal throughput of 8264.32 Mbps.Thus, the proposed architecture is two times faster than PLCM SNOW-3G architecture and nine times slower than the regular SNOW-3G architecture.On the other hand, the proposed HC SNOW-3G architecture occupies greater area compared to the regular and PLCM SNOW-3G architectures.The difference in terms of hardware area is due to the following: (1) The HC system is for order 4 where the PLCM system is for order 3.
(2) The HC system is more complex and has more nonlinearity than the PLCM system.
(3) The HC system complexity provides good randomness and security compared to the PLCM system.
Based on the obtained results and the discussed comparison, we conclude that the proposed HC SNOW-3G is better than the PLCM SNOW-3G in terms of randomness, security, and high throughput.
To ensure that the proposed architecture enhances the complexity of the standardized SNOW-3G stream cipher suitable for increasing the robustness of data encryption, security and statistical tests are performed in order to prove the high level of security obtained from our architecture.

Cryptographic Strength and Performance
The security and statistical analyses of our designed architecture are presented in this section.The proposed stream cipher HC SNOW-3G algorithm is subjected to two security tests: (1) key sensitivity and ( 2) key space and several statistical analyses such as uniformity and randomness.to demonstrate its satisfactory security and good randomness with regard to the added HC-PRNG layer.

Statistical Analysis.
Many statistical analyses are applied to our proposed stream cipher scheme to demonstrate its robustness such as randomness, uniformity, mixing nature, low coefficient correlation between original and encrypted data packets, and NIST tests.The simulations are done using keystreams of 125000 bytes in length which are normally distributed with a mean equal to 128 and standard deviation equal to 8.

Randomness and Uniformity Analysis.
Any performing stream cipher should produce high random keystreams and with best uniformity representation.Therefore, a keystream of 1000000 bits produced by our design is analyzed.The recurrence plot representation (Figure 7 The high randomness of generated keystream is also proved by the random-excursion and random-excursionvariant tests of NIST [38].To perform these tests, we analyzed 250 keystream sequences where each sequence is composed of 50 packets of 1000000 bits.The proportion value of each sequence is shown in Figure 8.The determined range of acceptable proportion using the confidence interval is defined by where  is the sample size, P = 1 − , and  = 0.01. In our case, the confidence interval is 0.99 ∓ 3√(0.99 × 0.01)/50 (i.e., the proportion value should be laid above 0.947786) which is represented in Figure 8  addition, other tests proving randomness and uniformity of our proposed stream cipher are presented in the following subsections.

Low Correlation Coefficient.
The correlation is an important test to prove the independence of encrypted data from the original ones.Indeed, the encrypted data are increasingly different from the original ones when the correlation coefficient becomes as low as possible.The correlation coefficient is computed according to [39]  , = cov (, )  where For performing this test, we have analysed 500 encrypted packets with different keys, and in each case we have calculated the correlation coefficient between original packet and its corresponding encrypted packet.The results are shown in Figure 9.The illustrated results indicate clearly that no detectable correlation exists between the original and corresponding cipher packets considering that the correlation coefficient is always close to ideal value zero.

Distribution and Chi-Square
Uniformity.An additional statistical approach, the distribution of frequency counts which can define the uniformity of generated keystreams, is performed.Any sequence is categorized uniform if its corresponding distribution is close to a uniform distribution.In Figures 10(a) and 10(b) distributions of an original and its corresponding encrypted packet obtained by our proposed stream cipher are presented, respectively.From these results, we deduce that the contents of the encrypted packet are spread over the entire space and have a uniform distribution thanks to a good level of mixing included by our added HC-PRNG layer.To validate this uniformity, the Chi-square test is applied [40].The Chi-square distance is computed according to Note that  represents the number of levels (here 256),   represents the observed occurrence frequencies of each level of field size (0-255) in the histogram of ciphered generation contents, and   is the expected occurrence frequency of uniform distribution.Before applying the test, we fixed the significant level to 0.05.After test, we analyzed the result according to the  2 test value.Indeed, if  2 test ≤  2 theory (255, 0.05) ≈ 293 (in our case study), and the null hypothesis is not rejected, then the distribution of the histogram is uniform.In Figure 11, the results of the Chisquare test for 500 different ciphered packets of 125000 bytes each are shown.Based on these results, we conclude that a stronger mixing property is obtained with uniform distribution exceeding ≈95% considering all values are below the value of  2 theory presented by a red line in Figure 11.

NIST Keystream Analysis.
Various statistical tests can be used to evaluate the randomness of a sequence, for example, NIST [38], DIEHARD [41], NESSIE [42].In our case study, the NIST statistical tests are used to evaluate our HC SNOW-3G stream cipher.To illustrate the importance of the proposed design, we repeat the three statistical tests done in [14] to evaluate the randomness of the generated keystreams.
To perform comparison results with previous work [14], we have considered the usual significance level used in the NIST tests [38] and the same sample size sequences.Therefore, in all the experiments the significance level was set to 0.01 and sample size was set to 300 sequences.The tests are defined as follows: (1) Long keystream data set test: it begins by generating 2 20 bits for each of the 300 random CK (set IV to zero in all the cases) to obtain 300 vectors of 1048576 bits.Then, it evaluates the result vectors by the 15 NIST tests.
(2) Short keystream data set test: it begins by generating 2 10 bits for each of the 307200 random CK (set IV to zero in all the cases).The concatenation of all the keystreams of 2 10 bits allows obtaining 300 vectors of 1048576 bits.Then, it evaluates the result vectors by the 15 NIST tests.
(3) IV data set: it begins by generating 256 sequences of 4096 bits each for 300 random CK.Note that the first sequence of each key is generated with IV set to zero.Then, it is incremented for the following 255 sequences.As a result, we obtain 300 vectors of 1048576 bits for evaluation by the 15 NIST tests.
To perform the analysis, we compare the results of our proposed HC SNOW-3G stream cipher with results of the regular SNOW-3G done in [14].The aim of this analysis is to prove the amelioration of the initialization process and randomness of short keystream data set.As a result, we find that both algorithms (regular SNOW-3G and our proposed design) pass in success all the fifteen NIST tests for test set 1 (long keystream data set) and test set 3 (IV data set).However, only our proposed design passes in success all the fifteen NIST tests for test set 2 (short keystream data set).Indeed, the regular SNOW-3G fails in the eight NIST tests as it is presented in Table 2.More precisely, this table gives a comparison of short keystream generated by the regular SNOW-3G cipher with short keystream generated by our proposed HC SNOW-3G design.We can clearly observe that all tests are passed compared to the regular SNOW-3G cipher where NIST tests based on the short keystream data set have failed [14].Therefore, we can conclude that our proposed design present an enhanced initialization process and generates very good pseudo-random keystream, which justify its high level of security.Indeed, it is very difficult to find a plaintext masked by a sequence generated by this stream cipher which can be used in the 128-EEA1 confidentiality algorithm.Similarly, it is theoretically impossible to generate the same MAC by the 128-EEIA1 integrity algorithm based on this stream cipher without knowing original message.

Key Sensitivity Analysis.
The key sensitivity analysis is one among the most important security tests of cryptosystems.In other words, an ideal cryptosystem should be sensitive with respect to the secret key.For testing the key sensitivity of the proposed architecture, we analyzed 500 random keys, where in each case a single bit in the secret key is changed.Then, the percent of Hamming Distance (HD) is calculated according to where  is the length in bit level of the encrypted packet and   and    are the corresponding ciphers packets using two secret keys different in one bit   and    , respectively.The obtained results are shown in Figure 12 in which a high sensitivity is indicated, while the average Hamming Distance percent is closer to the optimal value 50% in bit level.We conclude that a change of one bit in the secret key leads to thoroughly different keystreams with respect to the avalanche effect [43].

Key Space Analysis.
The proposed enhanced stream cipher HC SNOW-3G has the advantage of being able to generate a usable random number while maintaining a large enough key space and high level security.The key space achieved in the present work is increased from 2 128 in the regular SNOW-3G stream cipher to 2 132 by addition of 2 4 through the controlling command used to perform the perturbation process which is coded in 16 bits.
Additionally, considering all the initial values (0, 0, 0, and 0) and control parameters (, , , and ) of our HC generator (defined by ( 7)) as internal keys, the key space of the generator is based upon those 8 parameters.First, we fix the initial values (0, 0, 0, and 0) and the three parameters , , and  whereas  is considered the key of the random number generator (we change slightly the value of ) to generate a new binary sequence.The experiment is done more than 1000 times.The obtained results show that the variance ratio of each bit is approximated to 99%, even if the change of initial value or control parameter is an extremely small value 10 −15 , which means that the system is extremely sensitive to the key changes.Consequently, the key space is larger than 10 15 for this considered key ().Similarly, the 4 initial values and the 3 remaining control parameters can be considered as key of our random sequence generator.Finally, the key space is defined by (10 15 ) 8 = 10 120 ≈ 2 398 , which is large enough to withstand attacks limited by a key space of 2 128 .
Otherwise, the HC generator key space of 2 398 is much better than the PLCM generator key space of 2 124 [44].Finally, we conclude that our HC generator is sufficiently large to make the brute-force attacks infeasible.

Synthesis and Discussion
. In cryptography, any cipher must exhibit the confusion and diffusion defined on Shannon's theory with success to be considered secure enough and able to resist attacks [45].Our designed cipher is resistant against the powerful attacks that are based on statistical analysis.Moreover, the avalanche effect is attained when repeating the tests several times [43], and then a significant difference is caused in the generated keystream by changing of a single bit in the Ciphering Key, which makes our cipher resistant against a special case of differential cryptanalysis.The proposed cipher is also resistant against the statistical attacks proved by the obtained statistical analysis results.Furthermore, the key space of 2 132 is achieved, which is sufficiently large to make the brute-force attack infeasible.Finally, the added nonrevertible HC generator limits the ability of the attackers who try to break the cipher.The high randomness and security of our cipher is achieved according to the new combined HC technique with both regular LFSR and FSM layers in addition to the strength of the original SNOW-3G against contemporary cryptanalytic.

Conclusion
In this paper, an enhanced SNOW-3G stream cipher is proposed.The objective is the improvement of the randomness and the complexity of the regular SNOW-3G stream cipher which presents a weakness in its initialization mode leading Security and Communication Networks to failure of the NIST test based on the short keystream data set.The adopted original approach is to include a HC-PRNG (Hyperchaotic Pseudo-Random Number Generator) based on 4D Lorenz system in the regular SNOW-3G cipher as an additional layer while keeping standardization and in order to generate a more robustness keystream.The proposed architecture performs the perturbation concept of digital LFSR (Linear Feedback Shift Register) sequences and the digital output of the regular SNOW-3G cipher part through one hyperchaotic generator which is used as PRNG (Pseudo-Random Number Generator).The obtained statistical and security tests proved that the proposed stream cipher is more secure than the regular SNOW-3G cipher as long as it passes all analyses presented in this paper.Therefore, the proposed stream cipher can replace the regular SNOW-3G stream cipher without modification in its mechanism while respecting its standard requirements, mainly the length of input and output parameters.Consequently, this paper proposed a new digital hyperchaotic SNOW-3G stream cipher architecture which can be used as the kernel of the confidentiality and integrity algorithms used in the UMTS and LTE standards.The hardware implementation results of our proposed hyperchaotic SNOW-3G cipher provide a good trade-off between high security, performance, and hardware resources.Indeed, the proposed implemented design in FPGA Virtex-5 device consumes a low logic area cost while it achieves a throughput of 922.88 Mbps.Finally, our technique exhibits attractive performance and can be extended to enhancing the 4G security level by scrambling the plaintext for the LTE 128-EEA1 confidentiality algorithm or controlling the integrity of a signalling message for 128-EIA1 algorithm.

Figure 1 :
Figure 1: Architecture of the regular SNOW-3G stream cipher.

Figure 2 :
Figure 2: The architecture of our proposed hyperchaotic SNOW-3G stream cipher in its initialization mode.
. A good randomness is obtained in random HC signals (decimal part) as shown in Figure 3(b) compared to the HC signals (real and decimal parts) as shown in Figure 3(a).Similarly, the Lorenz attractor formed by the random HC signals (decimal part) and given in Figure 4(b) presents more randomness compared to the attractor obtained by the HC signals (real and decimal parts) and given in Figure 4(a).Thereafter, we used only the decimal part of hyperchaotic signals encoded on 32 bits as random perturbation signals.

Figure 3 :
Figure 3: Simulation results of the considered Lorenz hyperchaotic system.

State 1 .
It is the initialization state.All outputs are set to zero and the state variables are initialized with the initial conditions ( 0 =  0 =  0 =  0 = −10

State 5 .
The values of the intermediate points calculated in state 4 are used to update the variables , , , and .At the next rising edge of clock signal, it jumps to the next state without any condition.State 6.In this state, we compute the initial slopes  2 ,  2 ,  2 , and  2 and the intermediate points  3 ,  3 ,  3 , and  3 , respectively.RK4 signal is always set to zero.At the next rising edge of clock signal, it jumps to the next state without any condition.State 7. The values of the intermediate points calculated in state 6 are used to update the variables , , , and .At the next rising edge of clock signal, it jumps to the next state without any condition.State 8.In this state, the HC solutions , , , and  of (8) are calculated, and the RK4 signal is set to one to indicate the end of the process.At the next rising edge of clock signal, it jumps to state end without any condition.

Figure 4 :
Figure 4: Obtained attractors of the proposed Lorenz hyperchaotic system.

Figure 5 :
Figure 5: Description of the FSM system performing the RK-4 resolution of Lorenz's HC generator.
(a)) and distribution (Figure 7(b)) of the generated keystream indicate clearly a good degree of randomness and uniformity.

Figure 9 :
Figure 9: Correlation coefficient between original and encrypted packets.
Distribution of corresponding encrypted sequence

Figure 10 :Figure 11 :
Figure 10: The distribution comparison between original and encrypted sequences.

Figure 12 :
Figure12:The key sensitivity analysis results.
).In this state, we compute  0 ,  0 ,  0 , and  0 and the intermediate points  1 ,  1 ,  1 , and  1 .RK4 signal is always set to zero.At the next rising edge of clock signal, it jumps to the next state without any condition.State 3. The values of the intermediate points  1 ,  1 ,  1 , and  1 are used to update the variables , , , and , respectively.At the next rising edge of clock signal, it jumps to the next state without any condition.State 4. In this state, we compute the initial slopes  1 ,  1 ,  1 , and  1 and the intermediate points  2 ,  2 ,  2 , and  2 , respectively.RK4 signal is always set to zero.At the next rising edge of clock signal, it jumps to the next state without any condition.

Table 1 :
FPGA implementation results and comparison.