Next Article in Journal
DiFastBit: Transaction Differentiation Scheme to Avoid Double-Spending for Fast Bitcoin Payments
Previous Article in Journal
Deduplication-Aware Healthcare Data Distribution in IoMT
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Stability of the Linear Complexity of Some Generalized Cyclotomic Sequences of Order Two

College of Computer Science and Technology, Qingdao University, Qingdao 266071, China
*
Author to whom correspondence should be addressed.
Mathematics 2024, 12(16), 2483; https://doi.org/10.3390/math12162483
Submission received: 10 July 2024 / Revised: 8 August 2024 / Accepted: 9 August 2024 / Published: 11 August 2024
(This article belongs to the Special Issue Coding Theory and the Impact of AI)

Abstract

:
Linear complexity is an important pseudo-random measure of the key stream sequence in a stream cipher system. The 1-error linear complexity is used to measure the stability of the linear complexity, which means the minimal linear complexity of the new sequence by changing one bit of the original key stream sequence. This paper contributes to calculating the exact values of the linear complexity and 1-error linear complexity of the binary key stream sequence with two prime periods defined by Ding–Helleseth generalized cyclotomy. We provide a novel method to solve such problems by employing the discrete Fourier transform and the M–S polynomial of the sequence. Our results show that, by choosing appropriate parameters p and q, the linear complexity and 1-error linear complexity can be no less than half period, which shows that the linear complexity of this sequence not only meets the requirements of cryptography but also has good stability.

1. Introduction

Stream cipher is an important encryption system, which has been widely used in the military, diplomacy, and other fields. The security of a stream cipher mainly depends on the pseudo-random property, including the linear complexity of the key stream sequences. If the binary sequence s = ( s 0 , s 1 , s 2 , ) with the symbols in F 2 satisfying s j + c 1 s j 1 + + c L s j L = 0 , j L , where L is a positive integer, c 1 , c 2 , , c L F 2 , and F 2 denotes the finite field of order 2, then the least L is called the linear complexity of the sequence s , denoted by L C ( s ) , which is the length of the shortest linear feedback shift register (LFSR) that can generate this sequence [1,2]. The famous BM algorithm shows that the whole sequence with period N can be recovered by the 2 L C ( s ) successive terms, so L C ( s ) is required to be not less than N / 2 [3]. Ding and Helleseth introduced a new generalized cyclotomic class of order two and defined the new generalized cyclotomic sequences from them in 1998. Many modified versions of the sequence were considered after that [4]. In 2005, the linear complexity and the minimal polynomial of the new generalized cyclotomic sequences of order two of period p q were determined by Bai and He et al., where p , q are distinct odd primes [5,6]. In 2008, Du et al. provided the linear complexity of Ding–Helleseth generalized cyclotomic sequences of arbitrary order by their trace representation [7]. In 2019, a modified version of Ding–Helleseth generalized cyclotomic sequences of order two were presented and the 2-adic linear complexity was demonstrated to be sufficient [8].
The k-error linear complexity was defined as the smallest value of linear complexity that can be obtained by changing at most k terms of the sequence in the first period and periodically continued [9], which is an important measure of the stability of linear complexity. Please refer to the literature for the research on k-error linear complexity [1,2,10,11,12]. Zhou and Liu studied the k-error linear complexity of binary sequences by using the cube theory [13]. Chang and Ke studied the properties of the error linear complexity spectrum of binary sequences with the period of a power of two [14]. Xiao et al. introduced a new family of binary generalized cyclotomic sequences of period p 2 for an odd prime p [15]. Then, Wu et al. calculated the k-error linear complexity of the sequences [16]. Alecu and Sălăgean transformed the calculation of the k-error linear complexity into the calculation of the Hamming weight of the discrete Fourier transform (DFT) spectrum of the sequence by Blahut’s theorem [17]. In 2019, Chen and Wu discussed the k-error linear complexity for Legendre, Ding–Helleseth–Lam, and Hall’s sextic residue sequences of odd prime period p by this method [18]. In 2022, Wu provided the k-error linear complexity of q-ary Euler quotient sequences [19] and Pazilaiti et al. determined the linear complexity and the 1-error linear complexity of some Whiteman generalized cyclotomic binary sequences [20].
This paper determines the linear complexity and the 1-error linear complexity of a class of Ding–Helleseth generalized cyclotomic sequences s of order two of period p q . First of all, we introduce some related algebraic preliminaries and the construction of the sequence in Section 2, and then present the M–S polynomial over an extension field of F 2 , from whose coefficient sequence we obtain its DFT spectrum, and then the linear complexity is calculated as the Hamming weight of the DFT spectrum in Section 3. In Section 4, by a similar approach, we calculate the minimal linear complexity of the sum sequence of the sequence s and the error sequence e of the Hamming weight not more than 1; actually, it is just the 1-error linear complexity of the sequence. Section 5 concludes the main results and presents a discussion about the implementation and application of this sequence finally.

2. Preliminary

The sequence s = { s u } u = 0 with the period N is often defined as
s u = 1 , i f u mod N D , 0 , otherwise ,
where the subset D of the residue class ring Z N is called the defining set of the sequence s. Thus, constructing a binary sequence of period N is actually equivalent to defining a binary partition of Z N .
Now, we consider the case N = p q , where p and q are two odd primes larger than 3 with the greatest common divisor gcd ( p 1 , q 1 ) = 2 and e = ( p 1 ) ( q 1 ) / 2 . It is guaranteed by Chinese Remainder Theorem that there exists a common primitive root g of both p and q, such that ord N ( g ) = lcm ( p 1 , q 1 ) = e , where ord N ( g ) denotes the multiplicative order of g modulo N. The set of all invertible elements of Z N [21] can be provided by
Z N * = { g j x i : j = 0 , 1 , , e 1 ; i = 0 , 1 } ,
where x satisfies x = g mod p and x = 1 mod q .
Some subsets of Z N are defined as
D 0 i = { g 2 j x i : j = 0 , 1 , , e / 2 1 } , D 1 i = { g 2 j + 1 x i : j = 0 , 1 , , e / 2 1 } ,
where i = 0 , 1 . Denote
D i ( q ) = { g i + 2 j : j = 0 , 1 , , ( q 1 ) / 2 1 } , P i = p D i ( q ) , D i ( p ) = { g i + 2 j : j = 0 , 1 , , ( p 1 ) / 2 1 } , Q i = q D i ( p ) ,
where i = 0 , 1 .
It is obvious that
D 0 i mod p = { g 2 j x i mod p : j = 0 , 1 , , e / 2 1 } = { g 2 j + i mod p : j = 0 , 1 , , e / 2 1 } = D i ( p ) ,
D 0 i mod q = { g 2 j x i mod q : j = 0 , 1 , , e / 2 1 } = { g 2 j mod q : j = 0 , 1 , , e / 2 1 } = D 0 ( q ) .
Then, D 0 i consists of all the quadratic residues of modulo q, where i = 0 , 1 , and D 00 consist of all the quadratic residues of modulo p and D 01 consists of all the quadratic nonresidues of modulo p. Similarly, by the fact that
D 1 i mod p = { g 2 j + 1 x i mod p : j = 0 , 1 , , e / 2 1 } = { g 2 j + i + 1 mod p : j = 0 , 1 , , e / 2 1 } = D i + 1 ( p ) , D 1 i mod q = { g 2 j + 1 x i mod q : j = 0 , 1 , , e / 2 1 } = { g 2 j + 1 mod q : j = 0 , 1 , , e / 2 1 } = D 1 ( q ) .
Then, D 1 i consists of all the quadratic nonresidues of modulo q, where i = 0 , 1 , and D 10 consist of all the quadratic nonresidues of modulo p and D 11 consists of all the quadratic residues of modulo p. Ding and Helleseth defined the generalized cyclotomic classes as D 0 = D 00 D 01 , D 1 = D 10 D 11 and the subsets P = P 0 P 1 , Q = Q 0 Q 1 . Thus, the partition of Z N can be denoted as
Z N = D 0 D 1 P Q { 0 }
and D 0 D 1 = Z N * . It is clear that | D 00 | = | D 01 | = | D 10 | = | D 11 | = ( p 1 ) ( q 1 ) / 4 , | P 0 | = | P 1 | = ( q 1 ) / 2 , and | Q 0 | = | Q 1 | = ( p 1 ) / 2 .
Define the Ding–Helleseth generalized cyclotomic sequence of order two s = { s u } u = 0 with the defining set Q 1 P 0 D 1 [5,22]. It is obvious that this sequence possesses the property of the balance of the symbols “0” and “1”. This paper first contributes to calculation of the linear complexity of s by its DFT spectrum and M–S polynomial.

3. Linear Complexity and Discrete Fourier Transform

