Next Article in Journal
Disease Spread among Hunted and Retaliating Herding Prey
Next Article in Special Issue
Tangled Cord of FTTM4
Previous Article in Journal
Proposed Model of a Dynamic Investment Portfolio with an Adaptive Strategy
Previous Article in Special Issue
Peeling Sequences
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enumerating Discrete Resonant Rossby/Drift Wave Triads and Their Application in Information Security

1
Department of Mathematics, Quaid-i-Azam University, Islamabad 45320, Pakistan
2
Department of Applied Mathematics and Physics, Graduate School of Informatics, Kyoto University, Kyoto 606-8503, Japan
3
School of Mathematics and Statistics, University College Dublin, Belfield, Dublin 4, Ireland
*
Author to whom correspondence should be addressed.
Submission received: 16 September 2022 / Revised: 14 November 2022 / Accepted: 16 November 2022 / Published: 22 November 2022
(This article belongs to the Special Issue Research and Applications of Discrete Mathematics)

Abstract

:
We propose a new parametrization of the resonant Rossby/drift wave triads to develop an algorithm to enumerate all resonant triads in a given grid of wavenumbers. To arrive at such a parametrization, we have employed tools from arithmetic/algebraic geometry to project resonant triads on a certain class of conics. Further, we extend the newly developed algorithm for the enumeration of quasi-resonant triads and experimentally show that the said algorithm is robust to design the network of quasi-resonances. From the experimental results, we observed that the new algorithm enumerates all triads in low computation time when compared with the existing methods. Finally, we apply this work to information security by constructing a total order on the enumerated resonant triads to design a substitution box (S-box) generator. Via extensive analyses over several indicators (nonlinearity, algebraic complexity, linear and differential approximation probabilities, strict avalanche criteria, and bit independence criterion) we show that the newly developed S-box outperforms the S-boxes constructed by most of the existing schemes.

1. Introduction

This paper combines our recent results from two seemingly unrelated scientific areas: geophysical waves on the one hand [1,2,3,4], and information security on the other hand [5,6,7,8], to produce an interdisciplinary application, whereby a calculation of exact discrete wave resonances in a geophysical system leads to the solution of a number-theory problem, which in turn we use to develop an algorithm to construct a cryptographically robust substitution box (S-box) generator.
Below we present brief reviews of the geophysical aspects (Section 1.1) and of the information security aspects (Section 1.2), then we summarize the contributions of this paper (Section 1.3), and finally we provide a plan for the remaining sections.

1.1. A Brief Review of Rossby/Drift Wave Triads

Nonlinear wave resonances play an important role in a variety of systems, ranging from fusion reactors to weather prediction to water waves. The review by Horton and Hasegawa [9] presents, with historical and scientific perspectives, the analogy between Rossby waves (pertaining to atmospheric and oceanic physics) and drift waves (pertaining to plasma physics). For simplicity, we will restrict our discussion to the atmospheric side. Resonant and quasi-resonant Rossby/drift wave triads play a vital role in atmospheric dynamics [10,11]. Petoukhov et al. [12] linked Rossby waves with several extreme weather phenomena via quasi-resonances. Coumou et al. [13] explored a connection between Rossby waves and global warming. The enumeration of all resonant Rossby wave triads is a practical problem and recently has gained great importance. In [14,15], generic algorithms were used to enumerate resonant Rossby wave triads in a given box. Bustamante and Hayat used elliptic surfaces to classify resonant and quasi-resonant triads [1]. Kopp [16] used methods from projective geometry to obtain almost all resonant triads in a box of wavenumber size 5000.
A Rossby wave [12,13,17,18,19,20,21,22,23,24] will be defined in this paper as a parametrized solution of the linearized form of the Charney–Hasegawa–Mima equation (CHME) [1], a partial differential equation that expresses the conservation of potential vorticity [25]. In other words, a Rossby wave represents a plane-wave solution of the linearized version of CHME. There are many such solutions to the linearized CHME, and these are important for the study of resonances. Mathematically, in the context of the CHME with periodic boundary conditions, a Rossby/drift wave is determined by a wavevector k Z 2 . The first component of this vector represents the number of peaks of the wave along the zonal direction, and the second component represents the number of peaks along the meridional direction. In a special case, the nonlinear interaction of two waves of different wavevectors enumerates a third wave with a new wavevector, thus forming a ‘triad’ of wavevectors such that the interaction of any two waves in the triad produces the third one. In such a case, the nonlinear interaction is limited to only three waves under the constraint that no further waves may be produced. Such a triple of waves is known as a resonant triad.
The equations determining a resonant triad in CHME are Diophantine equations, namely, equations for integers. Solutions to these equations are of importance in reduced models of atmosphere and plasmas, as they give the wavevectors involved in three-wave interactions. The enumeration of all resonant triads is a practical problem. Over several centuries, classical methods were developed by Fermat, Euler, Lagrange, and Minkowski to classify solutions to some Diophantine equations [26], but the CHME resonant triads lead to new Diophantine equations whose analytical and computational enumeration problem has received great attention. Bustamante and Hayat [1] proposed a new method to enumerate numerically all resonant triads. The newly developed method relies on the transformation of the wavevectors to a new set of variables, converting the Diophantine equations for CHME resonant triads into a simpler set of equations, solvable by Fermat’s Xmas theorem. They extended the algorithm to include the enumeration of quasi-resonant triads, and the extended method was found practical. Kopp [16] provided a new parametrization to the resonant triads and found almost all the resonant triads in a box of wavenumber size 5000 using his parametrization. Subsequently, Hayat et al. [4] explicitly parametrized the resonant wavevectors by two rational parameters and proposed a new method of cubic complexity to enumerate all irreducible triads in a specific region.

1.2. A Brief Review of Substitution Box

Transfer of useful information via internet is usual in today’s modern life. In cryptography, a substitution box (or S-box) is a nonlinear vectorial Boolean function with m input and n output bits. Here, m and n are two positive integers. For data encryption, mainly two techniques are used: block cipher and stream cipher [27]. A block cipher encrypts data in blocks of fixed length, whereas in a stream cipher one bit is encrypted in one go. In a block cipher, an S-box is used as a fundamental nonlinear part to achieve a higher level of confusion in the data [28]. Furthermore, the security of the S-box dependent cryptosystems mainly relies on the strength of the S-box.
Using various mathematical methods, many S-box generators have been developed in recent years [7,29,30] for possible applications in image encryption algorithms using S-boxes as nonlinear components [31,32]. Cryptographers are widely using chaotic maps to develop new algorithms for S-box generation [32,33,34,35,36,37,38,39]. Optimization techniques are adopted to design highly nonlinear S-boxes in [40,41,42]. Other domains of mathematics, such as graph theory [43], cubic polynomial mappings [44], and linear trigonometric transformations [45], are also used for the construction of S-boxes. In [46], a new S-box construction algorithm is developed using chaotic maps, symmetric groups, and Mobius transformations to generate a highly secure S-box.
Elliptic curves are another important structure to construct secure S-boxes [6,47,48]. In [5], Azam et al. proposed an efficient S-box generator over elliptic curves to construct dynamic S-boxes. Saleh and Abbas [49] designed an S-box generator using the points over an elliptic curve to construct highly secure and key-dependent S-boxes. Ullah et al. [50] designed efficient S-boxes and pseudo-random number generators over elliptic curves. Hayat et al. [7] presented an S-box generation technique using an elliptic curve over a finite ring of integers. The designed S-boxes are further evaluated for the encryption of images. Recently, Murtaza et al. [51] introduced a dynamic S-box generator using elliptic curves and binary sequences to design robust and dynamic S-boxes for block ciphers.

1.3. Our Contributions

Motivated by the above work, we propose a new parametrization of the resonant triads to develop a new algorithm for the enumeration of all resonant triads in a specific box. The proposed work is capable of enumerating all triads with cubic time complexity. In addition, a new total order is defined using the proposed parametrization. The newly developed order and parametrization are employed to design a novel substitution box (S-box) generator.
Our main results are the following:
(1)
A new geometric parametrization with low time complexity to enumerate all resonant triads, our parametrization takes only 2 days to enumerate 472 irreducible triads in a grid of size 5000, whereas parametrization in [4] took 10.5 days on the same machine;
(2)
The new parametrization to triads enumerates 472 irreducible resonant triads in a grid of size 5000 when compared with the algorithm in [16], which enumerates 463 irreducible resonant triads;
(3)
An extended method to enumerate quasi-resonant triads as well;
(4)
As an application, we define a total order on the set of triads to develop an efficient S-box generator;
(5)
Our analysis shows that our generator is capable of constructing a cryptographically strong S-box.
The remaining parts of this paper are organized as follows: Section 2 explains the basic concepts of CHME. Section 3 discusses the new parametrization for the enumeration of triads. Section 4 contains the proposed ordering, S-box generator, and their detailed analyses. Section 5 presents the conclusion.

2. The Charney–Hasegawa–Mima Equation: Periodic Boundary Conditions and Arbitrary Aspect Ratio f

The discussion in this section is based on [1] and references therein. We consider the partial differential equation known as the barotropic vorticity equation in the β -plane approximation, also known as the Charney–Hasegawa–Mima equation (CHME):
t ( ψ F ψ ) + β ψ x 1 + [ ψ , ψ ] = 0 ,
where, in the atmospheric context, ψ : R 2 × [ 0 , T ) R is the streamfunction, β > 0 , F 0 are constants, and
ψ = 2 ψ x 1 2 + 2 ψ x 2 2 , [ A , B ] = A x 1 B x 2 A x 2 B x 1 .
The sum of the first and second term represent the linear part of (1); the last term [ ψ , ψ ] is the nonlinear part of (1). From here on, we consider the case of periodic boundary conditions ( x 1 , x 2 ) [ 0 , 2 π ) × [ 0 , 2 π f 1 ) , where f > 0 is the so-called aspect ratio. To begin with, we consider the case of unit aspect ratio, f = 1 . The general solution of (1) is not known, as it generically displays spatio-temporal chaos and turbulence. However, a number of particular exact solutions, known as Rossby waves, are available in the form of a family of cosine functions
ψ = ψ k , ( x 1 , x 2 , t ) = cos k x 1 + x 2 ω t ,
for the angular frequency
ω = ω ( k , ) = β k k 2 + 2 + F .
Notice that, for these solutions, both the linear part and the nonlinear part of (1) vanish independently. The vector ( k , ) is a wavevector, whereas the integers k and are known as the zonal and meridional wavenumbers, respectively.
When considering interacting Rossby waves with different wavevectors, nonlinear terms do not vanish. In fact, the dynamics leads to triad interactions, and in weakly nonlinear regimes an important role is played by the so-called resonant triads [52]. A resonant triad is a triple ( k 1 , 1 ) , ( k 2 , 2 ) , ( k 3 , 3 ) of Rossby waves satisfying the set of equations
k 2 = k 3 k 1 ,
2 = 3 1 ,
ω 2 = ω 3 ω 1 ,
for ω i = ω ( k i , i ) , i = 1 , 2 , 3 . If for a small positive number δ , condition (6) on angular frequencies in the above set of equations is replaced by
| ω 1 + ω 2 ω 3 | δ ,
then the aforesaid triple becomes a quasi-resonant triad, and the positive number δ is called a detuning level.
In the special case where F = 0 , the parameterized solutions for the resonant triads were first obtained in [1] and subsequently developed in [16], giving
k 1 k 3 = ( u 2 + t 2 ) ( u 2 + t 2 2 u ) / ( 1 2 u ) ,
3 k 3 = ( 2 u 1 ) u + ( u 2 + t 2 ) ( u 2 + t 2 2 u ) / ( 1 2 u ) t ,
1 k 3 = ( u 2 + t 2 ) ( 2 u 1 ) + ( u 2 + t 2 2 u ) u / ( 1 2 u ) t .
An independent and particular case is discussed in [53] as well. In [1], the resonant triad is explicitly transformed to a triple ( x , y , d ) with rational components as
k 1 k 3 = x y 2 + d 2 , 1 k 3 = x y 1 d y 2 + d 2 , 3 k 3 = d 1 y .
Then ( x , y , d ) Q 3 is inversely mapped to a triad via
x = k 3 ( k 1 2 + 1 2 ) k 1 ( k 3 2 + 3 2 ) , y = k 3 ( k 3 1 k 1 3 ) k 1 ( k 3 2 + 3 2 ) , d = k 3 ( k 3 k 1 + 1 3 ) k 1 ( k 3 2 + 3 2 ) .
Let us consider now the case of general aspect ratio f. It is enough to consider aspect ratios whose squares are rational, so we can write f = f 1 f 2 for rational f 1 and square-free integer f 2 . As shown in [1], in this case relations (1)–(7) hold true except for Equation (3), which must be replaced with
ω = ω ( k , ) = β k k 2 + f 2 2 .
For such a choice of f, the mappings analogous to Equation (11) take the form
k 1 k 3 = x f 2 y 2 + d 2 , 1 k 3 = x f 2 y 1 d f 2 y 2 + d 2 , 3 k 3 = d 1 f 2 y ,
with the inverse mappings as follows:
x = k 3 ( k 1 2 + f 2 1 2 ) k 1 ( k 3 2 + f 2 3 2 ) , y = k 3 ( k 3 1 k 1 3 ) k 1 ( k 3 2 + f 2 3 2 ) , d = k 3 ( k 3 k 1 + f 2 1 3 ) k 1 ( k 3 2 + f 2 3 2 ) .

3. New Parametrization of the Elliptic Surface of Resonant Discrete Rossby Wave Triads

In the notation of Section 2, the following equation of an elliptic surface was derived in [1] for resonant Rossby wave triads, namely those triads satisfying Equations (4)–(6):
f 2 y 2 = x 3 2 d x 2 + 2 d x d 2 ,
where x , y , and d are defined in Equation (15), and f is the aspect ratio of the system. We fix the variable x to equal some constant ξ . It is direct to see that the surface (16) can be rewritten as the following equation of an ellipse:
f 2 y 2 r 2 + ( d + a ) 2 r 2 = 1 ,
where a = ξ 2 ξ and r = ξ 4 ξ 3 + ξ 2 . Now transform (17) into a polar form by substituting
y = r f cos θ , d + a = r sin θ
for a parameter θ [ 0 , 2 π ) . In summary, we have
x = ξ , y = ξ 4 ξ 3 + ξ 2 f cos θ , d = ξ 4 ξ 3 + ξ 2 sin θ ξ 2 + ξ .
From (18) and (19), the inverse relation is obtained as
ξ = x , θ = tan 1 d + x 2 x f y .
Now using the transformation (19) and the fundamental identity cos 2 θ + sin 2 θ = 1 , we get
f 2 y 2 + d 2 = 2 ξ 4 3 ξ 3 + 2 ξ 2 2 ( ξ 2 ξ ) ξ 4 ξ 3 + ξ 2 sin θ .
Thus, using (14) and (19), we have the following three equations defining the triad wavenumbers in terms of the new parameters ξ and θ :
k 1 k 3 = 1 2 ξ 3 3 ξ 2 + 2 ξ 2 ( ξ 1 ) ξ 4 ξ 3 + ξ 2 sin θ ,
1 k 3 = ξ f ξ 4 ξ 3 + ξ 2 cos θ 1 ξ 4 ξ 3 + ξ 2 sin θ ξ 2 + ξ 2 ξ 4 3 ξ 3 + 2 ξ 2 2 ( ξ 2 ξ ) ξ 4 ξ 3 + ξ 2 sin θ ,
3 k 3 = ξ 4 ξ 3 + ξ 2 sin θ ξ 2 + ξ 1 f ξ 4 ξ 3 + ξ 2 cos θ .
Now from (15) and (20), ξ and θ can be written as
ξ = k 3 ( k 1 2 + f 2 1 2 ) k 1 ( k 3 2 + f 2 3 2 ) ,
θ = tan 1 ( k 3 k 1 ) k 1 + ( 3 1 ) f 2 1 + k 3 ( k 1 2 + f 2 1 2 ) 2 k 1 ( k 3 2 + f 2 3 2 ) 1 f ( k 3 1 k 1 3 ) .
Hence, (22)–(24) and the inverse (25) and (26) represent the explicit parametrization of the resonant triad in terms of the parameters ξ and θ . Using this new parametrization, we enumerate all irreducible resonant triads in a specific box such that | k | , | | L . For this, choose two rational numbers a , b and an integer e to design a set of rational numbers a A b of size n with end points a , b such that a 1 = a , a n = b , and a i = a i 1 + h for h = b a e and 1 < i < n . Further, select a subset c B d [ 0 , 360 ] such that d = c + t g for some integer t and a rational number g. The step by step technique for the enumeration of resonant triads is explained in Algorithm 1.
Algorithm 1: Enumeration of resonant triads
  • Input: Two sets a A b , c B d , a box size L and an aspect ratio f.
  • Output: A set T of resonant triads.
  •       /* T is a set of resonant triads and initialized as an empty set. Furthermore, △ represents an arbitrary triad and k 1 , 3 , 1 are the right hand sides of (22)–(24), respectively. Moreover, · is an integer function.
  •        T : = ;
  •       for ξ a A b do
  •           for  θ c B d  do
  •               Compute k 1 , 3 and 1 for ξ , θ by using (22)–(24).
  •               for  k 3 [ 1 , L ]  do
  •                   k 1 : = k 1 · k 3 , 3 : = 3 · k 3 and 1 : = 1 · k 3 ;
  •                   k 2 : = k 3 k 1 , 2 : = 3 1 and ω i : = k i / ( k i 2 + f 2 i 2 ) , i : = 1 , 2 , 3 ;
  •                  if  ω 3 : = ω 2 + ω 1 and | k i | , | i | < L , i : = 1 , 2 , 3 ;  then
  •                       T : = T { } ;
  •           Output T as a set of triads.
We borrow an idea from physical considerations: to fully understand the dynamics of a system of Rossby waves, it is necessary to understand the behavior of quasi-resonant triads. Therefore, to further investigate the newly designed parametrization, we enumerate quasi-resonant triads using (4)–(6), where (6) is replaced by (7). In practice, we apply the same parametrization (22)–(24) but we approximate the output wavenumbers to numbers within a box of size L. This leads to a mismatch in the frequency resonance condition. The value of the newly introduced “detuning parameter” δ  from Equation (7) determines the number of quasi-resonant triads obtained. Our proposed parametrization directly computes the quasi-resonant triads. For this purpose, we select the parameters f = 1 , a = 1.025 , b = 1.204 , c = 0 , d = 360 , e = 716 , g = 0.0125 , L = 100 and several choices of δ : 2 × 10 7 , 4 × 10 7 , 8 × 10 7 , 2 × 10 6 , 4 × 10 6 , 8 × 10 6 , 2 × 10 5 . The wavevectors of the quasi-resonant triads enumerated for the chosen parameters are illustrated in Figure 1.
A bar graph analysis for all the computed unique and irreducible quasi-resonant triads is given in Figure 2.
It is evident from Figure 1 and Figure 2 that the proposed method is capable of enumerating a large number of triads by relaxing the condition on the angular frequencies. In Example 1, we explain how the designed algorithm maps a triad on the surface point and vice versa.
Example 1.
To map the triad on the surface and hence on the conic, let us choose the triad ( 1 , 11 ) , ( 8 , 34 ) , ( 9 , 23 ) , then calculate ξ = 9 5 and augmented angle θ = 180 + 1807 36 by (25) and (26), respectively. For ξ = 9 5 , we have a = 36 25 and r = 4941 25 . Hence from (19), it follows that x = 9 5 , y = 9 5 , and d = 18 5 . Now to map the surface point back to triad, take the point ( x , y , d ) = ( 9 5 , 9 5 , 18 5 ) on the elliptic surface, and by (20) we have ξ = 9 5 and augmented angle θ = 180 + 1807 36 , so that (11) gives that k 1 k 3 = 1 9 , 1 k 3 = 11 9 , 3 k 3 = 23 9 . From this, we can write that k 3 = 9 , k 1 = 1 , 1 = 11 , and 3 = 23 . Using these values, we compute k 2 = k 3 k 1 = 8 , 2 = 3 1 = 34 . Hence, we enumerate the same triad ( 1 , 11 ) , ( 8 , 34 ) , ( 9 , 23 ) .
It was verified in [4] using a brute-force method that there is a total of 472 irreducible resonant triads in a grid of size 5000. Previously, Kopp [16] introduced a fast parametrization to enumerate irreducible triads. Using this parametrization and a simple search, he could enumerate only 463 out of the 472 irreducible resonant triads in a grid of size 5000. For this reason, the authors in [4] developed another parametrization. This parametrization could enumerate all 472 irreducible resonant triads in a grid of size 5000, but it took 10.5 days to compute this on a 16-core-machine. To overcome the shortcomings of the aforementioned algorithms, in this paper we introduced parametrization (22)–(24) to irreducible triads. A major advantage of our parametrization over the existing ones is that we can enumerate all 472 irreducible resonant triads in a given grid of size 5000 in only 2 days on a 16-core-machine. Table 1 indicates that, for aspect ratio f = 1 , the new method to enumerate triads is more efficient than the existing algorithms.
For different values of aspect ratio f including the standard case ( f = 1 ), we have computed the number of irreducible resonant triads in a grid of size 100 using a brute-force method. The results are shown in Table 2. Notice that the case f = 3 gives an extremely large number of resonant triads.
The plot in Figure 3 contains the largest clusters that occur within a box of size L = 100 and aspect ratio f = 3 . We have excluded the repeated “mirrored” clusters. Also, we have excluded special triads with k 3 = 0 , | k 1 | = | k 2 | , because they are a kind of degenerate case from the viewpoint of the dynamical system. Remarkably, the Figure 3 shows resonant triads connected by two common modes, a feature that enhances the turbulent behaviour of the dynamical system [3]. The isolated triads provide roughly 50% of the overall number of resonant triads, and this fact holds true for increasing box sizes. However, within a specific box size, the distribution of cluster sizes is nontrivial.

4. An Application in Cryptography

To get the desired security in an S-box based cryptosystem, an S-box should be capable of creating enough confusion and diffusion. Total orders play an important role in achieving the aforementioned purpose. For example, Azam et al. [5] defined three different orderings on the points of elliptic curves to construct secure S- boxes. Similarly, quasi-resonant triads are ordered in [8] to develop an image encryption scheme. Motivated by [8], we develop a new ordering θ on resonant triads with respect to the new parametrization. Let △ and be two arbitrary triads (e.g.,  = ( k i , i ) and = ( k i , i ) for i = 1 , 2 , 3 ), then the ordering θ is defined by
θ either ξ < ξ , or ξ = ξ and θ θ .
We prove that θ is a total order.
Lemma 1.
If T represents the set of irreducible resonant triads, then θ is a total order on T .
Proof. 
We need to show that θ is reflexive, antisymmetric, and transitive. The reflexive property follows from the fact ξ = ξ and θ = θ always.
Now, suppose that θ and θ then ξ < ξ and ξ < ξ . Therefore, it can be concluded that θ θ and θ θ . Hence θ = θ . Consequently, from (22)–(24), it follows that
k 1 k 3 = k 1 k 3 , 3 k 3 = 3 k 3 , 1 k 3 = 1 k 3 ,
which is possible if k 1 = c 1 k 1 , k 3 = c 1 k 3 , 3 = c 2 3 , k 3 = c 2 k 3 , and 1 = c 3 1 , k 3 = c 3 k 3 for some integers c 1 , c 2 , and c 3 , but k 3 = c 1 k 3 = c 2 k 3 = c 3 k 3 implies that c 1 = c 2 = c 3 = c for some integer c. Moreover, 1 = c 1 and 3 = c 3 . From (4) and (5), it is evident that k 2 = k 3 k 1 and 2 = 3 1 , and it follows that k 2 = c k 2 and 2 = c 2 . That is, we have ( k i , i ) = ( c k i , c i ) for i = 1 , 2 , 3 . Thus = c , but all triads in T are irreducible. Thus c = 1 , and θ is antisymmetric.
For transitivity, let θ and θ . Then one possibility is ξ < ξ and ξ ξ , which implies that ξ < ξ . The second possibility is ξ = ξ and ξ < ξ , which also implies that ξ < ξ . The last case is ξ = ξ = ξ , which gives that θ θ θ and hence θ θ . Thus, in all possible cases, θ . Consequently, θ is transitive and hence a total order. □
Based on the ordering θ , an S-box generator is introduced in the following section.

4.1. The Proposed S-box Generator

Suppose we want to construct an S-box over the set [ 0 , 2 m 1 ] for some positive integer m. Consider the following steps:
Step 1.
Choose L as a grid size and generate two sets a A b and c B d as required by Algorithm 1 with the constraint that the parameters a , b , c , d , e , g , and t are chosen in such a way that we can enumerate exactly u = 2 m 6 triads.
Step 2.
After enumerating all u triads, take the absolute of all wavevectors. Then, arrange the triads using the ordering θ to obtain a matrix M u × 6 , where the ith row represents the ith triad.
Step 3.
Select an integer | Λ M | to apply the modulo operator on the matrix M in order to obtain the matrix M . Here, Λ M denotes the greatest value in M .
Step 4.
Neglect M ( i ) for i > 2 m , and define a mapping ϕ : [ 0 , 2 m 1 ] [ 0 , 2 m 1 ] such that ϕ ( n ) = i 1 , where i represents the index of the nth least value of M in linear ordering.
It is noted that if M ( i ) is the rth least value and M ( i ) = M ( j ) for i < j then M ( j ) is considered to be the ( r + 1 ) th least value of M . For parameters a = 1.0667 , b = 1.1248 , c = 14.92 , d = 254.70 , e = 581 , g = 23,978, f = 1 , L = 5000 , and = 859 , the S-box constructed by the proposed algorithm is shown in Table 3. The proposed algorithm is important in the sense that an S-box is guaranteed for each value of . Consequently, the total number of S-boxes for the chosen parameters is equal to the number of values of . The time complexity of the proposed S-box is given by the following:
Lemma 2.
Suppose that all the inputs L , a , b , c , d , e , g , f, m, and integer | Λ M | are known and the size of the set c B d is η. Then, the time complexity for the proposed S-box is O max ( n η L , 2 2 m ) .
Proof. 
For given inputs the enumeration of u triads the S-box generator needs O ( n η L ) time. Further, the arrangements of triads according to the ordering θ takes O ( u ) log ( u ) time. The time taken by the execution of nested two loops is O ( 2 2 m ) . As 2 2 m > ( u ) log ( u ) , therefore, the time complexity of the proposed S-box algorithm is O max { n η L , 2 2 m } . □

4.2. Security Analysis

To test the cryptographic strength of an S-box obtained by the new technique, several standard security tests are applied, and the results are compared with some well-known schemes. The analysis is given as follows.

4.2.1. Linear Attacks

Nonlinearity (NL): The idea of NL was first proposed in [54], which determines the ability of an S-box to create confusion and diffusion in a plaintext. For an 8 × 8 S-box σ over GF ( 2 8 ) , the NL is defined as
NL ( σ ) = min x , y , z { α GF ( 2 8 ) x · σ ( α ) y · α z } ,
where x GF ( 2 8 ) \ { 0 } , y GF ( 2 8 ) , z GF ( 2 ) , and operation “.” is an inner product over GF ( 2 ) . An S-box has high resistance against linear attacks if it has high NL. However, Meier and Staffelbach [55] demonstrated that an S-box with high NL may lack some other cryptographic features. Therefore, it is crucial to design an S-box that has the best NL and passes other security performance tests. The NLs of all component functions of the proposed S-box are given in Figure 4. The minimum NL of the proposed S-box is 106, which is sufficient to resist powerful linear attacks.
Algebraic complexity (AC): For an S-box, the concept of a linear polynomial was first proposed in [56]. The AC represents the number of non-zero terms in a linear polynomial of an S-box. An S-box can have a maximum AC value of 255. For the proposed S-box, the AC is 254, which is very near to the optimal value. This shows that the proposed S-box is very strong against algebraic attacks. In Table 4, the coefficients of the linear polynomial are shown.
Linear approximation probability (LAP): Mitsui [57] was the first to introduce the LAP test. The LAP is determined by the number of bits of plaintext and ciphertext that overlap. The formula that computes the LAP is
LAP ( σ ) = 1 2 8 max x , y | # { α GF ( 2 8 ) x · α = y · σ ( α ) } 2 7 |
where x GF ( 2 8 ) , y GF ( 2 8 ) \ { 0 } . An S-box has high resistance against linear attacks if it has low LAP. The proposed S-box has the LAP value 0.133, which is close to the optimal value and shows that the proposed S-box is secure against linear attacks.

4.2.2. Differential Attacks

Differential approximation probability (DAP): In 1991, the concept of the DAP was introduced in [58]. The DAP is used to test the resistance of an S-box against differential attacks. For an S-box σ of size 8 × 8 , the DAP is measured by
DAP ( σ ) = 1 2 8 max x , y # x GF ( 2 8 ) σ ( x ) σ ( x + x ) = y ,
where x GF ( 2 8 ) \ { 0 } , y GF ( 2 8 ) , and the operation ⊕ is bit-wise addition over GF ( 2 8 ) . Cryptographically, an S-box has high security against differential attacks if its DAP value is close to zero. The DAP of the proposed S-box is 0.039, which is very low. Consequently, the proposed S-box has high security against approximation attacks.

4.2.3. Analysis of Boolean Functions

Strict avalanche criteria (SAC): The SAC test [59] is a basic criterion to check the ability of an S-box to create diffusion in a plaintext. The SAC calculates the changing effect of output bits when a single input bit has been changed. The values for SAC of an 8 × 8 S-box σ is computed by matrix A( σ ) = [ m i j ] for
m i j = 1 2 8 x GF ( 2 8 ) w σ i ( x α j ) σ i ( x ) ,
where w ( y ) is the hamming weight of y GF ( 2 8 ) , σ i and σ k are ith and kth Boolean functions of σ , respectively, and 1 i , j , k 8 . The ideal value for SAC is 0.5 . If the calculated value is closer to 0.5, then it means that an S-box fulfills the SAC criterion. The dependence matrix of the proposed S-box is shown in Table 5, where the minimum and maximum values of the SAC are 0.422 and 0.578 , respectively. Based on these values, we can say that the proposed S-box meets the SAC criterion.
Bit independence criterion (BIC): The BIC test [59] is used to determine how independent a pair of output bits is when one input bit is inverted. The diffusion-creating ability of an S-box is also determined by the BIC criterion. It is found by computing the dependence matrix B ( σ ) = [ d i j ] , where d i j is calculated by
d i j = 1 2 8 x GF ( 2 8 ) 1 k 8 , k i w σ i ( x α j ) σ i ( x ) σ k ( x α j ) σ k ( x ) .
The requirement of the BIC analysis is that all values of d i j should be approximately equal to 0.5. It can be observed that each d i j ranges between 0.473 and 0.531 . This means that the S-box satisfies the BIC criterion. Furthermore, Table 6 indicates that the values of each element d i j of the correlation matrix of x i x j for all input x i GF ( 2 8 ) ( i j , where i , j = 1 , 2 , , 8 ) of the given S-box are all close to 0.5, which shows that the S-box meets the BIC. To determine the BIC results for NL, we could calculate NL for each output bit of ( x i x j ) for all input x i GF ( 2 8 ) , where i , j = 1 , 2 , , 8 . A bar chart of BIC-NL for the proposed S-box is shown in Figure 5, which reveals that the newly designed S-box satisfies the BIC criterion.

4.2.4. Alteration in S-boxes

To have a sufficient cryptographic strength, the S-box construction technique should be capable of constructing a number of variant S-boxes [5]. This is because many cryptosystems require more than one secure S-box. We took a fixed set of u triads enumerated by the parameters noted in Section 4.1. Since for each value of , an S-box is guaranteed, we picked all the corresponding S-boxes for 1319 randomly chosen values of and computed the NL of each S-box. We found that the total number of distinct S-boxes is 1256, which is 95 % of all the S-boxes. Further, the distribution of values of is shown in Figure 6a, and the behavior of the NL of the constructed S-boxes is illustrated by Figure 6b. More explicitly, the jth value in Figure 6b represents the minimum NL of the S-box generated by the randomly chosen jth value of the parameter in Figure 6a. The fluctuation in the NL values is evident from Figure 6b, which implies a variation in the associated S-boxes.
Furthermore, Figure 6b shows that the minimum NL for most of the S-boxes oscillates between 90 and 100. However, there exists a large number of S-boxes with NL greater than 100. Thus, the above arguments explain that the proposed method is not only capable of constructing a number of distinct S- boxes but also has the capability to construct highly nonlinear S-boxes.

4.3. Performance Comparison

In this part, we compare our newly designed S-box with some other S-boxes constructed by different methods, including chaotic maps and elliptic curves [5,6,7,31,33,34,35,36,37,38,39,40,41,42,43,44,47,48,60,61]. The NL comparison of the proposed S-box with other S-boxes in Table 7 shows that our S-box has better NL than the S-boxes in papers [31,33,34,35,36,37,38,39,40,41,42,43,44,48,60,61] and, consequently, it has better resistance and security against linear attacks as compared to the S-box with lower NL. The comparison reveals that the newly designed S-box has lower LAP than the S-boxes constructd by the methods [5,6,7,36,41,43,44,47,48]. Similarly, the DAP results of the proposed S-box is better than the DAP results of the S-boxes in [7,34,37,39,43,44,60]. Hence, our S-box is more secure against approximation attacks. The SAC values of the newly constructed S-box ranges from 0.421 to 0.578 , which are very close to the ideal value 0.5 . From Table 7, it is clear that the proposed S-box has better SAC results as compared to that of S-boxes in [5,6,7,31,34,35,36,37,38,39,40,41,42,48,60,61]. The S-boxes in Table 7 have satisfactory BIC values, but the proposed S-box has better BIC-NL than that of the S-boxes in [5,6,7,31,33,34,35,37,38,39,40,43,44,47,48,61]. The AC of the proposed S-box is higher than the AC of S-boxes in [6,44] and comparable with other schemes. There are two methods that outperform our method in more than four indicators: Ref. [42], which outperforms our method in four indicators, while in two indicators (AC and max BIC), it outperforms our method by a very small amount. Ref. [46] outperforms our method in all indicators except algebraic complexity.
This performance comparison of our proposed scheme based on triads against already established methods reveals that the proposed scheme has the capability to design highly secure S-boxes when compared with other schemes with different underlying mathematical structures such as chaotic maps, elliptic curves, and some other algebraic structures.

5. Conclusions

In this paper, we have developed a new geometric method to enumerate all distinct resonant triads in a given box of wavenumbers. Considering aspect ratio f = 1 , we computed all triads in a specific region and observed that the new method is very efficient for obtaining all triads in the grid of wavenumber size 5000 when compared with the state of the art [4,16]. The new method can also be used to obtain quasi-resonant triads. For aspect ratios f 1 , we proved numerically that the proposed method is capable of enumerating quasi-resonant triads in any region. As an application, we have defined a new total order on the set of triads to subsequently design an S-box generator via a novel algorithm whose time complexity we prove mathematically.We show that the proposed S- box generator is useful in cryptosystems using a number of S-boxes. Analysis of the S-box generator shows that our generator is capable of enumerating a highly secure S- box: considering nine key indicators based on nonlinearity, algebraic complexity, linear and differential approximation probabilities, strict avalanche criteria, and bit independence criterion, we compared our method based on triads against 20 state-of-the-art methods based on elliptic curves, chaos, and other algebraic methods. We outrank 18 of these methods [5,6,7,31,34,35,36,37,38,39,40,41,43,44,47,48,60,61] in the majority of the nine key indicators, and we basically draw with the methods from Refs. [33,42].
Our future goal is to improve our parametrization so as to further reduce the time complexity of the resonant triad search algorithm. Moreover, we will extend the current scheme of the S-box enumeration to construct a random number generator.

Author Contributions

Conceptualization, U.H., G.M. and M.D.B.; methodology, U.H., I.U., G.M. and M.D.B.; software, U.H., I.U. and G.M.; supervision, U.H., M.D.B. and N.A.A.; writing—original draft, I.U. and G.M.; writing—review and editing, U.H., M.D.B. and N.A.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CHMECharney–Hasegawa–Mima equation
S-boxSubstitution box

References

  1. 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]
  2. Harper, K.L.; Bustamante, M.D.; Nazarenko, S.V. Quadratic invariants for discrete clusters of weakly interacting waves. J. Phys. A Math. Theor. 2013, 46, 245501. [Google Scholar] [CrossRef]
  3. Bustamante, M.D.; Quinn, B.; Lucas, D. Robust energy transfer mechanism via precession resonance in nonlinear turbulent wave systems. Phys. Rev. Lett. 2014, 113, 084502. [Google Scholar] [CrossRef] [Green Version]
  4. 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] [Green Version]
  5. Azam, N.A.; Hayat, U.; Ullah, I. Efficient construction of a substitution box based on a Mordell elliptic curve over a finite field. Front. Inf. Technol. Electron. Eng. 2019, 20, 1378–1389. [Google Scholar] [CrossRef] [Green Version]
  6. 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] [Green Version]
  7. Hayat, U.; Azam, N.A.; Gallegos-Ruiz, H.R.; Naz, S.; Batool, L. A Truly Dynamic Substitution Box Generator for Block Ciphers Based on Elliptic Curves Over Finite Rings. Arab. J. Sci. Eng. 2021, 46, 8887–8899. [Google Scholar] [CrossRef]
  8. Ullah, I.; Hayat, U.; Bustamante, M.D. Image encryption using elliptic curves and Rossby/drift wave triads. Entropy 2020, 22, 454. [Google Scholar] [CrossRef] [Green Version]
  9. Horton, W.; Hasegawa, A. Quasi-two-dimensional dynamics of plasmas and fluids. Chaos Interdiscip. J. Nonlinear Sci. 1994, 4, 227–251. [Google Scholar] [CrossRef] [Green Version]
  10. Harper, K.L.; Quinn, B.E.; Nazarenko, S.V.; Bustamante, M.D. Zonostrophy and Other Quadratic Invariants in Drift and Quasi-Geostrophic Wave Turbulence; Cambridge University Press: Cambridge, MA, USA, 2019; pp. 360–367. [Google Scholar] [CrossRef]
  11. Galperin, B.; Read, P.L. (Eds.) Zonal Jets: Phenomenology, Genesis, and Physics; Cambridge University Press: Cambridge, MA, USA, 2019. [Google Scholar]
  12. Petoukhov, V.; Rahmstorf, S.; Petri, S.; Schellnhuber, H.J. Quasiresonant amplification of planetary waves and recent Northern Hemisphere weather extremes. Proc. Natl. Acad. Sci. USA 2013, 110, 5336–5341. [Google Scholar] [CrossRef] [Green Version]
  13. Coumou, D.; Lehmann, J.; Beckmann, J. The weakening summer circulation in the Northern Hemisphere mid-latitudes. Science 2015, 348, 324–327. [Google Scholar] [CrossRef]
  14. Kartashova, E.; Kartashov, A. Laminated wave turbulence: Generic algorithms I. Int. J. Mod. Phys. C 2006, 17, 1579–1596. [Google Scholar] [CrossRef] [Green Version]
  15. Kartashova, E.; Kartashov, A. Laminated wave turbulence: Generic algorithms II. Comm. Comp. Phys. 2007, 2, 783–794. [Google Scholar] [CrossRef] [Green Version]
  16. Kopp, G.S. The arithmetic geometry of resonant Rossby wave triads. SIAM J. Appl. Algebra Geom. 2017, 1, 352–373. [Google Scholar] [CrossRef] [Green Version]
  17. Lewis, J.M. Carl-Gustaf Rossby: A study in mentorship. Bull. Am. Meteorol. Soc. 1992, 73, 1425–1439. [Google Scholar] [CrossRef]
  18. Phillips, N.A. Carl-Gustaf Rossby: His times, personality, and actions. Bull. Am. Meteorol. Soc. 1998, 79, 1097–1112. [Google Scholar] [CrossRef]
  19. Rossby, C.G. Relation between variations in the intensity of the zonal circulation of the atmosphere and the displacements of the semi-permanent centers of action. J. Mar. Res. 1939, 2, 38–55. [Google Scholar] [CrossRef]
  20. Charney, J.G. The dynamics of long waves in a baroclinic westerly current. J. Atmos. Sci. 1947, 4, 136–162. [Google Scholar] [CrossRef]
  21. Charney, J.G. On the scale of atmospheric motions. Geofys. Publ. 1948, 17, 3–17. [Google Scholar]
  22. Hasegawa, A.; Mima, K. Stationary spectrum of strong turbulence in magnetized nonuniform plasma. Phys. Rev. Lett. 1977, 39, 205. [Google Scholar] [CrossRef]
  23. Hasegawa, A.; Mima, K. Pseudo-three-dimensional turbulence in magnetized nonuniform plasma. Phys. Fluids 1978, 21, 87–92. [Google Scholar] [CrossRef]
  24. Lynch, P. Resonant Rossby wave triads and the swinging spring. Bull. Am. Meteorol. Soc. 2003, 84, 605–616. [Google Scholar] [CrossRef]
  25. Pedlosky, J. Geophysical Fluid Dynamics; Springer: Berlin/Heidelberg, Germany, 1987; Volume 710. [Google Scholar]
  26. Cox, D. Primes of the Fom z2 + ny2: Fermat, Class Field Theory, and Complex Multiplication; John Wiley & Sons: New York, NY, USA, 1989. [Google Scholar]
  27. Johansson, T. Analysis and design of modern stream ciphers. In Proceedings of the IMA International Conference on Cryptography and Coding, Cirencester, UK, 16–18 December 2003; p. 66. [Google Scholar]
  28. Van Oorschot, P.C.; Menezes, A.J.; Vanstone, S.A. Handbook of Spplied Cryptography; CRC Press: Boca Raton, FL, USA, 1996. [Google Scholar]
  29. Khan, M.F.; Ahmed, A.; Saleem, K. A novel cryptographic substitution box design using Gaussian distribution. IEEE Access 2019, 7, 15999–16007. [Google Scholar] [CrossRef]
  30. Chew, L.C.N.; Ismail, E.S. S-box construction based on linear fractional transformation and permutation function. Symmetry 2020, 12, 826. [Google Scholar] [CrossRef]
  31. Farah, M.B.; Farah, A.; Farah, T. An image encryption scheme based on a new hybrid chaotic map and optimized substitution box. Nonlinear Dyn. 2019, 99, 3041–3064. [Google Scholar] [CrossRef]
  32. Azam, N.A.; Hayat, U.; Ayub, M. A Substitution Box Generator, its Analysis, and Applications in Image Encryption. Signal Process. 2021, 187, 108144. [Google Scholar] [CrossRef]
  33. Jakimoski, G.; Kocarev, L. Chaos and cryptography: Block encryption ciphers based on chaotic maps. IEEE Trans. Circuits Syst. Fundam. Theory Appl. 2001, 48, 163–169. [Google Scholar] [CrossRef]
  34. Khan, M.; Shah, T.; Mahmood, H.; Gondal, M.A.; Hussain, I. A novel technique for the construction of strong S-boxes based on chaotic Lorenz systems. Nonlinear Dyn. 2012, 70, 2303–2311. [Google Scholar] [CrossRef]
  35. Tang, G.; Liao, X.; Chen, Y. A novel method for designing S-boxes based on chaotic maps. Chaos Solitons Fractals 2005, 23, 413–419. [Google Scholar] [CrossRef]
  36. Özkaynak, F.; Özer, A.B. A method for designing strong S-Boxes based on chaotic Lorenz system. Phys. Lett. A 2010, 374, 3733–3738. [Google Scholar] [CrossRef]
  37. Abd el Latif, A.A.; Abd-el Atty, B.; Amin, M.; Iliyasu, A.M. Quantum-inspired cascaded discrete-time quantum walks with induced chaotic dynamics and cryptographic applications. Sci. Rep. 2020, 10, 1930. [Google Scholar] [CrossRef] [Green Version]
  38. Farah, T.; Rhouma, R.; Belghith, S. A novel method for designing S-box based on chaotic map and teaching–learning-based optimization. Nonlinear Dyn. 2017, 88, 1059–1074. [Google Scholar] [CrossRef]
  39. Cassal-Quiroga, B.B.; Campos-Cantón, E. Generation of dynamical S-boxes for block ciphers via extended logistic map. Math. Probl. Eng. 2020, 2020, 2702653. [Google Scholar] [CrossRef] [Green Version]
  40. Bhattacharya, D.; Bansal, N.; Banerjee, A.; RoyChowdhury, D. A near optimal S-box design. In Proceedings of the International Conference on Information Systems Security, Valparaiso, Chile, 9–12 October 2007; pp. 77–90. [Google Scholar]
  41. Chen, G. A novel heuristic method for obtaining S-boxes. Chaos Solitons Fractals 2008, 36, 1028–1036. [Google Scholar] [CrossRef]
  42. Ivanov, G.; Nikolov, N.; Nikova, S. Cryptographically strong S-boxes generated by modified immune algorithm. In Proceedings of the International Conference on Cryptography and Information Security in the Balkans, Koper, Slovenia, 3–4 September 2015; pp. 31–42. [Google Scholar]
  43. Razaq, A.; Yousaf, A.; Shuaib, U.; Siddiqui, N.; Ullah, A.; Waheed, A. A novel construction of substitution box involving coset diagram and a bijective map. Secur. Commun. Netw. 2017, 2017, 5101934. [Google Scholar] [CrossRef] [Green Version]
  44. Zahid, A.H.; Arshad, M.J. An innovative design of substitution-boxes using cubic polynomial mapping. Symmetry 2019, 11, 437. [Google Scholar] [CrossRef] [Green Version]
  45. Zahid, A.H.; Tawalbeh, L.; Ahmad, M.; Alkhayyat, A.; Hassan, M.T.; Manzoor, A.; Farhan, A.K. Efficient dynamic S-box generation using linear trigonometric transformation for security applications. IEEE Access 2021, 9, 98460–98475. [Google Scholar] [CrossRef]
  46. Hussain, I.; Anees, A.; Al-Maadeed, T.A.; Mustafa, M.T. Construction of S-box based on chaotic map and algebraic structures. Symmetry 2019, 11, 351. [Google Scholar] [CrossRef] [Green Version]
  47. Hayat, U.; Azam, N.A. A novel image encryption scheme based on an elliptic curve. Signal Process. 2019, 155, 391–402. [Google Scholar] [CrossRef]
  48. 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]
  49. Ibrahim, S.; Abbas, A.M. Efficient key-dependent dynamic S-boxes based on permutated elliptic curves. Inf. Sci. 2021, 558, 246–264. [Google Scholar] [CrossRef]
  50. Ullah, I.; Azam, N.A.; Hayat, U. Efficient and secure substitution box and random number generators over Mordell elliptic curves. J. Inf. Secur. Appl. 2021, 56, 102619. [Google Scholar] [CrossRef]
  51. Murtaza, G.; Azam, N.A.; Hayat, U. Designing an Efficient and Highly Dynamic Substitution-Box Generator for Block Ciphers Based on Finite Elliptic Curves. Secur. Commun. Networks 2021, 2021, 3367521. [Google Scholar] [CrossRef]
  52. Nazarenko, S. Wave Turbulence; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2011; Volume 825. [Google Scholar]
  53. Kishimoto, N.; Yoneda, T. A number theoretical observation of a resonant interaction of Rossby waves. Kodai Math. J. 2017, 40, 16–20. [Google Scholar] [CrossRef] [Green Version]
  54. Carlet, C.; Crama, Y.; Hammer, P.L. Boolean Functions for Cryptography and Error-Correcting Codes; Cambridge University Press: Cambridge, MA, USA, 2010. [Google Scholar]
  55. Meier, W.; Staffelbach, O. Nonlinearity criteria for cryptographic functions. In Proceedings of the Workshop on the Theory and Application of of Cryptographic Techniques, Houthalen, Belgium, 10–13 April 1989; pp. 549–562. [Google Scholar]
  56. Sakallı, M.T.; Aslan, B.; Buluş, E.; Mesut, A.Ş.; Büyüksaraçoğlu, F.; Karaahmetoğlu, O. On the algebraic expression of the AES S-box like S-boxes. In Proceedings of the International Conference on Networked Digital Technologies, Prague, Czech Republic, 7–9 July 2010; pp. 213–227. [Google Scholar]
  57. Matsui, M. Linear cryptanalysis method for DES cipher. In Proceedings of the Workshop on the Theory and Application of of Cryptographic Techniques, Lofthus, Norway, 23–27 May 1993; pp. 386–397. [Google Scholar]
  58. Biham, E.; Shamir, A. Differential cryptanalysis of DES-like cryptosystems. J. Cryptol. 1991, 4, 3–72. [Google Scholar] [CrossRef]
  59. Webster, A.; Tavares, S.E. On the design of S-boxes. In Proceedings of the Conference on the Theory and Application of Cryptographic Techniques, Trondheim, Norway, 30 May–3 June 1985; pp. 523–534. [Google Scholar]
  60. Kim, J.; Phan, R.C.W. Advanced differential-style cryptanalysis of the NSA’s skipjack block cipher. Cryptologia 2009, 33, 246–270. [Google Scholar] [CrossRef] [Green Version]
  61. Abd EL-Latif, A.A.; Abd-El-Atty, B.; Venegas-Andraca, S.E. A novel image steganography technique based on quantum substitution boxes. Opt. Laser Technol. 2019, 116, 92–102. [Google Scholar] [CrossRef]
Figure 1. Illustration of the wavevectors ( k , ) such that | k | , | | 100 and f = 1 , where (a) δ = 8 × 10 6 , (b) δ = 2 × 10 6 , (c) δ = 8 × 10 7 , and (d) δ = 2 × 10 7 .
Figure 1. Illustration of the wavevectors ( k , ) such that | k | , | | 100 and f = 1 , where (a) δ = 8 × 10 6 , (b) δ = 2 × 10 6 , (c) δ = 8 × 10 7 , and (d) δ = 2 × 10 7 .
Mathematics 10 04395 g001
Figure 2. Bar graph of quasi-resonant triads in terms of detuning levels, for aspect ratio f = 1 and box size L = 100 .
Figure 2. Bar graph of quasi-resonant triads in terms of detuning levels, for aspect ratio f = 1 and box size L = 100 .
Mathematics 10 04395 g002
Figure 3. Symbolic plot of the largest resonant triad clusters generated for aspect ratio f = 3 and box size L = 100 .
Figure 3. Symbolic plot of the largest resonant triad clusters generated for aspect ratio f = 3 and box size L = 100 .
Mathematics 10 04395 g003
Figure 4. The NLs of each Boolean function of the newly designed S-box σ .
Figure 4. The NLs of each Boolean function of the newly designed S-box σ .
Mathematics 10 04395 g004
Figure 5. A bar chart of the BIC-NL of the newly designed S-box σ . The minimum BIC-NL of each component is 100 and maximum is 106, as shown.
Figure 5. A bar chart of the BIC-NL of the newly designed S-box σ . The minimum BIC-NL of each component is 100 and maximum is 106, as shown.
Mathematics 10 04395 g005
Figure 6. Illustration of distinct S-boxes: (a) the distribution of parameter ; (b) the oscillation of the minimum nonlinearity of the corresponding S-boxes.
Figure 6. Illustration of distinct S-boxes: (a) the distribution of parameter ; (b) the oscillation of the minimum nonlinearity of the corresponding S-boxes.
Mathematics 10 04395 g006
Table 1. Number of irreducible triads for aspect ratio f = 1 .
Table 1. Number of irreducible triads for aspect ratio f = 1 .
MethodsTimeNo. of TriadsSystem Specifications
OptimalObtained
Proposed2 days472472MATLAB, 16-core-machine
Ref. [4]10.5 days472472Mathematica, 16-core-machine
Ref. [16]-472463Mathematica, MacBook 2.9 GHz dual-core i7
Table 2. Number of irreducible triads against different values of aspect ratio f.
Table 2. Number of irreducible triads against different values of aspect ratio f.
f1 1 2 2 2 3 3 3 2 3 3 3 4 3 5 2 3 3 3 4 3 6 2 5 2 7 2
Triads127633372312816563976430437
Table 3. The S-box constructed by the proposed method.
Table 3. The S-box constructed by the proposed method.
273415810651185583166249127103185115150
20618614914513422117481167111244574966239232
802001731156508717716229155885272252141
209230190951842412369181168604694117189163
598861421216938159891724822312153135119
24822513451227491672151971203530148201139
12856131176147140322191052223418317921195203
1546254204171519847213246479787024737
211401576224133615922969129144829627237
170188158152110160161931228126142137239739
26218116194712422020631321512222431993477
9244164208114255201782311938412423811385143
1821041011802351812319225113813010910710010819
25320731871114625425416421252269931153
823310222021721016521419622724517524643228112
682052161067171191240513313690250367675
Table 4. The coefficients of the linear polynomial for the proposed S-box.
Table 4. The coefficients of the linear polynomial for the proposed S-box.
064216620741472924871175568915693154
2412411802418184167158916624197416990189
8512611451130266620286218166973203194155
1512171325141126162153331441812498124721868
1302201117018424011299115562471882452017257
20730209226844140724941511352471610229
119526992331261005252121123192172413157
251181191939839512022619512323013425113770
19120910517314639352337232905817719417788
139471198210146234180186018751628226155
3821724878108197362251492331441531238330152
2229417211255420832171431214445248236244
130761041618106117579346247294713126210
132732002191541991994109110142220901993118
116212147189502528816311613721398125317449
8222783131238560170176245221174180511542
Table 5. Dependence matrix with entries m i j .
Table 5. Dependence matrix with entries m i j .
0.4240.5630.5780.5310.5000.5160.5000.531
0.4840.5780.4690.4690.5000.50.5160.453
0.4220.5470.5000.4840.5630.5470.5160.422
0.4690.5470.5000.5630.5000.4690.5000.516
0.5000.5470.5000.5310.5630.4840.5000.500
0.5000.5310.5160.5310.5780.5470.5780.531
0.5630.5000.4380.5000.5470.4690.4690.500
0.5160.4530.5310.4530.4530.5630.5310.531
Table 6. Dependence matrix with entries d i j .
Table 6. Dependence matrix with entries d i j .
0.4880.4840.4880.4770.5250.5310.523
0.4880.50.4900.5080.5040.5160.473
0.4840.50.4860.5220.5060.5100.488
0.4880.4900.4860.5120.5040.4940.498
0.4770.5080.5220.5120.4980.5220.5
0.5250.5040.5060.5040.4980.4860.527
0.5310.5160.5100.4940.5220.4860.514
0.5230.4730.4880.4980.50.5270.514
Table 7. Comparison of S-boxes across a range of methods (rows) against our method based on triads. The comparison is made over nine different indicators (columns). For each indicator (column), we present in boldface the methods that outperform our method.
Table 7. Comparison of S-boxes across a range of methods (rows) against our method based on triads. The comparison is made over nine different indicators (columns). For each indicator (column), we present in boldface the methods that outperform our method.
S-boxesMethodNLSACBICDAP
NLACLAPMinMaxMinMaxNL
Ref. [33]Chaos1002550.1290.4220.5940.4770.525980.039
Ref. [34] 962540.0230.3910.6250.4770.531920.050
Ref. [35] 1032550.1320.3980.5700.4720.535960.039
Ref. [36] 1002550.1520.3910.5860.4680.5371000.039
Ref. [37] 982540.1330.4220.6090.4770.535940.054
Ref. [31] 1042550.1330.3590.6090.4570.535960.039
Ref. [38] 1042540.1330.4380.6410.4750.547980.039
Ref. [39] 962550.1250.4220.6090.4710.547960.047
Ref. [46]Other1122530.0630.4530.5630.4800.5251120.016
Ref. [44] 1042530.1410.4060.5940.4610.522980.054
Ref. [40] 1022540.1330.3590.5620.4670.535980.039
Ref. [41] 1022540.1480.3750.6090.4700.5211000.039
Ref. [60] 1042550.1090.3910.5930.4540.491020.047
Ref. [42] 1042550.0940.3910.5780.4760.5291030.023
Ref. [61] 962550.1250.3590.6090.4770.541980.039
Ref. [43] 1042540.1480.4380.5780.4820.543960.047
Ref. [5]Elliptic1062550.1480.4060.6410.4710.537980.039
Ref. [6]Curves1062530.1880.4060.6090.4650.527980.039
Ref. [47] 1062550.1480.4380.5940.4650.545980.039
Ref. [48] 1042550.1450.3910.6250.4710.531980.039
Ref. [7] 1062550.1480.4060.6250.4710.539960.047
Our MethodTriads1062540.1330.4220.5780.4730.5311000.039
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hayat, U.; Ullah, I.; Murtaza, G.; Azam, N.A.; Bustamante, M.D. Enumerating Discrete Resonant Rossby/Drift Wave Triads and Their Application in Information Security. Mathematics 2022, 10, 4395. https://0-doi-org.brum.beds.ac.uk/10.3390/math10234395

AMA Style

Hayat U, Ullah I, Murtaza G, Azam NA, Bustamante MD. Enumerating Discrete Resonant Rossby/Drift Wave Triads and Their Application in Information Security. Mathematics. 2022; 10(23):4395. https://0-doi-org.brum.beds.ac.uk/10.3390/math10234395

Chicago/Turabian Style

Hayat, Umar, Ikram Ullah, Ghulam Murtaza, Naveed Ahmed Azam, and Miguel D. Bustamante. 2022. "Enumerating Discrete Resonant Rossby/Drift Wave Triads and Their Application in Information Security" Mathematics 10, no. 23: 4395. https://0-doi-org.brum.beds.ac.uk/10.3390/math10234395

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop