Linear complexity of Ding-Helleseth generalized cyclotomic sequences of order eight
Yana Liang, Jiali Cao, Xingfa Chen, Shiping Cai, Xiang Fan

TL;DR
This paper precisely determines the linear complexity of Ding-Helleseth generalized cyclotomic sequences of order eight, demonstrating their high unpredictability and security suitability for cryptographic applications.
Contribution
It provides an explicit calculation of the linear complexity for DH-GCS$_{8}$ sequences using cyclotomic numbers, extending understanding of their cryptographic strength.
Findings
Linear complexity of DH-GCS$_{8}$ sequences is explicitly computed.
Results align with the lower bound $(pq-1)/2$, indicating high security.
SageMath code examples validate the theoretical findings.
Abstract
During the last two decades, many kinds of periodic sequences with good pseudo-random properties have been constructed from classical and generalized cyclotomic classes, and used as keystreams for stream ciphers and secure communications. Among them are a family DH-GCS of generalized cyclotomic sequences on the basis of Ding and Helleseth's generalized cyclotomy, of length and order for distinct odd primes and . The linear complexity (or linear span), as a valuable measure of unpredictability, is precisely determined for DH-GCS in this paper. Our approach is based on Edemskiy and Antonova's computation method with the help of explicit expressions of Gaussian classical cyclotomic numbers of order . Our result for is compatible with Yan's low bound of the linear complexity for any order , which means high enough to…
| or | ||
| or | ||
| , | ||
|---|---|---|
| , | ||
| , | ||
| , | ||
| or | |||
| and | |||
| and | |||
| 17 | 41 | 696 | 696 | 17 | 73 | 1204 | 916 | 17 | 89 | 1468 | 764 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 17 | 137 | 2328 | 2328 | 17 | 233 | 3844 | 2916 | 17 | 281 | 4776 | 2536 |
| 17 | 313 | 5320 | 5320 | 17 | 409 | 6952 | 6952 | 17 | 457 | 7768 | 7768 |
| 41 | 73 | 2956 | 2956 | 41 | 89 | 3604 | 2724 | 41 | 97 | 3976 | 3976 |
| 41 | 113 | 4632 | 4632 | 41 | 137 | 5616 | 5616 | 41 | 193 | 7912 | 7912 |
| 41 | 233 | 9436 | 7116 | 41 | 257 | 10408 | 7848 | 41 | 313 | 12832 | 12832 |
| 41 | 337 | 13648 | 13648 | 41 | 353 | 14472 | 14472 | 41 | 409 | 16768 | 16768 |
| 41 | 433 | 17752 | 17752 | 41 | 449 | 18408 | 18408 | 41 | 457 | 18736 | 18736 |
| 73 | 89 | 3248 | 3248 | 73 | 113 | 4180 | 8212 | 73 | 137 | 5068 | 9964 |
| 73 | 233 | 8504 | 8504 | 73 | 257 | 9380 | 9380 | 73 | 281 | 10396 | 20476 |
| 73 | 353 | 13060 | 25732 | 73 | 401 | 29236 | 29236 | 73 | 449 | 24676 | 32740 |
| 89 | 97 | 8588 | 8588 | 89 | 113 | 5084 | 10012 | 89 | 137 | 9156 | 12148 |
| 89 | 193 | 12908 | 17132 | 89 | 233 | 10368 | 10368 | 89 | 241 | 16124 | 21404 |
| 89 | 257 | 11436 | 11436 | 89 | 281 | 12644 | 24964 | 89 | 313 | 20948 | 27812 |
| 89 | 337 | 14996 | 14996 | 89 | 401 | 35644 | 35644 | 89 | 409 | 18404 | 36356 |
| 89 | 433 | 28988 | 38492 | 89 | 449 | 20204 | 39916 | 89 | 457 | 30596 | 40628 |
| 97 | 137 | 13288 | 13288 | 97 | 233 | 22484 | 16916 | 97 | 281 | 27256 | 20536 |
| 113 | 137 | 11672 | 15480 | 113 | 233 | 26212 | 13220 | 113 | 313 | 35368 | 35368 |
| 113 | 409 | 34792 | 46216 | 113 | 457 | 38872 | 51640 | 137 | 193 | 26440 | 26440 |
| 137 | 233 | 31804 | 23916 | 137 | 241 | 33016 | 33016 | 137 | 257 | 35080 | 35080 |
| 137 | 281 | 38496 | 19456 | 137 | 313 | 42880 | 42880 | 137 | 337 | 46000 | 23152 |
| 137 | 353 | 48360 | 36392 | 137 | 401 | 54936 | 54936 | 137 | 433 | 59320 | 59320 |
| 137 | 449 | 61512 | 61512 | 137 | 457 | 62608 | 62608 | 193 | 233 | 44852 | 33716 |
| 193 | 281 | 54232 | 40792 | 233 | 241 | 56036 | 56036 | 233 | 257 | 29940 | 29940 |
| 233 | 281 | 32876 | 65356 | 233 | 313 | 54716 | 72812 | 233 | 337 | 39260 | 39260 |
| 233 | 353 | 41300 | 82132 | 233 | 401 | 70116 | 93316 | 233 | 409 | 71516 | 95180 |
| 233 | 433 | 50660 | 100772 | 233 | 449 | 78516 | 104500 | 233 | 457 | 106364 | 106364 |
| 257 | 281 | 36248 | 72088 | 257 | 313 | 60344 | 80312 | 257 | 409 | 78872 | 104984 |
| 257 | 457 | 58952 | 117320 | 281 | 313 | 44272 | 87952 | 281 | 353 | 99192 | 99192 |
| 281 | 409 | 57808 | 114928 | 281 | 433 | 91432 | 121672 | 281 | 457 | 96496 | 128416 |
| 313 | 353 | 110488 | 83032 | 313 | 401 | 125512 | 125512 | 313 | 449 | 140536 | 140536 |
| 353 | 409 | 108472 | 144376 | 353 | 457 | 121192 | 161320 | 401 | 409 | 164008 | 164008 |
| 401 | 457 | 183256 | 183256 | 409 | 449 | 183640 | 183640 | 449 | 457 | 205192 | 205192 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Linear complexity of Ding-Helleseth generalized cyclotomic sequences
of order eight
Yana Liang
Jiali Cao
Xingfa Chen
Shiping Cai
Xiang Fan
School of Mathematics and Statistics, Zhaoqing University, Zhaoqing 526061, China
School of Applied Mathematics, Guangdong University of Technology, Guangzhou 510520, China
Department of Mathematics, Guangdong University of Education, Guangzhou 510303, China
School of Mathematics, Sun Yat-sen University, Guangzhou 510275, China
Abstract
During the last two decades, many kinds of periodic sequences with good pseudo-random properties have been constructed from classical and generalized cyclotomic classes, and used as keystreams for stream ciphers and secure communications. Among them are a family DH-GCSd of generalized cyclotomic sequences on the basis of Ding and Helleseth’s generalized cyclotomy, of length and order for distinct odd primes and . The linear complexity (or linear span), as a valuable measure of unpredictability, is precisely determined for DH-GCS8 in this paper. Our approach is based on Edemskiy and Antonova’s computation method with the help of explicit expressions of Gaussian classical cyclotomic numbers of order . Our result for is compatible with Yan’s low bound of the linear complexity for any order , which means high enough to resist security attacks of the Berlekamp–Massey algorithm. Finally, we include SageMath codes to illustrate the validity of our result by examples.
keywords:
Generalized cyclotomic sequence, Linear complexity, Cyclotomic number
MSC:
[2010]11B50, 94A55, 94A60
1 Introduction
Pseudo-random sequences are widely used in many fields such as simulation, software testing, channel coding, ranging systems, radar systems, global positioning systems, spread-spectrum communication systems, code-division multiple-access systems, and especially in stream ciphers and secure communications. When employed for cryptography, they should possess certain unpredictable properties, especially with a high linear complexity. The definition of linear complexity (or linear span) is the length of the shortest linear feedback shift register (LFSR) that generates the sequence. Since the Berlekamp–Massey algorithm [3, 18] can deduce the whole sequence from a knowledge of just consecutive digits, a “high” linear complexity should be at least one half of the length (or minimum period) of the sequence.
Certain cyclotomic sequences, such as Legendre sequences and Hall’s sextic residue sequences, possess good pseudo-random properties (especially with high linear complexities [8, 15]), and have been widely used as keystreams in private-key cryptosystems. Nowadays, a well-known technique to design a sequence with a high linear complexity is based on classical or generalized cyclotomy [4]. There are many kinds of generalized cyclotomic sequences, binary and non-binary, of different lengths. One family of them are based on Whiteman’s generalized cyclotomy [20], of length for distinct odd primes and , with a high linear complexity precisely determined when [6, 1, 22]. However, the imbalance (with more ’s than [math]’s in each period) makes them improper for applications.
Another family of generalized cyclotomic sequences of length and order , denoted by DH-GCSd in this paper, are based on Ding and Helleseth’s generalized cyclotomy [7]. (Also see [12] for a unified approach to Whiteman’s and Ding-Helleseth’s generalized cyclotomy.) The linear complexity of DH-GCSd when , , is explicitly determined in [2, 23, 11], and ensured by Yan [21] to be at least for any order . We contribute to this line by calculating the linear complexity of DH-GCS8, using the computation method of Edemskiy and Antonova [10, 11] with the help of Gaussian classical cyclotomic numbers.
First let us introduce the definition of the Ding-Helleseth generalized cyclotomic sequences DH-GCSd.
Let and be distinct odd primes with .
- 2.
Let .
- 3.
By the Chinese remainder theorem, take a common primitive root of both and , and take an integer such that and .
- 4.
Let denote the multiplicative group consisting of all invertible elements in the residue ring
[TABLE]
where denotes the residue class of modulo . Then
[TABLE]
Whiteman [20] proved that every element of can be written uniquely of the form with and . Here the uniqueness means that
[TABLE]
Definition**.**
[7]* Ding-Helleseth generalized cyclotomic classes* of order with respect to are
[TABLE]
where , and let
[TABLE]
If , then , and . These definitions concern only .
- 2.
If , then (the empty set).
- 3.
, , and .
- 4.
, and .
The Ding-Helleseth generalized cyclotomic sequence of order (DH-GCSd) with respect to is defined (cf. [2, 23, 11]) as the sequence with
[TABLE]
This sequence possesses the minimum period , and the almost balance of
[TABLE]
symbols ’s and symbols [math]’s in a period.
Our main result, an explicit expression of the linear complexity of DH-GCS8 in terms of and , can be stated in the following Theorem 1, and will be proved in Section 4.
Theorem 1**.**
Given primes with , regardless of the choice of a common primitive root of theirs, the linear complexity of the Ding-Helleseth generalized cyclotomic sequence with respect is
[TABLE]
Here denotes the -th power symbol. Namely, there exists an integer such that .
2 Computation methods
For a sequence over a field , its linear complexity (or linear span) is defined as the least positive integer such that there exists constants satisfying
[TABLE]
If such do not exist, let . For a ultimately periodic sequence, such exists. A corresponding polynomial
[TABLE]
with is called the minimal polynomial of the sequence .
For a periodic sequence of period , let . Then the minimal polynomial and linear complexity of can be given by [17]:
[TABLE]
Moreover, assume that is binary (i.e., ) and is odd. Let be a primitive -th root of unity in an extension field of . Then , and
[TABLE]
For the Ding-Helleseth generalized cyclotomic sequence DH-GCSd with minimum period ,
[TABLE]
Let us recall a method of Edemskiy and Antonova [10, 11] to compute the linear complexity of DH-GCSd.
Let be a primitive -th root of unity in an extension field of .
- 2.
Let and . Then (resp. ) is a primitive -th (resp. -th) root of unity.
Definition**.**
Let us introduce the cyclotomic polynomials
[TABLE]
and quote from [9, 11] the following properties for and :
, and .
- 2.
.
- 3.
, and .
- 4.
Let . Then , , , and
[TABLE]
where denotes the discrete logarithm of in the field relative to the basis , i.e., , and similarly .
Lemma 2** ([11, Theorem 1]).**
Let and Then
[TABLE]
Definition**.**
For DH-GCSd, define a matrix of order as follows.
Let if with . As and , .
- 2.
Let if with . As and , .
- 3.
Let if with . As and , and .
- 4.
Let
Definition 3**.**
For a vector , define a transformation by
[TABLE]
for an integer . For any with , define . Let
[TABLE]
Proposition 4**.**
If , then we have ,
[TABLE]
and for with . Note that
[TABLE]
Lemma 5**.**
To calculate the linear complexity and minimal polynomial of DH-GCSd*, it suffices to determine the zero elements of the matrix . As , , , we have*
[TABLE]
Let , , and , then the minimal polynomial of DH-GCSd* is*
[TABLE]
The choice of a primitive -th root of unity gives some flexibility for our computation.
Lemma 6**.**
For any , take any , and let , , . Then , , are primitive -th, -th, -th root of unity respectively. Note that , and for . Therefore,
[TABLE]
In the following computation, , , and can be written freely up to transformations of the form , by some good choice of .
For an even divisor of , the values of (with ) can be deduced from the values of (with ) by the following lemma read off from [9, §3], with the help of classical cyclotomic numbers of order , introduced by Gauss in his famous book “Disquisitiones Arithmeticae” [14], defined as
[TABLE]
For fixed , note that depends only on the residue classes and .
Lemma 7**.**
For , we have and
[TABLE]
Proof.
By definition, , and . For fixed integers and , as , we see that
[TABLE]
As , we see that
[TABLE]
Also note that , so , and in particular . In all, we have
[TABLE]
Corollary 8**.**
Suppose that . Then , and
[TABLE]
Proof.
By definition, for . So for . Then the last expression for is clear. ∎
3 Calculation of
In this section we calculate (up to transformations ), by Lemma 7 and Corollary 8, from the values of and the Gaussian classical cyclotomic numbers for .
Let be a prime for integers , , , with .
- 2.
As , we have .
- 3.
As , we have ; .
Gauss proved in 1828 that (see his Werke Vol II [13]):
; .
As , is a quadratic residue modulo . Let with . As
[TABLE]
for . Moreover, . So or . As
[TABLE]
(see [5, §11]), by Lemma 7, we can solve as follows.
Lemma 9** ([9, §3.1]).**
Up to transformations (by a good choice of as in Lemma 6), we have
[TABLE]
Here is a root of the equation in .
From [16, Appendix] we read off Gaussian classical cyclotomic numbers for as in Table 1. This table uses a particular choice for the sign of (determined by the choice of the primitive root modulo ), which makes no difference for our result of .
From values of and for as above, Lemma 7 gives the values of and for in . So the sets lie in Table 2, a list the sets with values of and given in .
Here is a root of the equation in . Note that is also a root of the equation , and .
Now we calculate in four cases according to and .
3.1 Case: and
.
- 2.
.
- 3.
.
Let , , , and , with integers , , and . Note that . So . Therefore,
[TABLE]
By a good choice of , we may assume
[TABLE]
Note that , and . So
[TABLE]
- 2.
For , , and . So
[TABLE]
- 3.
Note that . So
[TABLE]
Let Always we have or . By Corollary 8,
[TABLE]
Therefore, up to transformations , we have
[TABLE]
3.2 Case: and
.
- 2.
.
- 3.
.
Let , , , and , with integers , , and . Note that .
Note that , and
[TABLE]
By a good choice of , we may assume
[TABLE]
Note that , and
[TABLE]
- 2.
For , , and
[TABLE]
Let . Always we have or . By Corollary 8,
[TABLE]
Therefore, up to transformations , we have
[TABLE]
3.3 Case: and
.
- 2.
.
- 3.
.
Let , , and , with integers , , and . Note that . Also note that
[TABLE]
By a good choice of , we may assume
[TABLE]
Note that , and
[TABLE]
- 2.
Note that , and
[TABLE]
- 3.
Note that , and
[TABLE]
- 4.
Note that , and
[TABLE]
Note that , and . Let . Always we have . By Corollary 8,
[TABLE]
Therefore, when and , up to transformations , we have
[TABLE]
3.4 Case: and
.
- 2.
.
- 3.
.
Let , , and , with integers , , and . Note that . Also note that
[TABLE]
By a good choice of , we may assume
[TABLE]
Note that , and
[TABLE]
- 2.
Note that , and
[TABLE]
- 3.
Note that , so
[TABLE]
- 4.
Note that , so
[TABLE]
Note that , and . Let . Always we have . By Corollary 8,
[TABLE]
Therefore, when and , up to transformations , we have
[TABLE]
In view of the above four cases, we get the following criterion for .
Proposition 10**.**
Let be an odd prime with and integers ,. Let be a primitive root modulo , be a primitive -th roots of unity in an extension field of , and for . Then the following conditions are equivalent.
(1)$$\left(\frac{2}{p}\right)_{8}=1, i.e., is an octic residue modulo .
* for any .*
* for any .*
* Either and , or and .*
Proof.
: As , let with . For . , so .
is obvious. by the above expressions of in four cases.
: Let with . Note that
[TABLE]
When holds, we may assume or , which should be invariant under the action of . So , and thus . ∎
4 Linear complexity of DH-GCS8
This section is a proof of Theorem 1. Let be the Ding-Helleseth generalized cyclotomic sequence DH-GCS8, with the matrix . Note that as , by Lemma 5,
[TABLE]
where for with .
Section 3 gives explicit expressions of . Clearly, if we replace by , and replace by , then we get as in Table 3.
Therefore, are as in Table 4, with
[TABLE]
Note that and
For ,
[TABLE]
- 2.
For with ,
[TABLE]
Especially when and ,
[TABLE]
Therefore, we count pairs in satisfying as in Table 5.
In fact, the above argument gives an accounting of the zeros in the matrix , and can be easily translated into the statement of Theorem 1. Moreover, the result can be rewritten more precisely as the following Theorem 11.
Theorem 11**.**
The linear complexity of the Ding-Helleseth generalized cyclotomic sequence of length and order for primes and is
[TABLE]
Remark*.*
The twelve cases in Theorem 11 all happen for some primes and with . Indeed, if we define a function
[TABLE]
for and a prime , then the three values of , and are independent, with examples in Table 6. Note here that as .
5 Verifying examples by SageMath
This section illustrates the validity of Theorem 1 by testing examples, with the help of SageMath [19], a free open-source mathematics software system based on Python and many open-source packages. Let us write down SageMath codes to compute two things:
The linear complexity as , for the Ding-Helleseth generalized cyclotomic sequence DH-GCS with respect to odd primes and a common primitive root of theirs, where .
def LC(p,q,g):
f = mod(g,p).crt(mod(1,q)); K.<x> = GF(2)[]
d = gcd(p-1,q-1); e = (p-1)*(q-1)/d; S = 0
**for** i **in** **range**(d/2,d):
**for** t **in** **range**(e/d):
gidt = g^(i+d*t)
**for** v **in** **range**(d): S = S + x^((gidt * f^v)%(p*q))
**for** t **in** **range**((p-1)/d): S = S + x^(q * (g^(i+d*t)%p))
**for** t **in** **range**((q-1)/d): S = S + x^(p * (g^(i+d*t)%q))
**return** p*q - gcd(x^(p*q)-1,S).degree()
- 1.
The result in Theorem 1 for odd primes and with .
def L(p,q):
rp = mod(2,p).log(); rq = mod(2,q).log(); rpq = mod(p,q).log();
L = p*q - 1
**if** rq%8==0: L = L - (q-1)/2
**if** rp%8==0:
L = L - (p-1)/2
**if** rq%4==0 **or** rpq%4==0: L = L - (p-1)*(q-1)/2
**if** rp%8==4 **and** rq%4!=0 **and** rpq%4==2: L = L - (p-1)*(q-1)/2
**if** rp%4==0 **and** rq%4!=0 **and** rpq%2==1: L = L - (p-1)*(q-1)/4
**return** L
The following SageMath codes verify Theorem 1 for odd primes with a common primitive root given randomly.
D = 500; import random
for p in prime_range(D):
**for** q **in** prime_range(p,D):
**if** gcd(p-1,q-1) != 8: **continue**
Lpq = L(p,q); Lqp = L(q,p)
R = random.randint(0,p*q)
**for** g **in** **range**(R,R+p*q):
mp = mod(g,p).is_primitive_root()
mq = mod(g,q).is_primitive_root()
**if** mp == mq == True: **break**
**if** LC(p,q,g) != Lpq:
**print** ("Wrong␣for␣p␣=␣%s,␣q␣=␣%s,␣g␣=␣%s" % (p,q,g))
**if** LC(q,p,g) != Lqp:
**print** ("Wrong␣for␣p␣=␣%s,␣q␣=␣%s,␣g␣=␣%s" % (q,p,g))
**else**:
**print** ("p=%3s,␣q=%3s,␣g=%6s,␣L(p,q)=%6s,␣L(q,p)=%6s" %
(p,q,g,Lpq,Lqp))
Without installation of SageMath, one can simply run the above codes online in SageMathCell or CoCalc. There is a shared web page of the codes and the output of a run on CoCalc:
https://cocalc.com/share/6ac1f09c-5057-4be6-bd80-8bd567792ee9/Pub.sagews?viewer=share
6 Conclusion
This paper precisely determines the linear complexity of the Ding-Helleseth generalized cyclotomic sequence DH-GCS8 of length , explicit in terms of and , as in Theorem 1 or Theorem 11. Especially we obtain the following facts.
The linear complexity is independent of the choice of a common primitive root of and .
- 2.
The linear complexity has an expression
[TABLE]
with and depending only on the values of and .
- 3.
The linear complexity is no less than , which confirms the low bound in Yan [21]. This is a high linear complexity to resist security attacks of the Berlekamp–Massey algorithm.
We can also read off the minimal polynomial of DH-GCS8 from our calculation. For given primes and with , by a good choice of a primitive -th root of unity in an extension field of , the matrix can be precisely determined by the expressions of in Section 3, in Table 3, and in Table 4. Then
[TABLE]
where , , and .
In the end, let us list the linear complexity for all primes with , given by SageMath. This list can extend to much larger , but we choose just because of the limitation of space to write here.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Bai et al. [2005 a] Bai, E., Fu, X., & Xiao, G. (2005 a). On the linear complexity of generalized cyclotomic sequences of order four over Z p q ∗ subscript superscript 𝑍 𝑝 𝑞 Z^{*}_{pq} . IEICE Trans. Fundam. , E 88-A , 392–395. URL: {http://search.ieice.org/bin/summary.php?id=e 88-a_1_392} .
- 2Bai et al. [2005 b] Bai, E., Liu, X., & Xiao, G. (2005 b). Linear complexity of new generalized cyclotomic sequences of order two of length p q 𝑝 𝑞 pq . IEEE Trans. Inform. Theory , 51 , 1849–1853. doi: 10.1109/TIT.2005.846450 . · doi ↗
- 3Berlekamp [1968] Berlekamp, E. R. (1968). Algebraic coding theory . Mc Graw-Hill Book Co., New York-Toronto, Ont.-London.
- 4Cusick et al. [2004] Cusick, T. W., Ding, C., & Renvall, A. (2004). Stream ciphers and number theory volume 66 of North-Holland Mathematical Library . (Revised ed.). Elsevier Science B.V., Amsterdam.
- 5Dickson [1935] Dickson, L. E. (1935). Cyclotomy, Higher Congruences, and Waring’s Problem. Amer. J. Math. , 57 , 391–424. doi: 10.2307/2371217 . · doi ↗
- 6Ding [1997] Ding, C. (1997). Linear complexity of generalized cyclotomic binary sequences of order 2 2 2 . Finite Fields Appl. , 3 , 159–174. doi: 10.1006/ffta.1997.0181 . · doi ↗
- 7Ding & Helleseth [1998] Ding, C., & Helleseth, T. (1998). New generalized cyclotomy and its applications. Finite Fields Appl. , 4 , 140–166. doi: 10.1006/ffta.1998.0207 . · doi ↗
- 8Ding et al. [1998] Ding, C., Helleseth, T., & Shan, W. (1998). On the linear complexity of Legendre sequences. IEEE Trans. Inform. Theory , 44 , 1276–1278. doi: 10.1109/18.669398 . · doi ↗