The DFT spectrum of s is provided by
A i = u = 0 N 1 s u α i u , 0 i N 1 .
where α F 2 m is a primitive N-th root of unity and m is the order of 2 modulo, the odd number N. Blahut’s Theorem [23] shows that the linear complexity of s is equal to the Hamming weight of its DFT spectrum, namely
L C ( s ) = # { i : A i 0 , 0 i N 1 } ,
where # means the cardinality of the set, which is also equal to | G ( X ) | , which denotes the number of nonzero terms of the Mattson–Solomon polynomial (M–S polynomial) [24] of s obtained by
G ( X ) = i = 0 N 1 A i X i F 2 m [ X ] .
It is noted that, based on the inverse DFT [25], the sequence can be provided by
s u = i = 0 N 1 A i α i u = G ( α u ) , 0 u N 1 .
In the remainder of this paper, denote p v mod 8 and q w mod 8 , where v , w = ± 1 , ± 3 .
Lemma 1
([26]). Let p and q be distinct odd primes.
1. 
If ( v , w ) = ( ± 1 , ± 1 ) , then 2 D 00 .
2. 
If ( v , w ) = ( ± 3 , ± 1 ) , then 2 D 01 .
3. 
If ( v , w ) = ( ± 3 , ± 3 ) , then 2 D 10 .
4. 
If ( v , w ) = ( ± 1 , ± 3 ) , then 2 D 11 .
Lemma 2.
Let p and q be distinct odd primes.
1. 
1 D 01 if and only if
( v , w ) { ( 3 , 3 ) , ( 3 , 1 ) , ( 1 , 3 ) , ( 1 , 1 ) } ;
2. 
1 D 10 if and only if
( v , w ) { ( 3 , 3 ) , ( 3 , 1 ) , ( 1 , 3 ) , ( 1 , 1 ) } ;
3. 
1 D 11 if and only if
( v , w ) { ( 3 , 3 ) , ( 3 , 1 ) , ( 1 , 3 ) , ( 1 , 1 ) } .
Proof. 
If ( v , w ) = ( 1 , 1 ) , by the definition of g, we have
1 = g p 1 2 mod p = g 4 k 1 mod p , 1 = g q 1 2 mod q = g 4 k 2 1 mod q ,
where k 1 and k 2 are positive integers. Hence, 1 is a quadratic residue modulo p and a quadratic nonresidue modulo q. Thus, 1 D 11 . The rest can be proved similarly.  □
Lemma 3
([27]). Let p and q be distinct odd primes. If t D i , then t P j = P i + j mod 2 , t D j = D i + j mod 2 for i , j = 0 , 1 .
Lemma 4. 
Let p and q be distinct odd primes.
1. 
If t D 00 D 11 , then t Q 0 = Q 0 , t Q 1 = Q 1 .
2. 
If t D 01 D 10 , then t Q 0 = Q 1 , t Q 1 = Q 0 .
Proof. 
The proof is obvious since D 00 D 11 and D 01 D 10 are all quadratic residues and quadratic nonresidues of modulo p, respectively.  □
Lemma 5 
([27]). Let p and q be distinct odd primes.
i P α i = i Q α i = i Z N * α i = 1 .
Lemma 6 
([5]). Let p and q be distinct odd primes.
  • If t P , then
    j Q i α t j = ( p 1 ) / 2 mod 2 , j D i α t j = 0 .
  • If t Q , then
    j P i α t j = ( q 1 ) / 2 mod 2 , j D i α t j = ( q 1 ) / 2 mod 2 .
