Literature DB >> 33286227

Image Encryption Using Elliptic Curves and Rossby/Drift Wave Triads.

Ikram Ullah1, Umar Hayat1, Miguel D Bustamante2.   

Abstract

We propose an image encryption scheme based on quasi-resonant Rossby/drift wave triads (related to elliptic surfaces) and Mordell elliptic curves (MECs). By defining a total order on quasi-resonant triads, at a first stage we construct quasi-resonant triads using auxiliary parameters of elliptic surfaces in order to generate pseudo-random numbers. At a second stage, we employ an MEC to construct a dynamic substitution box (S-box) for the plain image. The generated pseudo-random numbers and S-box are used to provide diffusion and confusion, respectively, in the tested image. We test the proposed scheme against well-known attacks by encrypting all gray images taken from the USC-SIPI image database. Our experimental results indicate the high security of the newly developed scheme. Finally, via extensive comparisons we show that the new scheme outperforms other popular schemes.

Entities:  

Keywords:  Mordell elliptic curve; pseudo-random numbers; quasi-resonant Rossby/drift wave triads; substitution box

Year:  2020        PMID: 33286227      PMCID: PMC7516936          DOI: 10.3390/e22040454

Source DB:  PubMed          Journal:  Entropy (Basel)        ISSN: 1099-4300            Impact factor:   2.524


1. Introduction

The exchange of confidential images via the internet is usual in today’s life, even though the internet is an open source that is unsafe and unauthorized persons can steal useful or sensitive information. Therefore it is essential to be able to share images in a secure way. This goal is achieved by using cryptography. Traditional cryptographic techniques such as data encryption standard (DES) and advanced encryption standard (AES) are not suitable for image transmission because image pixels are usually highly correlated [1,2]. By contrast, DES and AES are ideal techniques for text encryption [3], so researchers are trying to develop such techniques to meet the demand for reliable image delivery. A number of image encryption schemes have been developed using different approaches [4,5,6,7,8,9,10,11,12,13,14]. Hua et al. [12] developed a highly secure image encryption algorithm, where pixels are shuffled via the principle of the Josephus problem and diffusion is obtained by a filtering technology. Wu et al. [13] proposed a novel image encryption scheme by combining a random fractional discrete cosine transform (RFrDCT) and the chaos-based Game of Life (GoL). In their scheme, the desired level of confusion and diffusion is achieved by GoL and an XOR operation, respectively. “Confusion” entails hiding the relation between input image, secret keys and the corresponding cipher image, and “diffusion” is an alteration of the value of each pixel in an input image [1]. One of the dominant trends in encryption techniques is chaos-based encryption [15,16,17,18,19,20]. The reason for this dominance is that the chaos-based encryption schemes are highly sensitive to the initial parameters. However, there are certain chaotic cryptosystems that exhibit a lower security level due to the usage of chaotic maps with less complex behavior (see [21]). This problem is addressed in [22] by introducing a cosine-transform-based chaotic system (CTBCS) for encrypting images with higher security. Xu et al. [23] suggested an image encryption technique based on fractional chaotic systems and verified experimentally the higher security of the underlying cryptosystem. Ahmad et al. [24] highlighted certain defects of the above-mentioned cryptosytem by recovering the plain image without the secret key. Moreover, they proposed an enhanced scheme to thwart all kinds of attacks. The chaos-based algorithms also use pseudo-random numbers and substitution boxes (S-boxes) to create confusion and diffusion [25,26]. Cheng et al. [25] proposed an image encryption algorithm based on pseudo-random numbers and AES S-box. The pseudo-random numbers are generated using AES S-box and chaotic tent maps. The scheme is optimized by combining the permutation and diffusion phases, but the image is encrypted in rounds, which is time consuming. Belazi et al. [26] suggested an image encryption algorithm using a new chaotic map and logistic map. The new chaotic map is used to generate a sequence of pseudo-random numbers for masking phase. Then eight dynamic S-boxes are generated. The masked image is substituted in blocks via aforementioned S-boxes. The substituted image is again masked by another pseudo-random sequence generated by the logistic map. Finally, the encrypted image is obtained by permuting the masked image. The permutation is done by a sequence generated by the map function. This algorithm fulfills the security analysis but performs slowly due to the four cryptographic phases. In [27], an image encryption method based on chaotic maps and dynamic S-boxes is proposed. The chaotic maps are used to generate the pseudo-random sequences and S-boxes. To break the correlation, pixels of an input image are permuted by the pseudo-random sequences. In a second phase the permuted image is decomposed into blocks. Then blocks are encrypted by the generated S-boxes to get the cipher image. From histogram analysis it follows that the suggested technique generates cipher images with a nonuniform distribution. Similar to the chaotic maps, elliptic curves (ECs) are sensitive to input parameters, but EC-based cryptosystems are more secure than those of chaos [28]. Toughi et al. [29] developed a hybrid encryption algorithm using elliptic curve cryptography (ECC) and AES. The points of an EC are used to generate pseudo-random numbers and keys for encryption are acquired by applying AES to the pseudo-random numbers. The proposed algorithm gets the promising security but pseudo-random numbers are generated via the group law, which is time consuming. In [3], a cyclic EC and a chaotic map are combined to design an encryption algorithm. The developed scheme overcomes the drawbacks of small key space but is unsafe to the known-plaintext/chosen-plaintext attack [30]. Similarly, Hayat et al. [31] proposed an EC-based encryption technique. The stated scheme generates pseudo-random numbers and dynamic S-boxes in two phases, where the construction of S-box is not guaranteed for each input EC. Therefore, changing of ECs to generate an S-box is a time-consuming work. Furthermore, the generation of ECs for each input image makes it insufficient. Based on the above discussion, we propose an improved image encryption algorithm, based on quasi-resonant Rossby/drift wave triads [32,33] (triads, for short) and Mordell elliptic curves (MECs). The triads are utilized in the generation of pseudo-random numbers and MECs are employed to create dynamic S-boxes. The proposed scheme is novel in that it introduces the technique of pseudo-random numbers generation using triads, which is faster than generating pseudo-random numbers by ECs. Moreover, the scheme does not require to separately generate triads for each input image of the same size. In the present scheme, MECs are used opposite to [31], in the sense that now, for each input image, the generation of a dynamic S-box is guaranteed [34]. Finally, extensive performance analyses and comparisons reveal the efficiency of the proposed scheme. This paper is organized as follows. Preliminaries are described in Section 2. In Section 3, the proposed encryption algorithm is explained in detail. Section 4 provides the experimental results as well as a comparison between the proposed method and other existing popular schemes. Lastly, conclusions are presented in Section 5.

2. Preliminaries

Barotropic vorticity equation: The barotropic vorticity equation (in the so-called -plane approximation) is one of the simplest two-dimensional models of the large-scale dynamics of a shallow layer of fluid on the surface of a rotating sphere. It is described in mathematical terms by the partial differential equation where represents the geopotential height, is the Coriolis parameter, a real constant measuring the variation of the Coriolis force with latitude (x represents longitude and y represents latitude) and F is a non-negative real constant representing the inverse of the square of the deformation radius. We assume periodic boundary conditions: for all . In the literature Equation (1) is also known as the Charney–Hasegawa–Mima equation (CHM) [35,36,37,38,39]. This equation accepts harmonic solutions, known as Rossby waves, which are solutions of both the linearized form and the whole (nonlinear) form of Equation (1). A Rossby wave solution is given explicitly by the parameterized function , where is an arbitrary constant, is the so-called dispersion relation, and is called the wave vector. For simplicity, we take and in what follows [32,33]. Resonant triads: As Equation (1) is nonlinear, modes with different wave vectors tend to couple and exchange energy. If the nonlinearity is weak, this exchange happens to be quite slow and is more efficient amongst groups of modes that are in resonance. To the lowest order of nonlinearity in Equation (1), approximate solutions known as resonant triad solutions can be constructed via linear combinations of the form where are slow functions of time (they satisfy a closed system of ODEs, not shown here), and the wave vectors and satisfy the Diophantine system of equations: for . A set of three wavevectors satisfying Equations (2) is called a resonant triad. Solutions can be found analytically via a rational transformation to elliptic surfaces (see below). Quasi-resonant triads and detuning level: If, in (2), the equation is replaced by the inequality , for a large positive number , then the triad becomes a quasi-resonant triad and is known as the detuning level of the quasi-resonant triad. It is possible to construct quasi-resonant triads via downscaling of resonant triads that have very large wave vectors [32]. For simplicity, in what follows we simply call a quasi-resonant triad a triad and denote it by . Finally, to avoid over-counting of triads we will impose the condition . Rational transformation: In [32], wave vectors are explicitly expressed in terms of rational variables and D as follows: In the case , the rational variables lie on an elliptic surface. The transformation is bijective and its inverse mapping is given by: New parameterization: In [40], Kopp parameterized the resonant triads and in terms of parameters u and t it follows by [40] (Equation (1.22)) that: In 2019, Hayat et al. [33] found a new parameterisation of and D in terms of auxiliary parameters and hence and are given by: Elliptic curve (EC): Let be a finite field for any prime p, then an EC over is defined by where . The integers and p are called parameters of an EC. The number of all satisfying the congruence (11) is denoted by . Mordell elliptic curve (MEC): In the special but important case , the above EC is known as an MEC and is represented by For , there are exactly points satisfying the congruence (12), see [41] for further details. If points on are ordered according to some total order ≺ then is said to be an ordered EC. Recall that total order is a binary relation which possesses the reflexive, antisymmetric and transitive properties. Azam et al. [42] introduced a total order known as a natural ordering on MECs given by and generated efficient S-boxes using the aforesaid ordering. We will use natural ordering to generate S-boxes. Thus from here on stands for a naturally ordered MEC unless it is specified otherwise.

3. The Proposed Encryption Scheme

The proposed encryption scheme is based on pseudo-random numbers and S-boxes. The pseudo-random numbers are generated using quasi-resonant triads. To get an appropriate level of diffusion we need to properly order the s. For this purpose we define a binary relation ≲ as follows.

3.1. Ordering on Quasi-Resonant Triads

Let represent the triads , respectively, then where and are the corresponding auxiliary parameters of and , respectively. If T denotes the set of Δs in a box of size L, then ≲ is a total order on T. The reflexivity of ≲ follows from and and hence As for antisymmetry we suppose and . Then, by definition and , which imply . Thus we are left with two results: and , which imply . Thus, we obtain the results and , which ultimately give . Solving Equations (8)–(10) for the obtained values, we get and from Equation (2) it follows that . Consequently and ≲ is antisymmetric. As for transitivity, let us assume and . Then and , implying . If , then transitivity follows. If , then too. Thus, and , so . If , then transitivity follows. If , then too. Thus, and , implying and hence transitivity follows: . □ Let stand for the set of s ordered with respect to the order ≲. The main steps of the proposed scheme are explained as follows.

3.2. Encryption

A. Public parameters: In order to exchange the useful information the sender and receiver should agree on the public parameters described as below: Three sets: choose three sets of consecutive numbers with unknown step sizes, where the end points are rational numbers. A total order: select a total order ≺ so that the triads generated by the above-mentioned sets may be arranged with respect to that order. Suppose that P represents an image of size to be encrypted, and the pixels of P are arranged in column-wise linear ordering. Thus, for positive integer , represents the i-th pixel value in linear ordering. Define as the sum of all pixel values of the image P. Then the proposed scheme chooses the secret keys in the following ways. B. Secret keys: To generate confusion and diffusion in an image, the sender chooses the secret keys as follows. Step size: select positive integers to construct the step sizes of . Additionally, choose a non-negative integer as a step size of in such a way that , where represents the number of elements in . Detuning level: fix some posive integer to find the detuning level allowed for the triads. Bound: select a positive integer L such that for This condition is imposed in order to bound the components of the triad wave vectors. Furthermore, choose an integer t to find , where gives the nearest integer when is divided by t. The reason for choosing such a t is to generate key-dependent S-boxes and the integer r is used to diffuse the components of triads. A prime: select a prime such that as a secret key for computing nonzero to generate an S-box on the . The S-box construction technique is made clear in Algorithm 1, and the S-box generated for and by Algorithm 1 is shown in Table 1. Furthermore, the cryptographic properties of the said S-box are evaluated in Section 4.1 and Section 4.2.
Table 1

The obtained S-box .

