Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>You simply can't do it this way with a polynomial like x^321 + ...;</strong></p> <p>If the polynomial is chosen well, you get a period length of 2^231 -1, and this is approximately 4.27 *10^96. If I'm not mistaken, this number is believed to exceed the number of atoms in the universe... (Strictly speaking, I'm referring to the posted C-code since I do not know php, but that certainly makes no difference.)</p> <p>However, there is a <strong>mathematical</strong> method to <strong>calculate the length of the period without doing a brute-force</strong> attack. Unfortunately, this can't be explained in a few lines. If you have a solid background in math (especially calculations in finite fields), I'll be glad to look for a helpful reference for you.</p> <p><strong>EDIT:</strong> The first step in calculating the period of the LFSR obtained by using a polynomial p(x) is to obtain a factorization of p(x) mod 2, i.e. in GF(2). To do this, I recommend using software like Mathematica or Maple if available. You could also try the freely available Sage, see e.g. <a href="http://www.sagemath.org/doc/constructions/polynomials.html" rel="nofollow">http://www.sagemath.org/doc/constructions/polynomials.html</a> for usage details.</p> <p>The period of p(x) is given by its order e, that means the smallest number such that p(x) divedes x^e+1. Unfortunately, I can't provide more information at the moment, it will take me several days to look for the lecture notes of a course I took several years ago...</p> <p>A small example: p(x) = (x^5+x^4+1) = (x^3+x+1)*(x^2+x+1), the individual periods are 2^3-1=7 and 2^2-1=3, and since all polynomial factors are different, the period of p(x) is 3*7=21, which I also verified in C++.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload