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.
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.
Lemma 1.
If T denotes the set of Δs in a box of size L, then ≲ is a total order on T.
Proof.
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:
- (1)
- Three sets: choose three sets of consecutive numbers with unknown step sizes, where the end points are rational numbers.
- (2)
- 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.
- (1)
- 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 .
- (2)
- Detuning level: fix some posive integer to find the detuning level allowed for the triads.
- (3)
- 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.
- (4)
- 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 .
| Algorithm 1: Construction of S-box. |
![]() |
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.
| Algorithm 2: Generating quasi-resonant triads. |
![]() |
Thus represents the j-th triad in ordered set . Moreover, are the components of . In Algorithm 3, the generation of is interpreted.
| Algorithm 3: Generating the proposed pseudo-random sequence. |
| Input: An ordered set , an integer t and a plain image P. |
| Output: Random numbers sequence . |
| 1 ; |
| 2 ; |
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:
Lemma 2.
If and p is a prime chosen for the generation of an S-box, then the time complexity of the proposed encryption scheme is max.
Proof.
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. □
Example 1.
In order to have a clear picture of the proposed cryptosystem, we explain the whole procedure using the following hypothetical image. For example, let I represent the plain image of Lena, and let P be the subimage of I consisting of the intersection of the first four rows and the first four columns of I as shown in Table 2, whereas the column-wise linearly ordered image P is shown in Table 3.
Table 2.
Plain image P.
Table 3.
Linear ordering of image P.
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.
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
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
Table 7.
Encrypted image
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 .
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.
- (1)
- 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.
- (2)
- 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. - (3)
- 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.
- (1)
- 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. - (2)
- 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.
- (3)
- 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.
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.
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:
- (i)
- 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].
- (ii)
- The presented scheme guarantees an S-box for each image, which is not the case in [31].
- (iii)
- 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.
- (iv)
- 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.
Author Contributions
All authors contributed equally to this work. All authors have read and agree to the published version of the manuscript.
Funding
This research is funded through the HEC project NRPU-7433.
Acknowledgments
We thank Gene Kopp for useful comments and suggestions.
Conflicts of Interest
The authors declare no conflict of interest. The funding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.
Abbreviations
The following abbreviations are used in this manuscript:
| MEC | Mordell elliptic curve |
| S-box | Substitution box |
| EC | Elliptic curves |
References
- Mahmud, M.; Lee, M.; Choi, J.Y. Evolutionary-Based Image Encryption using RNA Codons Truth Table. Optics Laser Technol. 2020, 121, 105818. [Google Scholar] [CrossRef]
- Zhang, X.; Mao, Y.; Zhao, Z. An Efficient Chaotic Image Encryption Based on Alternate Circular S-boxes. Nonlinear Dyn. 2014, 78, 359–369. [Google Scholar] [CrossRef]
- El-Latif, A.A.A.; Niu, X. A Hybrid Chaotic System and Cyclic Elliptic Curve for Image Encryption. AEU-Int. J. Electron. Commun. 2013, 67, 136–143. [Google Scholar] [CrossRef]
- Yang, Y.G.; Pan, Q.X.; Sun, S.J.; Xu, P. Novel Image Encryption Based on Quantum Walks. Sci. Rep. 2015, 5, 1–9. [Google Scholar] [CrossRef] [PubMed]
- Zhong, H.; Chen, X.; Tian, Q. An Improved Reversible Image Transformation using K-Means Clustering and Block Patching. Information 2019, 10, 17. [Google Scholar] [CrossRef]
- Li, C.; Lin, D.; Lü, J. Cryptanalyzing an Image-Scrambling Encryption Algorithm of Pixel Bits. IEEE MultiMedia 2017, 24, 64–71. [Google Scholar] [CrossRef]
- Hua, Z.; Yi, S.; Zhou, Y. Medical Image Encryption using High-Speed Scrambling and Pixel Adaptive Diffusion. Signal Process. 2018, 144, 134–144. [Google Scholar] [CrossRef]
- Xie, E.Y.; Li, C.; Yu, S.; Lü, J. On the Cryptanalysis of Fridrich’s Chaotic Image Encryption Scheme. Signal Process. 2017, 132, 150–154. [Google Scholar] [CrossRef]
- Azam, N.A. A Novel Fuzzy Encryption Technique Based on Multiple Right Translated AES Gray S-Boxes and Phase Embedding. Secur. Commun. Netw. 2017, 2017, 5790189. [Google Scholar] [CrossRef]
- Luo, Y.; Tang, S.; Qin, X.; Cao, L.; Jiang, F.; Liu, J. A Double-Image Encryption Scheme Based on Amplitude-Phase Encoding and Discrete Complex Random Transformation. IEEE Access 2018, 6, 77740–77753. [Google Scholar] [CrossRef]
- Li, J.; Li, J.S.; Pan, Y.Y.; Li, R. Compressive Optical Image Encryption. Sci. Rep. 2015, 5, 10374. [Google Scholar] [CrossRef] [PubMed]
- Hua, Z.; Xu, B.; Jin, F.; Huang, H. Image Encryption using Josephus Problem and Filtering Diffusion. IEEE Access 2019, 7, 8660–8674. [Google Scholar] [CrossRef]
- Wu, J.; Cao, X.; Liu, X.; Ma, L.; Xiong, J. Image Encryption using the Random FrDCT and the Chaos-Based Game of Life. J. Modern Opt. 2019, 66, 764–775. [Google Scholar] [CrossRef]
- Yousaf, A.; Alolaiyan, H.; Ahmad, M.; Dilbar, N.; Razaq, A. Comparison of Pre and Post-Action of a Finite Abelian Group Over Certain Nonlinear Schemes. IEEE Access 2020, 8, 39781–39792. [Google Scholar] [CrossRef]
- Ismail, S.M.; Said, L.A.; Radwan, A.G.; Madian, A.H.; Abu-ElYazeed, M.F. A Novel Image Encryption System Merging Fractional-Order Edge Detection and Generalized Chaotic Maps. Signal Process. 2020, 167, 107280. [Google Scholar] [CrossRef]
- Tang, Z.; Yang, Y.; Xu, S.; Yu, C.; Zhang, X. Image Encryption with Double Spiral Scans and Chaotic Maps. Secur. Commun. Netw. 2019, 2019, 8694678. [Google Scholar] [CrossRef]
- Abdelfatah, R.I. Secure Image Transmission using Chaotic-Enhanced Elliptic Curve Cryptography. IEEE Access 2019, 8, 3875–3890. [Google Scholar] [CrossRef]
- Yu, J.; Guo, S.; Song, X.; Xie, Y.; Wang, E. Image Parallel Encryption Technology Based on Sequence Generator and Chaotic Measurement Matrix. Entropy 2020, 22, 76. [Google Scholar] [CrossRef]
- Zhu, S.; Zhu, C.; Wang, W. A Novel Image Compression-Encryption Scheme Based on Chaos and Compression Sensing. IEEE Access 2018, 6, 67095–67107. [Google Scholar] [CrossRef]
- ElKamchouchi, D.H.; Mohamed, H.G.; Moussa, K.H. A Bijective Image Encryption System Based on Hybrid Chaotic Map Diffusion and DNA Confusion. Entropy 2020, 22, 180. [Google Scholar] [CrossRef]
- Zhou, Y.; Bao, L.; Chen, C.P. Image Encryption using a New Parametric Switching Chaotic System. Signal Process. 2013, 93, 3039–3052. [Google Scholar] [CrossRef]
- Hua, Z.; Zhou, Y.; Huang, H. Cosine-Transform-Based Chaotic System for Image Encryption. Inf. Sci. 2019, 480, 403–419. [Google Scholar] [CrossRef]
- Xu, Y.; Wang, H.; Li, Y.; Pei, B. Image Encryption Based on Synchronization of Fractional Chaotic Systems. Commun. Nonlinear Sci. Numer. Simul. 2014, 19, 3735–3744. [Google Scholar] [CrossRef]
- Ahmad, M.; Shamsi, U.; Khan, I.R. An Enhanced Image Encryption Algorithm using Fractional Chaotic Systems. Procedia Comput. Sci. 2015, 57, 852–859. [Google Scholar] [CrossRef]
- Cheng, P.; Yang, H.; Wei, P.; Zhang, W. A Fast Image Encryption Algorithm Based on Chaotic Map and Lookup Table. Nonlinear Dyn. 2015, 79, 2121–2131. [Google Scholar] [CrossRef]
- Belazi, A.; El-Latif, A.A.A.; Belghith, S. A Novel Image Encryption Scheme Based on Substitution-Permutation Network and Chaos. Signal Process. 2016, 128, 155–170. [Google Scholar] [CrossRef]
- Rehman, A.U.; Khan, J.S.; Ahmad, J.; Hwang, S.O. A New Image Encryption Scheme Based on Dynamic S-boxes and Chaotic Maps. 3D Res. 2016, 7, 7. [Google Scholar] [CrossRef]
- Jia, N.; Liu, S.; Ding, Q.; Wu, S.; Pan, X. A New Method of Encryption Algorithm Based on Chaos and ECC. J. Inf. Hiding Multimedia Signal Process. 2016, 7, 637–643. [Google Scholar]
- Toughi, S.; Fathi, M.H.; Sekhavat, Y.A. An Image Encryption Scheme Based on Elliptic Curve Pseudo Random and Advanced Encryption System. Signal Process. 2017, 141, 217–227. [Google Scholar] [CrossRef]
- Liu, H.; Liu, Y. Cryptanalyzing an Image Encryption Scheme Based on Hybrid Chaotic System and Cyclic Elliptic Curve. Opt. Laser Technol. 2014, 56, 15–19. [Google Scholar] [CrossRef]
- Hayat, U.; Azam, N.A. A Novel Image Encryption Scheme Based on an Elliptic Curve. Signal Process. 2019, 155, 391–402. [Google Scholar] [CrossRef]
- Bustamante, M.D.; Hayat, U. Complete Classification of Discrete Resonant Rossby/Drift Wave Triads on Periodic Domains. Commun. Nonlinear Sci. Numer Simul. 2013, 18, 2402–2419. [Google Scholar] [CrossRef][Green Version]
- Hayat, U.; Amanullah, S.; Walsh, S.; Abdullah, M.; Bustamante, M.D. Discrete Resonant Rossby/Drift Wave Triads: Explicit Parameterisations and a Fast Direct Numerical Search Algorithm. Commun. Nonlinear Sci. Numer. Simul. 2019, 79, 104896. [Google Scholar] [CrossRef]
- Azam, N.A.; Hayat, U.; Ullah, I. An Injective S-Box Design Scheme over an Ordered Isomorphic Elliptic Curve and Its Characterization. Secur. Commun. Netw. 2018, 2018, 3421725. [Google Scholar] [CrossRef]
- Charney, J.G. On the scale of atmospheric motions. Geophys. Public 1948, 17, 3–17. [Google Scholar]
- Hasegawa, A.; Mima, K. Pseudo-three-dimensional turbulence in magnetized nonuniform plasma. Phys. Fluids 1978, 21, 87–92. [Google Scholar] [CrossRef]
- Connaughton, C.P.; Nadiga, B.T.; Nazarenko, S.V.; Quinn, B.E. Modulational instability of Rossby and drift waves and generation of zonal jets. J. Fluid Mech. 2010, 654, 207–231. [Google Scholar] [CrossRef]
- Harris, J.; Connaughton, C.; Bustamante, M.D. Percolation Transition in the Kinematics of Nonlinear Resonance Broadening in Charney–Hasegawa–Mima Model of Rossby Wave Turbulence. New J. Phys. 2013, 15, 083011. [Google Scholar] [CrossRef][Green Version]
- Galperin, B.; Read, P.L. (Eds.) Zonal Jets: Phenomenology, Genesis, and Physics; Cambridge University Press: Cambridge, UK, 2019. [Google Scholar]
- Kopp, G.S. The Arithmetic Geometry of Resonant Rossby Wave Triads. SIAM J. Appl. Algebra Geomet. 2017, 1, 352–373. [Google Scholar] [CrossRef]
- Washington, L.C. Elliptic Curves Number Theory and Cryptography, Discrete Mathematics and Its Applications, 2nd ed.; Chapman and Hall/CRC, University of Maryland College Park: College Park, MD, USA, 2003. [Google Scholar]
- Azam, N.A.; Hayat, U.; Ullah, I. Efficient Construction of S-boxes Based on a Mordell Elliptic Curve Over a Finite Field. Front. Inf. Technol. Electron. Eng. 2019, 20, 1378–1389. [Google Scholar] [CrossRef]
- Adams, C.; Tavares, S. The Structured Design of Cryptographically Good S-boxes. J. Cryptol. 1990, 3, 27–41. [Google Scholar] [CrossRef]
- Matsui, M. Linear cryptanalysis method of DES cipher. In Advances in Cryptology, Proceedings of the Workshop on the Theory and Application of of Cryptographic Techniques (EURO-CRYPT-93), Lofthus, Norway, 23–27 May 1993; Springer: Berlin/Heidelberg, Germany, 1994; pp. 386–397. [Google Scholar]
- Webster, A.; Tavares, S.E. On the design of S-boxes. In Conference on the Theory and Application of Cryptographic Techniques; Springer: Berlin/Heidelberg, Germany, 1985; pp. 523–534. [Google Scholar]
- Biham, E.; Shamir, A. Differential Cryptanalysis of DES-like Cryptosystems. J. Cryptol. 1991, 4, 3–72. [Google Scholar] [CrossRef]
- Ye, T.; Zhimao, L. Chaotic S-box: Six-Dimensional Fractional Lorenz–Duffing Chaotic System and O-shaped Path Scrambling. Nonlinear Dyn. 2018, 94, 2115–2126. [Google Scholar] [CrossRef]
- Özkaynak, F.; Çelik, V.; Özer, A.B. A New S-box Construction Method Based on the Fractional-Order Chaotic Chen System. Signal Image Video Process. 2017, 11, 659–664. [Google Scholar] [CrossRef]
- Çavuşoğlu, Ü.; Zengin, A.; Pehlivan, I.; Kaçar, S. A Novel Approach for Strong S-Box Generation Algorithm Design Based on Chaotic Scaled Zhongtang System. Nonlinear Dyn. 2017, 87, 1081–1094. [Google Scholar] [CrossRef]
- Belazi, A.; El-Latif, A.A.A. A Simple yet Efficient S-box Method Based on Chaotic Sine Map. Optik 2017, 130, 1438–1444. [Google Scholar] [CrossRef]
- Özkaynak, F. Construction of robust substitution boxes based on chaotic systems. Neural Comput. Appl. 2019, 31, 3317–3326. [Google Scholar] [CrossRef]
- Liu, L.; Zhang, Y.; Wang, X. A Novel Method for Constructing the S-box Based on Spatiotemporal Chaotic Dynamics. Appl. Sci. 2018, 8, 2650. [Google Scholar] [CrossRef]
- Hayat, U.; Azam, N.A.; Asif, M. A Method of Generating 8 × 8 Substitution Boxes Based on Elliptic Curves. Wirel. Pers. Commun. 2018, 101, 439–451. [Google Scholar] [CrossRef]
- Wang, X.; Çavuşoğlu, Ü.; Kacar, S.; Akgul, A.; Pham, V.T.; Jafari, S.; Alsaadi, F.E.; Nguyen, X.Q. S-box Based Image Encryption Application using a Chaotic System without Equilibrium. Appl. Sci. 2019, 9, 781. [Google Scholar] [CrossRef]
- Alzaidi, A.A.; Ahmad, M.; Ahmed, H.S.; Solami, E.A. Sine-Cosine Optimization-Based Bijective Substitution-Boxes Construction using Enhanced Dynamics of Chaotic Map. Complexity 2018, 2018, 9389065. [Google Scholar] [CrossRef]
- USC-SIPI Image Database. Available online: http://sipi.usc.edu/database/database.php (accessed on 21 February 2020).
- Available online: https://github.com/ikram702314/Results (accessed on 15 April 2020).
- Wang, X.; Zhao, H.; Hou, Y.; Luo, C.; Zhang, Y.; Wang, C. Chaotic Image Encryption Algorithm Based on Pseudo-Random Bit Sequence and DNA Plane. Modern Phys. Lett. B 2019, 33, 1950263. [Google Scholar] [CrossRef]
- Wu, J.; Liao, X.; Yang, B. Color Image Encryption Based on Chaotic Systems and Elliptic Curve ElGamal Scheme. Signal Process. 2017, 141, 109–124. [Google Scholar] [CrossRef]
- Wan, Y.; Gu, S.; Du, B. A New Image Encryption Algorithm Based on Composite Chaos and Hyperchaos Combined with DNA Coding. Entropy 2020, 22, 171. [Google Scholar] [CrossRef]
- Tong, X.J.; Zhang, M.; Wang, Z.; Ma, J. A Joint Color Image Encryption and Compression Scheme Based on Hyper-Chaotic System. Nonlinear Dyn. 2016, 84, 2333–2356. [Google Scholar] [CrossRef]
- Zhang, Y.; Xiao, D. An Image Encryption Scheme Based on Rotation Matrix Bit-Level Permutation and Block Diffusion. Commun. Nonlinear Sci. Numer. Simul. 2014, 19, 74–82. [Google Scholar] [CrossRef]
- Rosenthal, J. A Polynomial Description of the Rijndael Advanced Encryption Standard. J. Algebra. Its Appl. 2003, 2, 223–236. [Google Scholar] [CrossRef]
- Kazlauskas, K.; Kazlauskas, J. Key-Dependent S-box Generation in AES Block Cipher system. Informatica 2009, 20, 23–34. [Google Scholar]
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).

