Literature DB >> 27730020

A highly nonlinear S-box based on a fractional linear transformation.

Shabieh Farwa1, Tariq Shah2, Lubna Idrees1.   

Abstract

We study the structure of an S-box based on a fractional linear transformation applied on the Galois field [Formula: see text]. The algorithm followed is very simple and yields an S-box with a very high ability to create confusion in the data. The cryptographic strength of the new S-box is critically analyzed by studying the properties of S-box such as nonlinearity, strict avalanche, bit independence, linear approximation probability and differential approximation probability. We also apply majority logic criterion to determine the effectiveness of our proposed S-box in image encryption applications.

Entities:  

Keywords:  Fractional linear transformation; Galois field; Majority logic criterion; S-box

Year:  2016        PMID: 27730020      PMCID: PMC5037109          DOI: 10.1186/s40064-016-3298-7

Source DB:  PubMed          Journal:  Springerplus        ISSN: 2193-1801


Background

The advanced encryption standard (AES) (Daemen and Rijmen 2002) is based on the substitution permutation network (SPN) which applies several layers of substitution and permutation. In any SPN, substitution followed by permutation is performed certain number of times to encrypt the plaintext into ciphertext in order to assure secure communication (Daemen and Rijmen 2002). The choice of a substitution box (S-box) (Shannon 1949) is the most sensitive step in determining the strength of a cryptosystem against several attacks. It is therefore essential to understand the design and properties of an S-box for encryption applications (Detombe and Tavares 1992). The improved quality of the S-Box to enhance the confusion creating capability in certain SPN has been a challenge for researchers. In literature many algorithms for algebraically complex and cryptographically strong S-boxes, such as AES, APA, Gray, Skipjack, Xyi and Residue Prime (RP) S-boxes, are available. For the interest of readers we give a brief description of these structures. The AES S-box is based on the composition of inversion map and the affine transformation. It is a non-Feistel cipher. The algebraic expression of AES S-box is simple and involves only nine items (Daemen and Rijmen 2002). The structure of APA S-box uses composition of affine surjection, power function and again affine surjection. This design improves the algebraic complexity from 9 to 253 as compared to the AES S-box (Cui and Cao 2007). The Gray S-box is obtained from the AES S-box with an additional transform based on binary Gray codes. It inherits all the important cryptographic properties of AES S-box with an increased security against attacks (Tran et al. 2008). Skipjack is a Feistel network based on 32 rounds. This algorithm uses an 80-bit key to encrypt or decrypt 64-bit data blocks. The S-box based on Skipjack algorithm is also known as Skipjack F-table (Kim and Phan 2009). The XYi S-box is a mini version of a block cipher with block size of 8 bits. It has increased efficiency in computer applications (Shi et al. 2002). The Residue Prime S-box uses the field of residues of a prime number as an alternative to the Galois field based S-boxes (Abuelyman and Alsehibani 2008). These widely used S-boxes play the role of benchmarks in the field of cryptography. Among these, AES, APA and Gray S-boxes attain the highest nonlinearity measure 112. The S-box algorithm proposed in this framework produces high nonlinearity effect as achieved by the top S-boxes AES, APA and Gray, however, unlike these S-boxes, our S-box is structured by employing a single direct map rather the composition of two or more maps which makes this algorithm more efficient and economic in both software and hardware applications. It is highly desired property for a cryptographically strong S-box to show good resistance towards linear and differential cryptanalysis (Biham and Shamir 1991; Matsui 1998). For a Boolean function f, the linear cryptanalysis is based on finding affine approximation to the action of a cipher (Nyberg 1993). Recently some efficient models are studied for S-boxes based on fractional linear transformations (Hussain et al. 2011, 2013a, b). S-box being the only nonlinear component in block cipher always requires high nonlinearity effect (Carlet and Ding 2004, 2007; Nyberg 1992, 1993). Motivated by some recently presented designs, we in this paper propose an algorithm to structure an S-box using fractional linear transformation applied on the Galois field which produces very high nonlinearity measure. We further analyse the properties of the new S-box by different commonly used tests such as nonlinearity, strict avalanche criterion (SAC), bit independent criterion (BIC), linear and differential approximation probability tests (LAPT, DAPT). We then compare the results with those for the famous S-boxes and observe that our new S-box, based on a simple and straightforward algorithm, produces coherent results. The material presented in this paper is organized as follows. In “Algorithm for S-box” section we explain in detail the construction and major properties of the underlying Galois field . We further discuss some interesting features of the fractional linear transformation and describe how this transformation is applied on the Galois field to structure the new S-box. “Analyses of S-box” section deals with the analysis of S-box against several common attacks and compares the cryptographic potential of our proposed S-box with other S-boxes such as AES, APA, Gray, Skipjack, Xyi and Residue Prime. In “Statistical analyses of S-box” section we perform some statistical analysis based on the image encryption application of the S-box and in “Conclusion” section we present conclusion regarding the significance of the new S-box when critically observed in comparison with the previously known models.