2201181715825138331962472521522613517723283
16170107186137236211421311035458217181201172
918422389291561361469991641713518876139
153161982273210115122184612082252131069456
16540245189163239193194129175241141130231215127
15119910522148391791737824881237555146109
195251178170162206228169147282102218012120277
9741973126154145444782436011725088191
678174931201285321823796723656253
1501011198716013310857416451491852432249
16750205183971144827246254124921913415995
24224111621161682008679143126112457112513
52161872227113238362045214046240852074
15210423519024268632032301761805915724466212
3490120030166372553811021123311155209219
1921214473182132982144210218149123229100234
The positive integers and p are secret keys. Here it is mentioned that the parameters and L are used to generate triads in a box of size L. The generation of triads is explained step by step in Algorithm 2. These triads along with keys and t are used to generate the sequence of pseudo-random numbers. Thus represents the j-th triad in ordered set . Moreover, are the components of . In Algorithm 3, the generation of is interpreted. The proposed sequence is cryptographically a good source of pseudo-randomness because triads are highly sensitive to the auxiliary parameters [33] and inverse detuning level . It is shown in [32] that the intricate structure of clusters formed by triads depends on the chosen , and the size of the clusters increases as the inverse detuning level increases. Moreover, the generation of triads is rapid due to the absence of modular operation. C. Performing diffusion. To change the statistical properties of an input image, a diffusion process is performed. While performing the diffusion, the pixel values are changed using the sequence . Let denote the diffused image for a plain image P. The proposed scheme alters the pixels of P according to: D. Performing confusion. A nonlinear function causes confusion in a cryptosystem, and nonlinear components are necessary for a secure data encryption scheme. The current scheme uses the dynamic S-boxes to produce the confusion in an encrypted image. If stands for the encrypted image of P, then confusion is performed as follows: If The computation of all possible values of and in Algorithm 2 takes time. Similarly the time complexity for generating is but executes times. Thus the time required by and hence by is . Additionally, Algorithm 1 shows that the proposed S-box can be constructed in time. Thus the time complexity of the proposed scheme is max. □ In order to have a clear picture of the proposed cryptosystem, we explain the whole procedure using the following hypothetical We have and and the values of other parameters are described in Section 4.3. The corresponding 16 triads are obtained by Algorithm 2 as shown in Table 4.
Table 4

The corresponding set for image P.

Δj k1 l1 k2 l2 k3 l3 Δj k1 l1 k2 l2 k3 l3
Δ1 −1128115215296684011820 Δ9 −1240126716817354412002
Δ2 −1142116715486764061843 Δ10 −1254128217007434462025
Δ3 −1156118115676854111866 Δ11 −1268129617197514512047
Δ4 −1170119515866944161889 Δ12 −1282131017387604562070
Δ5 −1184121016057014211911 Δ13 −1296132517577684612093
Δ6 −1198122416247104261934 Δ14 −1310133917767764662115
Δ7 −1212123816437194311957 Δ15 −1325135317967854712138
Δ8 −1226125316627264361979 Δ16 −1339136818157934762161
From and , it follows that and hence by application of Algorithm 3 the terms of are listed in Table 5. Moreover, the S-box is constructed by Algorithm 1, giving the mapping , which maps the list to the list .
Table 5

Pseudo-random sequence for plain image

βT*(2,2589)(1)=188 βT*(2,2589)(5)=126 βT*(2,2589)(9)=65 βT*(2,2589)(13)=3
βT*(2,2589)(2)=108 βT*(2,2589)(6)=47 βT*(2,2589)(10)=241 βT*(2,2589)(14)=180
βT*(2,2589)(3)=29 βT*(2,2589)(7)=224 βT*(2,2589)(11)=162 βT*(2,2589)(15)=115
βT*(2,2589)(4)=206 βT*(2,2589)(8)=144 βT*(2,2589)(12)=83 βT*(2,2589)(16)=35
Hence by the respective application of Equation (13) and the S-box , the pixel values of diffused image and encrypted image are shown in Table 6 and Table 7, respectively.
Table 6

Diffused image

9432227166
1420914787
1911306822
11051243194
Table 7

Encrypted image

7623125419
1945416165
067162209
15169341

3.3. Decryption

In our scheme the decryption process can take place by reversing the operations of the encryption process. One should know the inverse S-box and the pseudo-random numbers . Assume the situation when the secret keys , and p are transmitted by a secure channel, so that the set is obtained using keys and L, and hence the S-box and the pseudo-random numbers can be computed by and p. Finally, the receiver gets the original image P by applying the following equations:

4. Security Analysis

In this section the cryptographic strength of both the S-box construction technique and encryption scheme are analyzed in detail.

4.1. Evaluation of the Designed S-Box

An S-box with good cryptographic properties ensures the quality of an encryption technique. Generally, some standard tests such as nonlinearity (NL), linear approximation probability (LAP), strict avalanche criterion (SAC), bit independence criterion (BIC) and differential approximation probability (DAP) are used to evaluate the cryptographic strength of an S-box. The NL [43] and the LAP [44] are outstanding features of an S-box, used to measure the resistance against linear attacks. The NL measures the level of nonlinearity and the LAP finds the maximum imbalance value of an S-box. The optimal value of the nonlinearity is 112. A low value of LAP corresponds to a high resistance. The minimum NL and the LAP values for the displayed S-box are 106 and , respectively. This ensures that the proposed S-box is immune to linear attacks. Webster and Tavares [45] developed the concepts of the SAC and the BIC, which are used to find the confusion and diffusion creation potential of an S-box. In other words, the SAC criterion measures the change in output bits when an input bit is altered. Similarly, the BIC criterion explores the correlation in output bits when change in a single input bit occurs. The average values of the SAC and the BIC for the constructed S-box are and , respectively, which are close to the optimal value . Thus, both tests are satisfied by the suggested S-box. The DAP [46] is another important feature used to analyze the capability of an S-box against differential attacks. The lowest value of DAP for an S-box implies the highest security to the differential attacks. Our DAP result is , which is good enough to resist differential cryptanalysts.

4.2. Performance Comparison of the S-Box Generation Algorithm

After performing the rigorous analyses, the S-box constructed by the current algorithm is compared with some cryptographically strong S-boxes developed by recent schemes, as shown in Table 8.
Table 8

Comparison table of the proposed S-box .

S-BoxesNLLAPSACBICDAP
(min)(avg)(max)(min)(avg)(max)
Ours1060.14843750.3906250.495117190.6093750.472656250.498883930.525390630.0234375
Ref. [31]1040.14843750.421900-0.60940.4629-0.54300.0469
Ref. [47]1040.13281250.406250.497558590.6250.466796880.502232140.52343750.0234375
Ref. [48]1010.1406250.4218750.496337890.5781250.466796880.493791850.519531250.03125
Ref. [49]1040.1406250.4218750.503906250.593750.47656250.505859380.53906250.0234375
Ref. [50]1000.1406250.406250.500976560.6093750.447265630.506347660.533203130.03125
Ref. [51]1060.1406250.3906250.494140630.6093750.470703130.501325330.533203130.0234375
Ref. [52]1020.1406250.4218750.498046880.6406250.47656250.507463730.533203130.0234375
Ref. [53]1040.03910.3906-0.62500.4707-0.531250.0391
Ref. [54]1040.05470000.40180.49460.57810.46679690.49888390.53320310.0391
Ref. [55]1080.13280.406250.49853520.593750.464843750.50202290.527343750.0234375
From Table 8 it follows that the NL of is greater than the S-boxes in [31,47,48,49,50,52,53,54], equal to that of [51] and less than the S-box developed in [55], which indicates that is highly nonlinear in comparison to the S-boxes in [31,47,48,49,50,52,53,54]. Additionally, the LAP of is comparable to all the S-boxes in Table 8. The SAC (average) value of is greater than the S-boxes in [51,54], and the SAC (max) value is less than or equal to the S-boxes in [31,47,50,51,52,53]. Similarly the BIC (min) value of is closer to the optimal value than that of [31,47,48,50,51,53,54,55], and the BIC (max) value of the new S-box is better than that of the S-boxes in [31,49,50,51,52,53,54,55]. Thus the confusion/diffusion creation capability of is better than [31,50,51,52,53,55]. The DAP value of our suggested S-box is lower than the DAP of the S-boxes presented in [31,48,50,53,54] and equal to that of [47,49,51,52,55]. Thus from the above discussion it follows that the newly designed S-box shows high resistance to linear as well as differential attacks.

4.3. Evaluation of the Proposed Encryption Technique