Theorem 1.
Let p v mod 8 and q w mod 8 , where v , w = ± 1 , ± 3 . Then, the results of computing L C ( s ) by DFT are shown in Table 1.
Proof. 
If 1 D 11 , by Lemmas 3 and 4, we have
A i = u = 0 N 1 s u α i u = u Q 1 α i u + u P 0 α i u + u D 1 α i u = u Q 1 α i u + u P 1 α i u + u D 0 α i u
If 1 D 01 D 10 , by Lemmas 3 and 4, we have
A i = u = 0 N 1 s u α i u = u Q 1 α i u + u P 0 α i u + u D 1 α i u = u Q 0 α i u + u P 0 α i u + u D 1 α i u = u Q 1 α i u + u P 0 α i u + u D 0 α i u + 1
for i = 1 , 2 , , N 1 . Note that
A 0 = u Q 1 1 + u P 0 1 + u D 1 1 = p + q 2 2 ( mod 2 ) .
So, we first consider the case
A i = u Q 1 α i u + u P 1 α i u + u D 0 α i u ,
and the remaining cases can be provided similarly.
G ( X ) = i D 00 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + i D 01 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + i D 10 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + i D 11 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + i P 0 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + i P 1 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + i Q 0 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + i Q 1 u Q 1 α i u + u P 1 α i u + u D 0 α i u X i + A 0 .
Let t = i u ; then, by Lemmas 3–6,
G ( X ) = i D 00 t Q 1 α t + t P 1 α t + t D 0 α t X i + i D 01 t Q 0 α t + t P 1 α t + t D 0 α t X i + i D 10 t Q 0 α t + t P 0 α t + t D 1 α t X i + i D 11 t Q 1 α t + t P 0 α t + t D 1 α t X i + i P 0 ( p 1 ) / 2 + t P 1 α t + 0 X i + i P 1 ( p 1 ) / 2 + t P 0 α t + 0 X i + i Q 0 t Q 1 α t + ( q 1 ) / 2 + ( q 1 ) / 2 X i + i Q 1 t Q 0 α t + ( q 1 ) / 2 + ( q 1 ) / 2 X i + A 0 = G 1 ( X ) + G 2 ( X ) + G 3 ( X ) + A 0 .
where
G 1 ( X ) = i D 00 t Q 1 α t + t P 1 α t + t D 0 α t X i + i D 01 t Q 0 α t + t P 1 α t + t D 0 α t X i + i D 10 t Q 0 α t + t P 0 α t + t D 1 α t X i + i D 11 t Q 1 α t + t P 0 α t + t D 1 α t X i G 2 ( X ) = i P 0 ( p 1 ) / 2 + t P 1 α t X i + i P 1 ( p 1 ) / 2 + t P 0 α t X i G 3 ( X ) = i Q 0 t Q 1 α t X i + i Q 1 t Q 0 α t X i .
In the following, the numbers of the nonzero terms of G i ( X ) s , i = 0 , 1 , 2 , will be considered, respectively.
If 2 D 10 D 01 , by Lemma 4, we have
t Q i α t 2 = t Q i α 2 t = t Q i + 1 α t F 2 , t Q i α t 4 = t Q i + 1 α t 2 = t Q i + 1 α 2 t = t Q i α t F 4 .
As far as Lemma 5 is concerned, we have
ω = t Q 0 α t 0 , 1 + ω = t Q 1 α t 0 .
If 2 D 00 D 11 , by Lemmas 4 and 5, we have
t Q i α t 2 = t Q i α 2 t = t Q i α t F 2 .
And, by Lemma 5, we have
| G 3 ( X ) | = p 1 , if   2 D 10 D 01 , p 1 2 , if   2 D 00 D 11 .
If 2 D 0 , by Lemmas 3 and 5, we have
t P i α t 2 = t P i α 2 t = t P i α t F 2 .
If 2 D 1 , by Lemmas 3 and 5, we have
t P i α t 2 = t P i α 2 t = t P i + 1 α t F 2 , t P i α t 4 = t P i + 1 α t 2 = t P i + 1 α 2 t = t P i α t F 4 .
Thus, we have
λ = t Q 0 α t 0 , 1 + λ = t Q 1 α t 0 .
So, we have
| G 2 ( X ) | = q 1 2 , if   2 D 0 , q 1 , if   2 D 1 .
Since 2 Z p q * , by Lemma 3, we have
t P i α t + t D i α t 2 = t P i α t + t D i α t F 2 ,
and
t P i α t + t D i α t = t P i + 1 α t + t D i + 1 α t .
If
t P 0 α t + t D 0 α t = t P 1 α t + t D 1 α t = 0 ,
then,
G 1 ( X ) = ( 1 + ω ) i D 00 X i + ω i D 01 X i + ( 1 + ω ) i D 10 X i + ω i D 11 X i
If
t P 0 α t + t D 0 α t = t P 1 α t + t D 1 α t = 1 ,
it can be similarly proved that
G 1 ( X ) = ω i D 00 X i + ( 1 + ω ) i D 01 X i + ω i D 10 X i + ( 1 + ω ) i D 11 X i .
Thus, in detail, we always have
| G 1 ( X ) | = ( p 1 ) ( q 1 ) , if   2 D 10 D 01 , ( p 1 ) ( q 1 ) 2 , if   2 D 00 D 11 .
By Equations (7) and (11)–(13), for the case 1 D 11 , we have
| G ( X ) | = p q , if   ( v , w ) = ( 3 , 3 ) , 2 p q q + 1 2 , if   ( v , w ) = ( 3 , 1 ) , q ( p + 1 ) 2 , if   ( v , w ) = ( 1 , 3 ) , p q + 1 2 , if   ( v , w ) = ( 1 , 1 ) .
From the above discussion, we can see that all A i s lie in F 4 \ F 2 or F 2 , and the latter case means that half the number of A i s are 0 and the other half are 1. So, even if each A i changes into A i + 1 , just as in Equation (7), the same | G ( X ) | can be obtained for the case 1 D 10 D 01 . Thus, all the linear complexity can be provided as the list in Table 1.  □
Now, the linear complexity of s is provided by its DFT spectrum and M–S polynomial. More interestingly, this approach can be extended to calculate the 1-error linear complexity of this sequence as in the following section, which is the main contribution of this paper.

4. The 1-Error Linear Complexity

Let s ˜ = { s ˜ u } u = 0 be the new sequence obtained by changing at most 1 term of the original sequence s such that s ˜ = s + e , where e = { e u } u = 0 is the N periodic error sequence. The 1-error linear complexity of s
L C 1 ( s ) = min W H ( e ) 1 { L C ( s ˜ ) } ,
where W H ( e ) is the Hamming weight of e.
Let G e ( X ) and G ˜ ( X ) be the M–S polynomials of e and s ˜ periodically and E i and B i be the DFTs of them. Then, from Equations (3) and (5), we have
E i = u = 0 N 1 e u α i u , B i = u = 0 N 1 s ˜ u α i u ,
G e ( X ) = i = 0 N 1 E i X i , G ˜ ( X ) = i = 0 N 1 B i X i .
Hence,
B i = A i + E i , 0 i N 1 .
By Equation (6) and the definition of s ˜ , the M–S polynomial
G ˜ ( X ) = G ( X ) + G e ( X ) = i D 00 t Q 0 α t + t P 1 α t + t D 0 α t X i + i D 01 t Q 1 α t + t P 1 α t + t D 0 α t X i + i D 10 t Q 1 α t + t P 0 α t + t D 1 α t X i + i D 11 t Q 0 α t + t P 0 α t + t D 1 α t X i + i P 0 ( p 1 ) / 2 + t P 1 α t X i + i P 1 ( p 1 ) / 2 + t P 0 α t X i + i Q 0 t Q 1 α t X i + i Q 1 t Q 0 α t X i + 1 + i = 0 N 1 E i X i .
= i D 00 D 11 Q 0 t Q 1 α t X i + i D 01 D 10 Q 1 t Q 0 α t X i + i D 00 t P 1 α t + t D 0 α t X i + i D 01 t P 1 α t + t D 0 α t X i + i D 10 t P 0 α t + t D 1 α t X i + i D 11 t P 0 α t + t D 1 α t X i + i P 0 ( p 1 ) / 2 + t P 1 α t X i + i P 1 ( p 1 ) / 2 + t P 0 α t X i + 1 + i = 0 N 1 E i X i .
We assume that e u 0 = 1 for some 0 u 0 N 1 and e u = 0 for u u 0 in the first period of e. Then, the DFT of the 1-error sequence is
E i = u = 0 N 1 e u α i u = α i u 0 , 0 i N 1 .
Specifically, if u 0 = 0 , then E i = 1 for all 0 i N 1 ; otherwise, E 0 = 1 , E i , 0 , 1 , and the order of E i is a divisor of N for 1 i N 1 .
Theorem 2.
Let p v mod 8 and q w mod 8 , where v , w = ± 1 , ± 3 . Then, the 1-error linear complexity of s is shown in Table 2.
Proof. 
According to Lemmas 3 and 4 and the proof of Theorem 1, we can make the following assumption that
t Q 0 α t = 0 and t Q 1 α t = 1
for 2 D 00 D 11 ;
t Q 0 α t = ω and t Q 1 α t = 1 + ω
for 2 D 01 D 10 , where ω F 4 \ F 2 ; we can also select that
t P 0 α t = 0 and t P 1 α t = 1
for 2 D 0 ;
t P 0 α t = γ and t P 1 α t = 1 + γ
for 2 D 1 , where γ F 4 \ F 2 ; and we can also select that
t P 0 α t + t D 0 α t = t P 1 α t + t D 1 α t = 0 .
We first consider the case 2 D 00 .
G ˜ ( X ) = i D 00 D 11 Q 0 X i + i D 00 X i + i D 01 X i + i D 01 X i + i D 11 X i + i P 0 ( p 1 ) / 2 + γ + 1 X i + i P 1 ( p 1 ) / 2 + γ X i + 1 + i = 0 N 1 E i X i .
For the subcase p 1 mod 8 and q 1 mod 8 , by Lemmas 2–6, Equation (15), and the proof of Theorem 1, we have
G ˜ ( X ) = i D 00 D 11 Q 0 X i + i D 00 X i + i D 01 X i + i D 01 X i + i D 11 X i + i P 0 ( γ + 1 ) X i + i P 1 γ X i + 1 + i = 0 N 1 E i X i .
Thus, its coefficient for X i can be provided as
B i = E i , i D 00 D 11 , 1 + E i , i D 01 D 10 Q 0 , γ + 1 + E i , i P 0 , γ + E i , i P 1 , 0 , i { 0 } Q 1 .
If u 0 = 0 , then E i = 1 for all 0 i N 1 . Thus, B i 0 for all i D 00 D 11 P 0 P 1 , and B i = 0 otherwise. So, L C ( s ˜ ) = p q p + q 1 2 . If u 0 0 , E i , 0 , 1 and the order of E i is a divisor of N for 1 i N 1 . So, E i possesses the order of p , q or p q for 1 i N 1 . Note that γ possesses the order of 3 < p , q . Thus, B i 0 for all 1 i N 1 and B 0 = 0 . So, L C ( s ˜ ) = p q 1 . Based on the above discussion, the 1-error linear complexity L C 1 ( s ) = p q p + q 1 2 .
For the subcases p 1 mod 8 and q 1 mod 8 , and p 1 mod 8 and q 1 mod 8 , it is very similar to obtain L C 1 ( s ) = p q p + q 1 2 , p q p + q 3 2 , respectively.
Next, we consider the case 2 D 10 .
For the subcase p 3 mod 8 and q 3 mod 8 , by Lemmas 2–6, Equation (15), and the proof of Theorem 1, we have
G ˜ ( X ) = i D 00 D 11 Q 0 ( 1 + ω ) X i + i D 01 D 10 Q 1 ω X i + i D 00 X i + i D 01 X i + i D 01 X i + i D 11 X i + i P 0 γ X i + i P 1 ( 1 + γ ) X i + 1 + i = 0 N 1 E i X i .
Thus, its coefficient for X i can be provided as
B i = ω + E i , i D 00 D 11 Q 1 , 1 + ω + E i , i D 01 D 10 Q 0 , γ + E i , i P 0 , γ + 1 + E i , i P 1 , 0 , i = 0 .
Based on a similar discussion following Equation (19), we have the 1-error linear complexity L C 1 ( s ) = p q 1 .
For the subcases p 3 mod 8 and q 3 mod 8 , and p 3 mod 8 and q 3 mod 8 , it is very similar to obtain L C 1 ( s ) = p q 1 , p q 2 , respectively.
Next, we consider the case 2 D 01 .
For the subcase p 3 mod 8 and q 1 mod 8 , by Lemmas 2–6, Equation (15), and the proof of Theorem 1, we have
G ˜ ( X ) = i D 00 D 11 Q 0 ( 1 + ω ) X i + i D 01 D 10 Q 1 ω X i + i D 00 X i + i D 01 X i + i D 01 X i + i D 11 X i + i P 1 X i + 1 + i = 0 N 1 E i X i .
Thus, its coefficient for X i can be provided as
B i = ω + E i , i D 00 D 11 Q 1 , 1 + ω + E i , i D 01 D 10 Q 0 , + E i , i P 0 , 1 + E i , i P 1 , 0 , i = 0 .
Based on a similar discussion following Equation (19), the 1-error linear complexity L C 1 ( s ) = 2 p q q 1 2 .
For the subcases p 3 mod 8 and q 1 mod 8 , and p 3 mod 8 and q 1 mod 8 , it is very similar to obtain L C 1 ( s ) = 2 p q q 1 2 , 2 p q q 3 2 , respectively.
Next, we consider the case 2 D 11 .
For the subcase p 1 mod 8 and q 3 mod 8 , by Lemmas 2–6, Equation (15), and the proof of Theorem 1, we have
G ˜ ( X ) = i D 00 D 11 Q 0 X i + i D 00 X i + i D 01 X i + i D 01 X i + i D 11 X i + i P 0 γ X i + i P 1 ( 1 + γ ) X i + 1 + i = 0 N 1 E i X i .
Thus, its coefficient for X i can be provided as
B i = E i , i D 00 D 11 Q 1 , 1 + E i , i D 01 D 10 Q 0 , 1 + γ + E i , i P 0 , γ + E i , i P 1 , 0 , i = 0 .
Based on a similar discussion following Equation (19), the 1-error linear complexity L C 1 ( s ) = p q + q 2 2 .
For the subcases p 1 mod 8 and q 3 mod 8 , and p 1 mod 8 and q 3 mod 8 , it is very similar to obtain L C 1 ( s ) = p q + q 2 2 , p q + q 4 2 , respectively.  □

5. Conclusions

In this paper, the exact values of linear complexity and the 1-error linear complexity of a Ding–Helleseth generalized cyclotomic sequence of order two of period p q are calculated by using its DFTs and M–S polynomial. From the proof process of Theorems 1 and 2, we can include that this method, compared to the other existing methods, is suitable for the calculation of the linear complexity and 1-error linear complexity of binary sequences whose exact values regarding the DFT spectrum can be obtained, and this method can also be used to estimate the k-error linear complexity of these sequences for the other cases of small k.
In practical applications, in order to obtain a large-period key stream sequence, the values of p and q should be large enough. So, the results in Theorems 1 and 2 show that, no matter the choice regarding the parameters p and q, both the linear complexity and the 1-error linear complexity are not much less than N / 2 , and the linear complexity can even reach the bounds for the cases p = 3 ( mod 8 ) , q = 3 ( mod 8 ) , or p = 3 ( mod 8 ) , q = 3 ( mod 8 ) . Moreover, by comparing the results of Theorems 1 and 2, we find that L C 1 ( s ) is only 1 lower than L C ( s ) . Therefore, we can conclude that this sequence as a key stream satisfies the cryptographic requirements in terms of linear complexity and its stability index.
For the application, we are concerned with the implementation of a generator that can produce this sequence. A hardware implementation of a similar sequence was described in [28]. It possesses a performance estimated to be 30 kbytes/s when p and q are about 48 bits and was suggested for military and diplomatic applications. The sequences studied in this paper can be similarly efficient and hardware-generated, and can also have similar applications.

Author Contributions

C.Y. completed the overall part of the article, and C.T. provided data and experimental support. Conceptualization, C.T.; Writing original draft, C.T.; Formal analysis, C.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

We would like to express our sincere gratitude to two kind reviewers and Yansheng Wu. Their constructive comments have been of great assistance in improving the writing of this article. Their insightful suggestions and meticulous feedback have significantly enhanced the quality and clarity of our work. We are truly indebted to their dedication and expertise and extremely grateful for their valuable help.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Cusick, T.W.; Ding, C.; Renvall, A. Stream Ciphers and Number Theory; Elsevier Science: Amsterdam, The Netherlands, 2004. [Google Scholar]
  2. Niu, Z.; Yuan, C.; Chen, Z.; Du, X.; Zhang, T. On the k-error linear complexity of 2p2-periodic binary sequences. Sci. China Inf. Sci. 2020, 63, 199101. [Google Scholar] [CrossRef]
  3. Massey, J. Shift-register synthesis and BCH decoding. IEEE Trans. Inform. Theory 1969, 15, 122–127. [Google Scholar] [CrossRef]
  4. Yan, M.; Yan, T.; Li, Y. Computing the 2-adic complexity of two classes of Ding-Helleseth generalized cyclotomic sequences of periods of twin prime products. Cryptogr. Commu. 2021, 13, 15–26. [Google Scholar] [CrossRef]
  5. Bai, E.; Liu, X.; Xiao, G. Linear complexity of new generalized cyclotomic sequences of order two of length pq. IEEE Trans. Inf. Theory 2005, 51, 1849–1853. [Google Scholar] [CrossRef]
  6. He, X.; Chen, Y.; Zhao, G. (p + 1)/2-error linear complexity of generalized cyclotomic sequences. In ChinaCrypt2008; Chinese Association for Cryptologic Research: Wuhan, China, 2008; pp. 172–177. (In Chinese) [Google Scholar]
  7. Du, X.; Yan, T.; Xiao, G. Trace representation of some generalized cyclotomic sequences of length pq. Inf. Sci. 2008, 178, 3307–3316. [Google Scholar] [CrossRef]
  8. Sun, S.; Yan, T.; Sun, Y.; Yan, M. Computing the 2-Adic complexity of two classes generalized cyclotomic sequences. IEEE Access 2020, 8, 140478–140485. [Google Scholar] [CrossRef]
  9. Stamp, M.; Martin, C.F. An algorithm for the k-error linear complexity of binary sequences with period 2n. IEEE Trans. Inf. Theory 1993, 39, 1398–1401. [Google Scholar] [CrossRef]
  10. Wu, C.; Edemskiy, V.; Xu, C. On k-error linear complexity of binary sequences derived from Euler quotients modulo 2p. IEEE Access 2020, 8, 51477–51481. [Google Scholar] [CrossRef]
  11. Su, M.; Chen, L. The properties of the 1-error linear complexity of pn-periodic sequences over Fp. In Proceedings of the ISIT 2006, Seattle, WA, USA, 9–14 July 2006; pp. 1998–2002. [Google Scholar]
  12. Zhou, Y.; Han, Y.; Ding, Y. On the k-error linear complexity of sequences from function fields. Bull. Aust. Math. Soc. 2020, 102, 342–352. [Google Scholar] [CrossRef]
  13. Zhou, J.; Liu, W. On the k-error linear complexity for 2n-periodic sequences via cube theory. arxiv 2013, arXiv:1309.1829. [Google Scholar]
  14. Chang, Z.; Ke, P. On the error linear complexity spectrum of binary sequences with period of power of two. Chin. J. Electron. 2015, 24, 366–372. [Google Scholar] [CrossRef]
  15. Xiao, Z.; Zeng, X.; Li, C.; Helleseth, T. New generalized cyclotomic binary sequences of period p2. Des. Codes Cryptog. 2018, 86, 1483–1497. [Google Scholar] [CrossRef]
  16. Wu, C.; Xu, C.; Chen, Z.; Ke, P. On error linear complexity of new generalized cyclotomic binary sequences of period p2. Inform. Process Lett. 2019, 144, 9–15. [Google Scholar] [CrossRef]
  17. Alecu, A.; Sălăgean, A. An approximation algorithm for computing the k-error linear complexity of sequences using the discrete fourier transform. In Proceedings of the ISIT 2008, Toronto, ON, Canada, 6–11 July 2008; pp. 2414–2418. [Google Scholar]
  18. Chen, Z.; Wu, C. k-error linear complexity of binary cyclotomic generators. J. Commun. 2019, 40, 197–206. (In Chinese) [Google Scholar]
  19. Edemskiy, V.; Wu, C.; Xu, C. Improvements on k-error linear complexity of q-ary sequences derived from Euler quotients. Cryptologia 2022, 46, 148–166. [Google Scholar] [CrossRef]
  20. Yan, T.; Pazilaiti, A.; Du, L. On the 1-error linear complexity of two-prime generator. AIMS Math. 2022, 7, 5821–5829. [Google Scholar] [CrossRef]
  21. Whiteman, A.L. A family of difference sets. Ill. J. Math. 1962, 6, 107–121. [Google Scholar] [CrossRef]
  22. Ding, C.; Helleseth, T. New generalized cyclotomy and its applications. Finite Fields Their Appl. 1998, 4, 140–166. [Google Scholar] [CrossRef]
  23. Blahut, R.E. Transform techniques for error control codes. IBM J. Res. Dev. 1979, 23, 299–315. [Google Scholar] [CrossRef]
  24. MacWilliams, F.J.; Sloane, N.J.A. The Theory of Error-Correcting Codes; North-Holland: Amsterdam, The Netherlands, 1977. [Google Scholar]
  25. Yang, M.; Zhu, S. The distribution functions for the linear complexity of periodic sequences. J. Electron. (China) 2012, 29, 211–214. [Google Scholar] [CrossRef]
  26. Ding, C.; Helleseth, T. On the linear complexity of legendre sequences. IEEE Trans. Inf. Theory 1999, 44, 1276–1278. [Google Scholar] [CrossRef]
  27. Yan, T. Linear complexity of ding-helleseth generalized cyclotomic binary sequences of any order. J. Conv. Infor. Tech. 2012, 7, 1849–1853. [Google Scholar]
  28. Ding, C. Linear complexity of the generalized cyclotomic sequence of order 2. Finite Fields Their Appl. 1997, 3, 159–174. [Google Scholar] [CrossRef]
