The Cycle Structure of LFSR with Arbitrary Characteristic Polynomial over Finite Fields

Zuling Chang, Martianus Frederic Ezerman, San Ling, Huaxiong Wang

Abstract

Linear Feedback Shift Registers (LFSRs) are essential components in cryptography, coding theory, and bioinformatics. While the cycle structure of LFSRs with primitive characteristic polynomials is well-documented, arbitrary polynomials present a significant mathematical challenge. This paper provides a definitive framework for determining the exact cycle structure of LFSRs for any configuration over finite fields. By introducing a novel state representation and an algorithm based on the Generalized Chinese Remainder Theorem, the authors enable cycle membership verification significantly faster than traditional exhaustive search methods.

Introduction

Linear Feedback Shift Registers (LFSRs) generate periodic sequences of symbols based on a characteristic polynomial. They serve as fundamental building blocks for stream ciphers, error-correcting codes, and DNA sequencing analysis. A critical open problem has been determining the "cycle structure"—the number and lengths of all possible sequences—for LFSRs with arbitrary characteristic polynomials.

When a polynomial is a complex product of various irreducible factors, mapping every possible cycle and identifying a starting state for each is non-trivial. This mapping is vital for the "cycle joining method," which constructs de Bruijn sequences—sequences containing every possible sub-string of a fixed length. This paper addresses this gap by providing a complete algebraic solution.

Methods

The authors employ a "divide and conquer" algebraic strategy to decompose the problem:

  1. Polynomial Decomposition: The arbitrary characteristic polynomial $f(x)$ is broken into its irreducible factors $g_i(x)^{b_i}$. Since the set of all sequences is a direct sum of sequences generated by these factors, the problem is solved for individual components and then reassembled.
  2. D-morphisms: To handle factors raised to a power (e.g., $g(x)^2$), the authors adapt "D-morphisms" to recursively "lift" states from simpler cycles to more complex ones.
  3. The $P$ Matrix: A specific $n \times n$ matrix $P$ is introduced to provide a one-to-one correspondence between the global state of a complex LFSR and the combined states of its irreducible components.
  4. CRT-based Verification: The authors propose Algorithm 1 to determine if two states belong to the same cycle. Instead of exhaustive shifting, the algorithm decomposes states, calculates relative shifts in components, and uses the Generalized Chinese Remainder Theorem (CRT) to reconcile these into a single global shift.

Results and Discussion

The paper's primary contribution is Theorem 1, which provides an explicit formula for the cycle structure of $\Omega(f(x))$ for any monic polynomial $f(x)$. The proposed Algorithm 1 improves computational efficiency dramatically. Traditional verification is tied to the Least Common Multiple (LCM) of component periods, which can be astronomically large. In contrast, the new method's complexity is tied to the sum of these periods, representing a massive leap in efficiency.

Table showing numerical examples of states and nonzero cycles for various polynomials.

The authors validated their methods through rigorous formal proofs and detailed numerical examples. For instance, Example 4 explores a degree-16 polynomial over $\mathbb{F}_3$, resulting in a state space of approximately 43 million states. The table above illustrates how specific states are mapped to their corresponding nonzero cycles for different polynomial configurations.

Conclusion

This research provides the necessary mathematical "map" to join cycles more efficiently, facilitating the creation of $q$-ary de Bruijn sequences for applications in neuroscience and biochemistry. While the method is highly efficient, the authors note that finding associated primitive polynomials for very high-degree irreducible polynomials remains computationally demanding. Future work may involve applying these linear maps to non-linear feedback shift registers (NLFSRs), which are prevalent in modern cryptographic hardware but remain mathematically elusive.

Summary updated

BibTeX
@article{chang2018cycle,
  author = {Zuling Chang and Martianus Frederic Ezerman and San Ling and Huaxiong Wang},
  title = {{The Cycle Structure of LFSR with Arbitrary Characteristic Polynomial over Finite Fields}},
  journal = {Cryptogr. Commun},
  year = {2018},
  doi = {10.1007/s12095-017-0273-2},
}
Figure