In this section the current scheme is implemented on all gray images of the USC-SIPI Image Database [56]. The USC-SIPI database contains images of size , m = 256,512,1024. Furthermore, some security analyses that are explained one by one in the associated subsections are presented. To validate the quality of the proposed scheme, the experimental results are compared with some other encryption schemes. The parameters used for the experiments are and for m = 256,512,1024, respectively; = 90,000 and varies for each P. The experiments were performed using Matlab R2016a on a personal computer with a GHz Processor and 6 GB RAM. All encrypted images of the database along with histograms are available at [57]. Some plain images, House, Stream, Boat and Male and their cipher images are displayed in Figure 1.
Figure 1

(a–d) Plain images House, Stream, Boat and Male; (e–h) cipher images of the plain images (a–d), respectively.

4.3.1. Statistical Attack

A cryptosystem is said to be secure if it has high resistance against statistical attacks. The strength of resistance against statistical attacks is measured by entropy, correlation and histogram tests. All of these tests are applied to evaluate the performance of the discussed scheme. Histogram. A histogram is a graphical way to display the frequency distribution of pixel values of an image. A secure cryptosystem generates cipher images with uniform histograms. The histograms of the encrypted images using the proposed method are available at [57]. However, the respective histograms for the images in Figure 1 are shown in Figure 2. The histograms of the encrypted images are almost uniform. Moreover, the histogram of an encrypted image is totally different from that of the respective plain image, so that it does not allow useful information to the adversaries, and the proposed algorithm can resist any statistical attack.
Figure 2

(a–d) Histograms of Figure 1a–d; (e–h) histograms of Figure 1e–h.

Entropy. Entropy is a standout feature to measure the disorder. Let I be a source of information over a set of symbols N. Then the entropy of I is defined by: where is the probability of occurrence of symbol The ideal value of is , if all symbols of N occur in I with the same probability. Thus, an image I emanating 256 gray levels is highly random if is close to 8 (notice, however, that this definition of entropy does not take into account pixel correlations). The entropy results for all images encrypted by the suggested technique are shown in Figure 3, where the minimum, average and maximum values are and , respectively. These results are close to 8, and hence the developed mechanism is secure against entropy attacks.
Figure 3

(a–c) The horizontal, diagonal and vertical correlations among pixels of each image in USC-SIPI database; (d) the entropy of each image in USC-SIPI database.

Pixel correlation. A meaningful image has strong correlation among the adjacent pixels. In fact, a good cryptosystem has the ability to break the pixel correlation and bring it close to zero. For any two gray values x and y, the pixel correlation can be computed as: where and denote expectation and variance of x, respectively. The range of is to 1. The gray values x and y are in low correlation if is close to zero. As the pixels may be adjacent in horizontal, diagonal and vertical directions, the correlation coefficients of all encrypted images along all three directions are shown in Figure 3, where the respective ranges of are [, ], [,] and [,]. These results show that the presented method is capable of reducing the pixel correlation near to zero. In addition, 2000 pairs of adjacent pixels of the plain image and cipher image of Lena are randomly selected. Then correlation distributions of the adjacent pixels in all three directions are shown in Figure 4, which reveals the strong pixel correlation in the plain image but a weak pixel correlation in the cipher image generated by the current scheme.
Figure 4

(b–d) The distribution of pixels of the plane image (a) in the horizontal, diagonal and vertical directions; (f–h) the distribution of pixels of the cipher image (e) in the horizontal, diagonal and vertical directions.

4.3.2. Differential Attack

In differential attacks the opponents try to get the secret keys by studying the relation between the plain image and cipher image. Normally attackers encrypt two images by applying a small change to these images, then compare the properties of the corresponding cipher images. If a minor change in the original image can cause a significant change in the encrypted image, then the cryptosystem has a high security level. The two tests NPCR (number of pixels change rate) and UACI (unified average changing intensity) are usually used to describe the security level against differential attacks. For two plain images P and different at only one pixel value, let and be the cipher images of P and , respectively, then NPCR and UACI are calculated as: where if and otherwise. The expected values of NPCR and UACI for 8-bit images are and , respectively [13]. We applied the above two tests to each image of the database by randomly changing the pixel value of each image. The experimental results are shown in Figure 5, giving average values of NPCR and UACI of and , respectively. It follows from the obtained results that our scheme is capable of resisting a differential attack.
Figure 5

(a,b) The NPCR and UACI results for each image in the USC-SIPI database; (c) First 256 pseudo-random numbers and (d) two S-boxes generated for Lena512×512 with a small change in an input key t.

4.3.3. Key Analysis

For a secure cryptosystem it is essential to perform well against key attacks. A cryptosystem is highly secure against key attacks if it has key sensitivity and large key space and strongly opposes the known-plaintext/chosen-plaintext attack. The proposed scheme is analyzed against key attacks as follows. Key sensitivity. Attackers usually use slightly different keys to encrypt a plain image and then compare the obtained cipher image with the original cipher image to get the actual keys. Thus, high key sensitivity is essential for higher security. That is, cipher images of a plain image generated by two slightly different keys should be entirely different. The difference of the cipher images is quantified by Equations (19) and (20). In experiments we encrypted the whole database by changing only one key, while other keys remain unchanged. The key sensitivity results are shown in Table 9, where the average values of NPCR and UACI are and , respectively, which specify the remarkable difference in the cipher images. Moreover, our cryptosytem is based on the pseudo-random numbers and S-boxes. The sensitivity of pseudo-random numbers sequences and and S-boxes and for Lena is shown in Figure 5.
Table 9

Difference between two encrypted images when key is changed to . NPCR: number of pixels change rate; UACI: unified average changing intensity.

ImageNPCR(%)UACI(%)ImageNPCR(%)UACI(%)ImageNPCR(%)UACI(%)
Female99.6233.39House99.6233.23Couple99.5633.30
Tree99.5933.35Beans99.6433.23Splash99.6033.97
Key space. In order to resist a brute force attack, key space should be sufficiently large. For any cryptosystem, key space represents the set of all possible keys required for the encryption process. Generally, the size of the key space should be greater than In the present scheme the parameters and p are used as secret keys, and we store each of them in 28 bits. Thus the key space of the proposed cryptosystem is which is larger than and hence capable to resist a brute force attack. Known-plaintext/chosen-plaintext attack. In a known-plaintext attack, the attacker has partial knowledge about the plain image and cipher image, and tries to break the cryptosystem, while in a chosen-plaintext attack the attacker encrypts an arbitrary image to get the encryption keys. An all-white/black image is usually encrypted to test the performance of a scheme against these powerful attacks [29,58]. We analyzed our scheme by encrypting an all-white/black image of size . The results are shown in Figure 6 and Table 10, revealing that the encrypted images are significantly randomized. Thus the proposed system is capable of preventing the above mentioned attacks.
Figure 6

(a) All-white; (b) all-black; (c,d) cipher images of (a,b); (e,f) histograms of (c,d).

Table 10

Security analysis of all-white/black encrypted images by the proposed encryption technique.

Plain ImageEntropyCorrelation of Plain ImageNPCR (%)UACI (%)
Hori.Diag.Ver.
All-white7.99690.00270.0020−0.009099.6033.45
All-black7.9969−0.00800.00350.005799.6233.41

4.4. Comparison and Discussion

Apart from security analyses, the proposed scheme is compared with some well-known image encryption techniques. The gray scale images of Lena and Lena are encrypted using the presented method, and experimental results are listed in Table 11.
Table 11

Comparison of the proposed encryption scheme with several existing cryptosystems for image Lena, m = 256,512.

Size mAlgorithmEntropyCorrelationNPCR (%)UACI(%)#Dynamic
Hori.Diag.Ver.S-BoxesS-Boxes
256 Ours 7.99740.0001−0.0007−0.000199.9133.271Yes
Ref. [31]7.99930.00120.00030.001099.6033.501Yes
Ref. [3]7.9973---99.5033.300-
Ref. [27]7.90460.0164−0.00980.032498.9232.79>1<50Yes
Ref. [26]7.9963−0.0048−0.0045−0.011299.6233.708Yes
Ref. [59]7.9912−0.00010.00910.008910033.470-
Ref. [60]7.99740.00200.00200.010599.5933.520-
512 Ours 7.99930.00010.00420.002199.6133.361Yes
Ref. [25]7.99920.00750.00160.005799.6133.381No
Ref. [29]7.9993−0.00040.0001−0.001899.6033.481No
-Ref. [61]7.9970−0.00290.01350.012699.6033.480-
Ref. [62]7.99940.0018−0.00120.001199.6233.44>1Yes
Ref. [2]7.99930.00320.0011−0.000299.6033.47>1Yes
It is deduced that our scheme generates cipher images with comparable security. Furthermore, we remark that the scheme in [29] generates pseudo-random numbers using group law on EC, while the proposed method generates pseudo-random numbers by constructing triads using auxiliary parameters of elliptic surfaces. Group law consists of many operations, which makes the pseudo-random number generation process slower than the one we present here. The scheme in [26] decomposes an image to eight blocks and uses dynamic S-boxes for encryption purposes. The computation of multiple S-boxes takes more time than computing only one S-box. Similarly the techniques in [2,27] use a set of S-boxes and encrypt an image in blocks, while our newly developed scheme encrypts the whole image using only one dynamic S-box. Thus, our scheme is faster than the schemes in [2,27]. The security system in [61] uses a chaotic system to encrypt blocks of an image. The results in Table 11 reveal that our proposed system is cryptographically stronger than the scheme in [61]. The algorithms in [3,59] combine chaotic systems and different ECs to encrypt images. It follows from Table 11 that the security level of our scheme is comparable to that of the schemes in [3,59]. The technique in [60] uses double chaos along with DNA coding to get good results, as shown in Table 11, but the results obtained by the new scheme are better than that of [60]. Similarly the technique in [31] encrypts images using ECs but does not guarantee an S-box for each set of input parameters, thus making our scheme faster and more robust than the scheme developed in [31]. Furthermore, the following facts put our scheme in a favorable position: Our scheme uses a dynamic S-box for each input image while the S-box used in [29] is a static one, which is vulnerable [63] and less secure than a dynamic one [64]. The presented scheme guarantees an S-box for each image, which is not the case in [31]. To get random numbers, the described scheme generates triads for all images of the same size, while in [31] the computation of an EC for each input image is necessary, which is time consuming. The scheme in [26] uses eight dynamic S-boxes for a plain image, while the current scheme uses only one dynamic S-box for each image to get the desired cryptographic security.

5. Conclusions

An image encryption scheme based on quasi-resonant triads and MECs was introduced. The proposed technique constructs triads to generate pseudo-random numbers and computes an MEC to construct an S-box for each input image. The pseudo-random numbers and S-box are then used for altering and scrambling the pixels of the plain image, respectively. As for the advantages of our proposed method, firstly triads are based on auxiliary parameters of elliptic surfaces, and thus pseudo-random numbers and S-boxes generated by our method are highly sensitive to the plain image, which prevents adversaries from initiating any successful attack. Secondly, generation of triads using auxiliary parameters of elliptic surfaces consumes less time than computing points on ECs (we find a 4x speed increase for a range of image resolutions ), which makes the new encryption system relatively faster. Thirdly, our algorithm generates the cipher images with an appropriate security level. In summary, all of the above analyses imply that the presented scheme is able to resist all attacks. It has high encryption efficiency and less time complexity than some of the existing techniques. In the future, the current scheme will be further optimized by means of new ideas to construct the S-boxes using the constructed triads, so that we will not need to compute an MEC for each input image.
Table 2

Plain image P.

162162162163
162162162163
162162162163
160163160159
Table 3

Linear ordering of image P.

P(1) P(5) P(9) P(13)
P(2) P(6) P(10) P(14)
P(3) P(7) P(11) P(15)
P(4) P(8) P(12) P(16)
  2 in total

1.  Compressive optical image encryption.

Authors:  Jun Li; Jiao Sheng Li; Yang Yang Pan; Rong Li
Journal:  Sci Rep       Date:  2015-05-20       Impact factor: 4.379

2.  Novel image encryption based on quantum walks.

Authors:  Yu-Guang Yang; Qing-Xiang Pan; Si-Jia Sun; Peng Xu
Journal:  Sci Rep       Date:  2015-01-14       Impact factor: 4.379

  2 in total
  1 in total

1.  A Novel Image Encryption Scheme Based on Elliptic Curves over Finite Rings.

Authors:  Umar Hayat; Ikram Ullah; Naveed Ahmed Azam; Sumaira Azhar
Journal:  Entropy (Basel)       Date:  2022-04-19       Impact factor: 2.738

  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.