Table 1. The 1-error linear complexity of s.
Table 1. The 1-error linear complexity of s.
( v , w ) LC 1 ( s ) ( v , w ) LC 1 ( s )
(−3,3) p q (1,3) q ( p + 1 ) 2
(3,−3) p q (−1,−3) q ( p + 1 ) 2
(3,3) p q 1 (−1,3) q ( p + 1 ) 2 1
(−3,−1) 2 p q q + 1 2 (−1,1) p q + 1 2
(3,1) 2 p q q + 1 2 (1,−1) p q + 1 2
(3,−1) 2 p q q 1 2 (−1,−1) p q 1 2
Table 2. The 1-error linear complexity of s.
Table 2. The 1-error linear complexity of s.
( v , w ) LC 1 ( s ) ( v , w ) LC 1 ( s )
(−3,3) p q 1 (1,3) p q + q 2 2
(3,−3) p q 1 (−1,−3) p q + q 2 2
(3,3) p q 2 (−1,3) p q + q 4 2
(−3,−1) 2 p q q 1 2 (−1,1) p q p + q 1 2
(3,1) 2 p q q 1 2 (1,−1) p q p + q 1 2
(3,−1) 2 p q q 3 2 (−1,−1) p q p + q 3 2
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yan, C.; Tian, C. On the Stability of the Linear Complexity of Some Generalized Cyclotomic Sequences of Order Two. Mathematics 2024, 12, 2483. https://doi.org/10.3390/math12162483

AMA Style

Yan C, Tian C. On the Stability of the Linear Complexity of Some Generalized Cyclotomic Sequences of Order Two. Mathematics. 2024; 12(16):2483. https://doi.org/10.3390/math12162483

Chicago/Turabian Style

Yan, Chi, and Chengliang Tian. 2024. "On the Stability of the Linear Complexity of Some Generalized Cyclotomic Sequences of Order Two" Mathematics 12, no. 16: 2483. https://doi.org/10.3390/math12162483

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