Algorithm for S-box

This section mainly deals with the structure of our S-box. Before we discuss the constituent algorithm, we need to go through some fundamental facts. A function is called a Boolean function. We define a vectorial Boolean function aswhere and each of ’s for is a Boolean function referred to as coordinate Boolean function. An S-box is precisely defined as a vectorial Boolean function . At this stage, it seems quite practical to understand the structural properties of the Galois field used to construct an S-box. Generally for any prime p, Galois field is given by the factor ring where is an irreducible polynomial of degree n. For an S-box, we use . In advanced encryption standards (AES), the construction of is based on the degree 8 irreducible polynomial . In Hussain et al. (2013b), is used as the generating polynomial. Here we choose as the irreducible polynomial that generates the maximal ideal of the principal ideal domain . It is important to note that we may choose any degree 8 irreducible polynomial for constructing however the choice of generating polynomial may affect our calculations as the binary operations are carried modulo the used polynomial (see Benvenuto 2012 for details). Generally the construction of an S-box requires a nonlinear bijective map. In literature many algorithms based on such maps or their compositions are presented to synthesize cryptographically strong S-boxes. We present the construction of S-box based on an invertible nonlinear map known as the fractional linear transformation. It is a function of the form generally defined on the complex plain such that a, b, c and satisfy the non-degeneracy condition . The set of these transformations forms a group under the composition. The identity element in this group is the identity map and the the inverse of is assured by the condition . One can easily observe that the algebraic expression of this map has a combined effect of inversion, dilation, rotation and translation. The nonlinearity and algebraic complexity of the fractional linear transformation motivates the idea to employ this map for byte substitution. For the proposed S-box we apply fractional linear transformation g on the Galois field discussed above, i.e. given by , where and such that and t varies from 0 to . We may choose any values for parameters a, b, c and d that satisfy the condition . Here, for calculations, we take and . One may observe that as we are working on a finite field, g(t) needs to be explicitly defined at (at which denominator vanishes), so in order to keep g bijective we may define the transformation as given below;Following the binary operations defined on the Galois field (Benvenuto 2012), we calculate the images of g as shown in Table 1. Thus the images of the above defined transformation yield the elements of the proposed S-box (see Table 2).
Table 1

Images of g

\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t \in {\mathbb {Z}}_{2^{8}}$$\end{document}tZ28 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t\in GF(2^{8})$$\end{document}tGF(28) g(t)
000000000124
10000000118
...
...
...
25511111111138
Table 2

S-box

1241815477321699811179111212588321096
2272531411942355111912237206233156725351
1847202391022216621019297226271224879149
69591962201321099416823484151081205214214
2590151205930261712174116722419721198
1301742311611991537661441702462214323229219
61229191242195951372251577539119449810487
1158956110160423124916922214611245238136247
5413920083646126218121165105165835135164
20723022436312321480685518311410720862163
25214511625013204127228187113498615983152244
18019357173133128150304019025524023715585175
1624713450602818617733202176197020924178
71382124820117212914321518818114715865101100
25117918220314022366254642345189172131314
732111677478148236185922418210311810634138
Images of g S-box It is important to mention that an S-box has 8 constituent Boolean functions. A Boolean function f is balanced if and have same cardinality or the Hamming weight HW. The significance of the balance property is that the higher the magnitude of a function’s imbalance, the more likelihood of a high probability linear approximation being obtained. Thus, the imbalance makes a Boolean function weak in terms of linear cryptanalysis. Furthermore, a function with a large imbalance can easily be approximated by a constant function. All the Boolean functions , involved in the S-box as shown in Table 2 satisfy the balance property. Hence, the proposed S-box is balanced. It might be of interest that in order to choose feasible parameters leading to balanced S-boxes satisfying all other desirable properties (as discussed in the next section), one can use constraint programming, a problem solving strategy which characterises the problem as a set of constraints over a set of variables (Kellen 2014; Ramamoorthy et al. 2011). An S-box is used to convert the plain data into the encrypted data, it is therefore essential to investigate the comparative performance of the S-box. We, in the next section, analyse the newly designed S-box through various indices to establish the forte of our proposed S-box.

Analyses of S-box

For the assessment of the cryptographic strength of our S-box, in this section, we apply some widely used analysis techniques such as nonlinearity, bit independence, strict avalanche, linear and differential approximation probabilities etc. In the following subsections we present all these performance indices one by one.

Nonlinearity

The nonlinearity indicator counts the number of bits which must be altered in the truth table of a Boolean function to approach the nearest affine function. Table 3 shows that for the newly designed S-box, the average nonlinearity measure is 112. Figure 1 shows that when we compare this with different famous S-boxes, the nonlinearity of the proposed S-box is similar to that of the top S-boxes such as AES, APA and Gray and much higher then that of the Skipjack, Xyi and Residue Prime S-boxes.
Table 3

Performance Indices for new S-box

AnalysisMax.Min.AverageSquare deviationThe differential approximation probabilityThe linear approximation probability
Nonlinearity112112 112
SAC0.56250.453125 0.510254 0.0165278
BIC112 112 0
DP 0.015625
LP144 0.0625

Italic values are used for comparison purposes

Fig. 1

Nonlinearity of different S-boxes

Nonlinearity of different S-boxes Performance Indices for new S-box Italic values are used for comparison purposes Comparison of performance indices for different S-boxes Italic values are used for comparison purposes

Linear approximation probability

The linear approximation probability determines the maximum value of imbalance in the event. Let and be the input and output masks respectively and X consists of all possible inputs with cardinality , the linear approximation probability for a given S-box is defined as;Table 4 and Fig. 2 show that the linear approximation probability of the newly structured S-box is much better than those for Skipjack, Xyi and Residue prime S-boxes.
Table 4

Comparison of performance indices for different S-boxes

S-boxNonlinearitySACBICDPLP
AES1120.5058112.00.01560.062
APA1120.4987112.00.01560.062
Gray1120.5058112.00.01560.062
Skipjack105.70.4980104.10.04680.109
Xyi1050.5048103.70.04680.156
RP99.50.5012101.70.28100.132
New 112 0.510254 112 0.015625 0.0625

Italic values are used for comparison purposes

Fig. 2

LP of different S-boxes

LP of different S-boxes

Differential approximation probability

The differential approximation probability is defined as;where and are input and output differentials respectively. In ideal conditions, the S-box shows differential uniformity (Biham and Shamir 1991). The smaller the differential uniformity, the stronger is the S-box. It is evident from the Table 4 and Fig. 3 that the differential approximation probability of the proposed S-box is similar to those of the AES, APA and Gray S-boxes and much better than the Skipjack, Xyi and Residue Prime S-boxes.
Fig. 3

DP of different S-boxes

DP of different S-boxes

Strict avalanche criterion

For any cryptographic design, when we change the input bits, the performance of the output bits is examined by this criterion. It is desired that a change in a single input bit must cause changes in half of the output bits. In other words a function is said to satisfy SAC if for a change in an input bit the probability of change in the output bit is 1/2. It is clear from the results shown in Table 4 and Fig. 4 that our S-box satisfies the requirements of this criterion.
Fig. 4

SAC of different S-boxes

SAC of different S-boxes

Bit independence criterion

The criterion of bit independence, introduced by Webster and Tavares (1986), is used to analyse the behaviour of bit patterns at the output and the effects of these changes in the subsequent rounds of encryption (Tran et al. 2008). For any vector Boolean function , and with , inverting input bit i causes output bits j and k to change independently. In cryptographic systems it is highly desired to increase independence between bits as it makes harder to understand and forecast the design of the system. The numerical results of BIC are given in Table 4 and are compared in Fig. 5. It can be observed that according to these results our S-box is quite similar to the AES, APA and Gray S-boxes.
Fig. 5

BIC of different S-boxes

BIC of different S-boxes Comparison of MLC for new S-box and different S-boxes Italic values are used for comparison purposes

Statistical analyses of S-box

In this section we present some useful statistical analysis of the new and some famous S-boxes. We apply the majority logic criterion (Hussain et al. 2012) in order to determine the effectiveness of the proposed S-box in image encryption applications. Due to the expeditious developments in the area of digital image processing, it is quite challenging to protect the digital information against different attacks. In the last few years many efficient algorithm have been presented by the researchers regarding secure image encryption schemes (Bao and Zhou 2015; Gao and Chen 2008; Murguia et al. 2012; Ramirez-Torres et al. 2014; Vargas-Olmos et al. 2015, 2016). During the image encryption process distortions occur and the strength of the encryption algorithm used is characterized by the type of these distortions. We examine this by using various parameters generated by different statistical analysis regarding entropy, contrast, correlation, energy and homogeneity respectively. We begin with the entropy analysis which is used to measure the randomness in a system. This characterizes the texture of image. Some other analyses (as named above) are also applied in combination with the entropy analysis to enhance the authenticity of the results regarding the performance of an S-box. Contrast analysis measures the ability to identify objects in an image. To ensure strong encryption an elevated level of contrast is required. Correlation analysis is used to analyze the statistical properties of an S-box. By this analysis we determine the similarity between the pixels patterns of the plain and the encrypted images. Energy analysis determines the measure of the energy of an encrypted image when processed by various S-boxes. This measure gives the sum of squared elements in GLCM. The homogeneity analysis is used to determine the closeness of the elements distribution in the grey level co-occurrence matrix (GLCM) to GLCM diagonal. It is worth mentioning that a strong encryption algorithm requires a small measure of correlation, energy and homogeneity however high value of entropy and contrast. Results for encryption using new S-box in different noisy environments Results for encryption using AES S-box in different noisy environments Lena’s plain image and its encryption using New S-box. a Plain image. b Encrypted Image Histogram of the images in Fig. 6. a Plain image. b Encrypted Image
Fig. 6

Lena’s plain image and its encryption using New S-box. a Plain image. b Encrypted Image

Figure 6 shows the plain image of Lena and its encryption using the new S-box. It is quite obvious from the visual results that our method of encryption creates acceptable level of confusion. For an image, its histogram graphically represents image-pixels distribution by plotting the number of pixels at each intensity level (Ramirez-Torres et al. 2014). It has been established that the histogram of the original and the encrypted image should be significantly different so that attackers could not extract the original image from the encrypted one. Figure 7 shows the respective histograms of Lena’s plain image and its encrypted version. The histogram analysis evidently proves the stability of our proposed method against any histogram based attacks.
Fig. 7

Histogram of the images in Fig. 6. a Plain image. b Encrypted Image

In order to determine the quantitative measure of the efficiency of the proposed method in image encryption, MLC is applied on a typical image of Lena for the new S-box and results are compared with the other famous S-boxes. The numerical results for correlation, entropy, contrast, homogeneity and energy are arranged in Table 5. It is observed that the proposed S-box satisfies all the criteria to be used for the safe communication.
Table 5

Comparison of MLC for new S-box and different S-boxes

ImagesEntropyContrastCorrelationEnergyHomog.
Plain image7.44510.21000.94440.14550.9084
AES7.25317.55090.05540.02020.4662
APA7.22648.11950.14730.01830.4676
Gray7.23017.52830.05860.02030.4623
Skipjack7.22147.70580.10250.01930.4689
Xyi7.22078.31080.04170.01960.4533
RP7.20357.62360.08550.02020.4640
New 7.2415 7.4568 0.0785 0.0223 0.4731

Italic values are used for comparison purposes

Noise-effected images. a , b , c Encryption with the proposed S-box in noisy environments. a Encryption of Fig. 8a. b Encryption of Fig. 8b. c Encryption of Fig. 8c
Fig. 8

Noise-effected images. a , b , c

Encryption with the AES S-box in noisy environments. a Encryption of Fig. 8a. b Encryption of Fig. 8b. c Encryption of Fig. 8c We may further test the performance of the proposed method in noisy environments. For this purpose, we consider as a bounded rectangular grid. Let and be the true and noisy images, respectively, such thatwhere u(i) and are the intensities of gray level and n(i) is an independent and identically different Gaussian random noise with zero mean and variance at pixel . The continuous image is interpreted as the Shannon interpolation of the discrete grid of samples v(i) over . The goal here is to test the performance of method on noisy imageV in order to analyse the behaviour of proposed method in comparison with its test on the true image U. For this purpose three different noise levels with , 50 and 75 are considered in Fig. 8 to test the significant application of the proposed algorithm. It can be observed that in case of noisy environment slight variations occur in visual quality and quantitative results as shown in Fig. 9 and Table 6. One can see that the entropy level of noise corrupted pixels is decreasing with increase in the level of Gaussian random noise. It shows most of the pixels are adopting similar grey levels in random data instead of particular arrangement of pixels in the original image. The contrast level also decreases with increasing noise level. Similarly changes in other parameters can be observed. The comparative analysis performed by applying AES S-box at the same noise levels is also shown in Table 7 and Fig. 10. One can observe that, with the increase in noise, the visual and numerical results obtained by the newly designed S-box are better or at least pretty similar to the recent state-of-the-art AES S-box (Daemen and Rijmen 2002).
Fig. 9

Encryption with the proposed S-box in noisy environments. a Encryption of Fig. 8a. b Encryption of Fig. 8b. c Encryption of Fig. 8c

Table 6

Results for encryption using new S-box in different noisy environments

ImagesEntropyContrastCorrelationEnergyHomog.
Plain image7.44510.21000.94440.14550.9084
Encryption at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sigma =25$$\end{document}σ=25 7.19367.39740.00680.01530.3934
Encryption at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sigma =50$$\end{document}σ=50 7.15457.28510.00430.01610.3992
Encryption at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sigma =75$$\end{document}σ=75 7.12696.50290.00150.01800.4133
Table 7

Results for encryption using AES S-box in different noisy environments

ImagesEntropyContrastCorrelationEnergyHomog.
Encryption at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sigma =25$$\end{document}σ=25 7.14387.44170.00470.01590.3921
Encryption at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sigma =50$$\end{document}σ=50 7.07057.31040.00330.01620.3933
Encryption at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sigma =75$$\end{document}σ=75 7.04757.1240.00170.01780.4023
Fig. 10

Encryption with the AES S-box in noisy environments. a Encryption of Fig. 8a. b Encryption of Fig. 8b. c Encryption of Fig. 8c

Based on the experimental results regarding the overall performance of our proposed algorithm, it is demonstrated that the newly synthesized S-box satisfies all the criteria of acceptability to be used for secure communication.

Conclusion

In this work we propose an S-box structured by an extremely simple and direct algorithm. Its strength is analyzed by several tests and it is self-evident that its confusion creating capability is quite high as compared to some other very famous S-boxes. The algebraic complexity based on the fractional linear transformation produces ideal results that make this S-box authentic and more reliable.
  4 in total

1.  A novel systematic byte substitution method to design strong bijective substitution box (S-box) using piece-wise-linear chaotic map.

Authors:  Asim Ali; Muhammad Asif Khan; Ramesh Kumar Ayyasamy; Muhammad Wasif
Journal:  PeerJ Comput Sci       Date:  2022-05-11

2.  A highly nonlinear substitution-box (S-box) design using action of modular group on a projective line over a finite field.

Authors:  Nasir Siddiqui; Fahim Yousaf; Fiza Murtaza; Muhammad Ehatisham-Ul-Haq; M Usman Ashraf; Ahmed M Alghamdi; Ahmed S Alfakeeh
Journal:  PLoS One       Date:  2020-11-12       Impact factor: 3.240

3.  A Novel Construction of Efficient Substitution-Boxes Using Cubic Fractional Transformation.

Authors:  Amjad Hussain Zahid; Muhammad Junaid Arshad; Musheer Ahmad
Journal:  Entropy (Basel)       Date:  2019-03-05       Impact factor: 2.524

4.  A novel encryption scheme for high-contrast image data in the Fresnelet domain.

Authors:  Nargis Bibi; Shabieh Farwa; Nazeer Muhammad; Adnan Jahngir; Muhammad Usman
Journal:  PLoS One       Date:  2018-04-02       Impact factor: 3.240

  4 in total

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