1. Introduction
Stream ciphers are fast encryption algorithms since they consist of applying a bit-wise XOR operation among the bits of the keystream sequence and the message to obtain the ciphertext. The same bit-wise XOR operation between the ciphertext and the keystream is done to recover the original message.
Many keystream generators are based on maximal-length Linear Feedback Shift Registers (LFSRs) [
1] because they offer several advantages due to their performance. They also have an easy hardware and software implementation in cryptographic applications. For example, some widely used stream ciphers based on LFSRs are the cryptosystem E0 for Bluetooth [
2], the A5/1 for GSM use [
3], or the SNOW 2.0 used in UMTS 3G networks [
4].
The output sequences of a maximal-length LFSR, whose characteristic polynomial is primitive, are called PN -sequences [
5]. These sequences have the largest period and present good randomness properties as balancedness, large period, low correlation, excellent runs distribution, and so forth. However, they are easily predictable due to their inherent linearity. In order to break this linearity, but at the same time maintaining the pseudorandomness characteristics, different design techniques are applied—non-linear filtering, combinational generators, clock-controlled generators or the irregular decimation of PN-sequences, among others.
We focus our attention on a particular kind of stream ciphers based on LFSRs where an irregular decimation is applied: the class of shrinking generators [
6,
7,
8,
9,
10]. The shrinking generator is a pseudorandom number generator based on a simple combination of two LFSRs which are clocked synchronously [
7]. Its simplicity and efficiency of implementation, in addition to the generation of sequences with good cryptographic properties, make it suitable for its real use in stream cipher cryptosystems. For example, the shrinking generator is part of the internal structure of different stream ciphers as the EP0619659A2 [
11], an European patent application; or the Decim
, a hardware oriented stream cipher submitted to the ECRYPT Stream CipherProject (eSTREAM) [
12], among other applications [
6,
13].
From the shrinking generator emerged a great family of decimation-based sequence generators, which are improved versions of this or themselves—the self-shrinking generator [
10], the generalized self-shrinking generator [
8], the modified self-shrinking generator [
9] and the
t-modified self-shrinking generator [
14]; there exists a complete guide in [
6] that offers a thorough study of all these generators, their fundamentals and applications. These generators are fast, easy and with low implementation costs to generate good cryptographic sequences. The authors of [
15] presented a statistical and graphical study of the randomness of the sequences generated by the generalized self-shrinking generator that prove their suitability for cryptographic applications.
The output sequences of a shrinking generator, called shrunken sequences, have been widely studied in several mathematical fields in the last decades. For instance, they have been considered particular solutions of a kind of linear difference equations [
16,
17]; they have also been studied as the output sequences of linear elementary cellular automata (CA) [
18]. Furthermore, the shrunken sequences can be expressed as the interleaving of shifted versions of a PN-sequence [
19,
20]. In [
18], the authors determined how to compute the shifts of the interleaved sequences that compose the shrunken sequence. This fact can be used advantageously to design cryptanalytic attacks against this generator [
18,
21,
22,
23,
24]. A natural way to deal with this vulnerability is to alter the shifts or interleave PN-sequences of different primitive polynomials. In this paper, we study the resultant sequences of interleaving shifted versions of the same PN-sequence with different shifts. We analyze the conditions that must satisfy these shifts to obtain interleaving sequences with high linear complexity and long period.
In
Section 2, we introduce some preliminary concepts and results about the shrinking generator; we define the main concept of interleaving sequence and we check that the shrunken sequence can be expressed as an interleaving of PN-sequences. In
Section 3, we analyze the period and the linear complexity of the resultant sequences of interleaving
shifted versions of a given PN-sequence. We study, in depth, the cases of 2 and 4 interleaving sequences obtaining the amount of them which have certain values for linear complexity. In
Section 4, we give some preliminary results about the case of interleaving
t PN-sequences. In
Section 6, we present the main conclusions of our research and the future work.
2. Interleaving Sequences in the Shrinking Generator
First of all, we recall the concept of decimation. The
decimation of a sequence
by
d is a new sequence obtained by taking every
d-th term of
, that is,
[
25].
Let be the Galois field of two elements. In this section, we consider two maximal-length LFSRs, and , with characteristic polynomials , lengths and with and , and and the periods of the corresponding PN-sequences, respectively. Besides, the PN-sequences generated by both registers are and , respectively, with . From now on, we denote any sequence by , without loss of generality.
The
shrinking generator [
7] is composed of two maximal-length LFSRs,
and
, with the properties mentioned before. The PN-sequence
generated by
decimates the PN-sequence
produced by
. The decimation rule is very simple—given two bits
and
, for
, of both PN-sequences, the output sequence
is obtained as follows:
The sequence
is called the
shrunken sequence and its period is
. The linear complexity of this sequence, denoted by
, satisfies
and its characteristic polynomial has the form
, where
and
is a primitive polynomial of degree
[
26].
Notice that the shrunken sequence is obtained by irregular decimation of a PN-sequence, as we can see in the following example.
Example 1. Consider the LFSR with characteristic polynomial and initial state . Consider also the LFSR with characteristic polynomial and initial state . The shrunken sequence can be computed in the following way: The sequence has period 14 and it is not difficult to check that its characteristic polynomial is , consequently its linear complexity is 6.
It is worth mentioning that all the results that appear in this work are valid for large values of L, where L is the length of the LFSR that generates the corresponding PN-sequences in each case. We use small examples in order to illustrate the ideas. In practical applications, the recommended values in the shrinking case are , so the key has at least 128 bits.
The following definition introduces one of the main concepts of this paper.
Definition 1. We say that the sequence is obtained interleaving the sequences , , …, , all of them of period T, if it has the following form: We call this sequence a t-interleaving sequence.
From now on, we always consider that these t sequences for , are (left circular) shifted versions of a given PN-sequence . Notice that, in this case, if the characteristic polynomial of is a primitive polynomial of degree L, then the resultant t-interleaving sequence is almost balanced as its number of 1s is .
The following result shows us that the shrunken sequence is an -interleaving sequence.
Theorem 1 ([27] Theorem 3.1).The sequences obtained decimating by (distance) the shrunken-sequence are PN-sequences with period . We call these sequences the interleaved PN-sequences of the shrunken sequence. It is worth noticing that the interleaved PN-sequences of the shrunken sequence correspond to shifted versions of the same PN-sequence. The following example illustrate the previous results.
Example 2. Consider the LFSR with characteristic polynomial , and initial state . The corresponding PN-sequence has period . Consider also the LFSR with characteristic polynomial and initial state . The corresponding PN-sequence has period . The shrunken-sequence is given by: This sequence has period and it is possible to check that the characteristic polynomial is , this is, . If we decimate the shrunken sequence by (distance) , we obtain 4 PN-sequences: Notice that the characteristic polynomial of the four PN-sequences is (the reciprocal polynomial of ), that is, the four PN-sequences are shifted versions of the same sequence.
The next theorem shows us how to obtain the characteristic polynomial of the interleaved PN-sequences.
Theorem 2 ([27] Theorem 3.3).The primitive polynomial that generates the interleaved PN-sequences of the shrunken sequence can be computed as where is root of . If , then the polynomial is the reciprocal polynomial of .
Note that the characteristic polynomial of the shrunken sequence is , and only depends on . The polynomial only affects to the power m. In this way, given a fixed polynomial , every primitive polynomial with degree would provide the same .
Example 3. Consider again Example 2. Notice that where is root of . Observe that is the reciprocal polynomial of .
It is worth noticing that if is the primitive polynomial that generates the interleaved PN-sequences of the shrunken sequence, then the polynomial also generates the shrunken sequence. However, this polynomial might not be the characteristic polynomial. In some cases, the characteristic polynomial has the form , with .
The interleaved PN-sequences of the shrunken sequence are shifted versions of the same PN-sequence, and these shifts can be determined [
18]. Denote each one of the
interleaved PN-sequences by:
The shifts , with , depend on the positions of the ones in the PN-sequence generated by in the shrinking process. The following theorem gives us a way to compute these shifts.
Theorem 3 ([18] Proposition 2).Let , such that . Denote by the set of positions of the 1s in the PN-sequence generated by in its first period. We have that Example 4. Consider again Example 2. We have that the interleaved sequences of the shrunken sequence are: The four PN-sequences , for , have the same characteristic polynomial , thus all of them are shifted versions of the same PN-sequence. We can rename them as: We consider, without loss of generality, that the last three PN-sequences are shifted versions of the first one. From Theorem 3, we know that these shifts , for , depend on the ones in the PN-sequence generated by in the shrinking process. In order to obtain these values, we have to find a value δ such that . In this case, . Now, we know that the ones in are in the positions , thus: and, therefore,
It is easy to check (see Equation (1)) that the second PN-sequence starts in the 13-th position of the first PN-sequence (underlined bit), the third in the 11-th position (bit in bold) and the last one in the 7-th position (overlined bit). The weakness of the shrunken sequence lies in the fact that the shifts of the interleaved sequences can be determined. This means that, a shrunken sequence cannot be obtained from some random shifted versions of a given PN-sequence; on the contrary, the shifts are known as we saw before. In this fact our research begins.
3. Interleaving Shifted Versions of the Same PN-Sequence
In this section, we study the resultant sequences of interleaving any shifted versions of the same PN-sequence, that is, the so-called t-interleaving sequences. We determine certain conditions on the shifts in order to obtain interleaving sequences with high linear complexity, long period and good cryptographic properties.
In the following subsections, we analyze the cases of interleaving 2 and 4 shifted versions of a same PN-sequence with a view to establish general conditions for the PN-sequences case.
3.1. Analysis of 2-Interleaving Sequences
Consider a primitive polynomial of degree L. If we interleave two shifted versions of the same PN-sequence of period , then the period of the resultant 2-interleaving sequence, denoted by , must be a divisor of . Our main interest lies in the study of its linear complexity , since a large linear complexity it is an important cryptographic property in order to resist against cryptanalytic attacks.
By means of the following theorem we can narrow down the possible values of for the 2-interleaving sequences.
Lemma 1. If we interleave two shifted versions of the same PN-sequence generated by the primitive polynomial , then the resultant 2-interleaving sequence can be generated by .
Proof. Assume that we have the PN-sequence
with characteristic polynomial
this means that the PN-sequence
satisfies the linear recurrence relation:
Consider now a shifted version of
:
We know that the PN-sequence
also satisfies the linear recurrence relation (
2) and the sequence obtained by interleaving
and
has the following form:
Denote the two PN-sequences as
and
, for
,
. We know that
and
If we substitute the corresponding bits of
in (
3), we have that:
Now, if we substitute
, we have that:
This means that
satisfies the linear recurrence relation:
and, thus,
generates the sequence
. □
Notice that if generates the 2-interleaving sequence, then its characteristic polynomial must be or . Thus, the linear complexity of the sequence must be or , respectively. Moreover, the total number of 2-interleaving sequences, using different shifts, is .
The following theorem shows that, given a PN-sequence and a shifted version of itself with shift , the characteristic polynomial of the 2-interleaving sequence cannot be the same characteristic polynomial as that of . In other words, the shift is the only shift that produces a 2-interleaving sequence with .
Theorem 4. Consider the PN-sequence generated by a primitive polynomial of degree L and a version of shifted k positions. If , then the resultant 2-interleaving sequence cannot be the PN-sequence neither a shifted version of it.
Proof. Consider the PN-sequences:
and the resultant 2-interleaving sequence
with period divisor of
, where
is the period of
.
We proceed by contradiction. Assume that
is the characteristic polynomial of
, thus
would be the PN-sequence
or a shifted version. In this case, we would have that
with
, that is, the PN-sequence
shifted
D positions and concatenated with itself. Therefore, we can equal one by one the corresponding terms of both subsequences:
Rewriting these equalities, we have that:
In a succinct way, we can write:
where the elements of the first member in the equalities are the terms of
while the elements of the second member are the terms of
, a shifted version of
. If we write
, then Equation (
4) can be expressed as:
Therefore, in sequential notation
where
is the identically null sequence. In order to satisfy Equation (
5)
d must satisfy
, that is, Equation (
5) can be rewritten as:
which is true since the bit-wise XOR of any sequence with itself is the identically null sequence.
If , then for some . Since both k and n are integers, it is possible to check that the only possible solutions are , . Finally, we are working modulo T, therefore the only possible solution is . □
Next result proves that the interleaving of a PN-sequence with any shifted version of itself, except one, produces a new sequence with maximum period and .
Corollary 1. Consider the PN-sequence generated by a primitive polynomial of degree L and period . If we interleave with the shifted version of itself given by , with , the resultant 2-interleaving sequence has as characteristic polynomial and period .
Proof. We have that the PN-sequences
produce the 2-interleaving sequence given by:
According to Lemma 1, can be generated by . Now, according to Theorem 4, since , we have that cannot be the PN-sequence (or a shifted version); therefore, is the characteristic polynomial of . □
3.2. Analysis of 4-Interleaving Sequences
Consider a primitive polynomial of degree L. If we interleave four shifted versions of the same PN-sequence of period , then the period of the 4-interleaving sequence must be a divisor of . However, in this subsection, we go in depth in the study of the linear complexity of these sequences by its importance in cryptography.
The following result is a generalization of Lemma 1 and narrows down the possible values of .
Lemma 2. Consider a PN-sequence generated by a primitive polynomial of degree L and period . If we interleave four shifted versions of , then the resultant 4-interleaving sequence can be generated by .
Proof. Assume that we have the PN-sequence
with characteristic polynomial:
this means that the PN-sequence
satisfies the linear recurrence relation:
Consider now
and any three PN-sequences shifted versions of
:
The resultant 4-interleaving sequence has the following form:
We know that all three shifted versions,
,
, and
, also satisfy the linear recurrence relation (
6). If we denote by:
for
, we have that:
and
If we substitute the corresponding bits of
in (
7), we have that
Now, if we substitute
, we have that:
This means that
satisfies the linear recurrence relation:
and, thus,
generates the sequence
. □
As a consequence of the previous lemma, the only possibilities for the characteristic polynomial of the 4-interleaving sequence are , , or , that is, its linear complexity is or , respectively. Moreover, the total number of 4-interleaving sequences, using different shifts, is .
3.2.1. Analysis of 4-Interleaving Sequences with
In this subsection, we do an exhaustive study on the linear complexity of the 4-interleaving sequences. Furthermore, we count the total number of 4-interleaving sequences for different values of .
The following theorem provides the shifts that produce 4-interleaving sequences with linear complexity .
Theorem 5. Consider a PN-sequence generated by a primitive polynomial of degree L and period . If we interleave 4 shifted versions of , with shifts , and , the resultant 4-interleaving sequence has and period .
Proof. Consider the four PN-sequences:
where indices are considered modulo
T. The resultant 4-interleaving sequence has the form:
Notice that:
so, we can express:
that is, the sequence
can be also obtained decimating
by distance
. According to Golomb [
1] (page 76), if we decimate a PN-sequence with distance a power of two, we obtain the same PN-sequence except for a phase shift. Therefore,
is a shifted version of
and
. □
Next, we present two examples to illustrate the previous result.
Example 5. Consider the primitive polynomial , that is, . We consider the initial state { for the PN-sequence and, the shifts , , . The corresponding PN-sequences are: and the resultant 4-interleaving sequence is: Notice that , that is, the 4-interleaving sequence is a shifted version of (starting in the third bit of ). Therefore, its linear complexity is .
Example 6. Consider the primitive polynomial , that is, . We consider the initial state for and , , . The corresponding PN-sequences are: The resultant 4-interleaving sequence is: Notice that , that is, is a shifted version of (starting in the 27-th bit of ). Therefore, .
As a consequence of Theorem 5, we can count the number of 4-interleaving PN-sequences with linear complexity .
Corollary 2. If we interleave 4 shifted versions of the same PN-sequence of period T and , then there are T possible resultant 4-interleaving sequences with and period .
Proof. Since , and are fixed, the resultant sequence depends on the initial state of . We have possible non-zero initial states for , therefore we have T different interleaving sequences with . □
3.2.2. Interleaving Sequences with
As we did in the previous subsection, here we study which shifts provide 4-interleaving PN-sequences with linear complexity .
Theorem 6. If we interleave 4 shifted versions of the same PN-sequence of period , with shifts , and , the resultant 4-interleaving sequence has and period .
Proof. Consider the four PN-sequences:
where the indices are considered modulo
T. The resultant interleaving sequence has the form:
Notice that
is also obtained interleaving the two sequences:
Both sequences,
and
, are obtained decimating
and
, respectively, by distance
; therefore, both are shifted versions of
[
1] (page 76). According to Theorem 1, if
with
(the phase shift between both PN-sequences is
), then the 2-interleaving sequence is a shifted version of the same PN-sequence and has
.
According to (
8), we have that:
therefore,
. If
, this means that the PN-sequence
starts in the
-th position of
, that is:
therefore,
. However, we know that
.
According to Theorem 4, the only shift that gives us a 2-interleaving sequence with is , which we have seen that is impossible. Thus, according to Lemma 1, the polynomial generates and must also be the characteristic polynomial.
Notice that if , then and , and we have the case studied in Theorem 5. □
Through the following example, we illustrate the previous result.
Example 7. Consider the primitive polynomial , that is, . We consider the initial state for and , , . The corresponding PN-sequences are: and the 4-interleaving sequence obtained is: which has period equal to 62 and . Moreover, its characteristic polynomial is .
As a consequence of Theorem 6, we can count the number of 4-interleaving sequences with .
Corollary 3. If we interleave 4 shifted versions of the same PN-sequence of period T and , then we obtain possible 4-interleaving sequences of .
Proof. The shift between the first and third sequences (and the second and the fourth) is fixed. Therefore, the resultant sequence depends on the initial state of and . We have possible non-zero initial states for and possible values for , thus, we have different 4-interleaving sequences with . □
Until now, we have characterized the 4-interleaving sequences with linear complexities L and . For the cases and we do not have any conclusive results. We have analyzed them computationally, obtaining expressions to count the number of interleaving sequences with these linear complexities. We need only to compute one of both cases, since that the other one would be immediate.
Table 1 shows the total number of 4-interleaving sequences that are generated for each possible value of
. Observe that the number of the 4-interleaving sequences does not depend on the characteristic polynomial, only on its degree. The expression at the bottom of the table represents the total number of 4-interleaving sequences.
Notice that when
L is large the number of interleaving sequences with maximal linear complexity,
, tends to the total amount of interleaving sequences; that is,
Therefore, we can ensure that the great majority of the 4-interleaving sequences have the maximal linear complexity.
In
Appendix A, we present several examples where we compute the number of 4-interleaving sequences for each possible value of the linear complexity using polynomials with different degrees (see
Table A2).
3.3. Analysis of -Interleaving Sequences
Consider a primitive polynomial of degree L. If we interleave shifted versions of the same PN-sequence of period , then the period of the resultant interleaving sequence must be a divisor of . We determine the period and the linear complexity of -interleaving sequences.
The following result is a generalization of Lemmas 1 and 2 and narrows down the possible values of . The proof can be implemented using a similar method as that used in the proof of Lemma 2.
Lemma 3. If we interleave shifted versions of the same PN-sequence generated by the primitive polynomial , the resultant -interleaving sequence can be generated by .
As a consequence of the previous lemma, we have that the possibilities for the characteristic polynomial are , , , …, , that is, the possible values for the linear complexity are or
3.3.1. Analysis of -Interleaving Sequences with
Next theorem determines the shifts that provide -interleaving sequences with .
Theorem 7. If we interleave shifted versions of the same PN-sequence of period with shifts , , ,…, , then the resultant -interleaving sequence has and period .
Proof. Applying induction in the proof of Theorem 5. □
Through the following example, we reflect the previous result.
Example 8. Consider the primitive polynomial , where and . Consider the initial state for and , , , , , and . The corresponding PN-sequences are: The resultant 8-interleaving sequence is: Notice that , that is, a shifted version of (starting in the 3rd bit of ). Therefore, its linear complexity is .
As a result of the previous theorem, we can count the number of -interleaving sequences with .
Corollary 4. If we interleave PN-sequences of period T and , produced by the same LFSR, then there are T resultant -interleaving sequences with linear complexity and period T.
Proof. Since , , … are fixed, the resultant -interleaving sequence depends only on the initial state of . We have possible non-zero initial states for , therefore, we have T different -interleaving sequences with . □
3.3.2. Analysis of -Interleaving Sequences with LC = 2L
Next, we present the shifts that produce -interleaving sequences with .
Theorem 8. If we interleave shifted versions of the same PN-sequence of period with shifts , , , for , the resultant -interleaving sequence has and period .
Proof. We first analyze the mentioned shifts:
Consider now the
PN-sequences: -4.6cm0cm
where indices are considered modulo
T. The resultant
-interleaving sequence has the form:
Notice that
is also obtained interleaving the two sequences:
Both sequences,
and
, are obtained decimating
and
, respectively, by distance
. Therefore, both are shifted versions of
[
1] (page 76). According to Theorem 1, if
with
(the phase shift between both PN-sequences is
), then the 2-interleaving sequence is a shifted version of the same PN-sequence and has
.
According to (
9) we have that
. If
, this means that the PN-sequence
starts in the
-th position of
, that is:
therefore
. However, we know that
.
The shift is the only one that gives us an interleaving sequence with . Now, according to Lemma 1, the polynomial generates . Since , the polynomial must also be the characteristic polynomial. □
Example 9. Consider the primitive polynomial , that is, and . We consider the initial state for and the shifts , , , , , and . The corresponding PN-sequences are: and, the resultant 8-interleaving sequence is: It is possible to check that the period of this sequence is , the characteristic polynomial is and, thus, .
Corollary 5. When we interleave shifted versions of the same PN-sequence of period T and , there are possible resultant -interleaving sequences of .
Proof. The shifts between the odd sequences (and the even sequences) are fixed. Therefore, the resultant -interleaving sequence depends on the initial state of and . We have possible non-zero initial states for and possible values for , thus, we have different interleaving sequences with . □
As in the case of 4-interleaving sequences, we obtain expressions on the total number of 8-interleaving sequences for each possible value of
(see
Table 2). The formulas for the cases
and
have not been determined yet. The expression at the bottom of the table represents the total number of 8-interleaving sequences.
4. Interleaving t Sequences
Our main aim is to characterize the interleaving sequences using any number of interleaved PN-sequences. In this section, we present some preliminary results.
As in the previous sections, we present some results on the shifts in order to obtain t-interleaving sequences with .
Theorem 9. Consider a primitive polynomial of degree L. If we interleave t shifted versions of the same PN-sequence of period with shifts (modulo T) , , ,…, , and (, the resultant t-interleaving sequence has and period .
Proof. Consider the
t PN-sequences:
where the indices are considered modulo
T. The resultant
t-interleaving sequence has the form:
Therefore, we have that:
that is, the sequence
can be also obtained decimating
by distance
. According to Golomb [
1] (page 78), if we decimate a PN-sequence (produced by a primitive polynomial of degree
L) with distance
k such that
, then the resultant sequence is also a PN-sequence, generated by a primitive polynomial of degree
L. Therefore,
is a PN-sequence with
. □
In the next example we apply the results of the previous theorem.
Example 10. Consider the primitive polynomial , that is, and . In this case, we want to interleave 5 PN-sequences and let (since that, and ). We consider the initial state for and , , , . The corresponding PN-sequences are: The 5-interleaving sequence obtained is:which has period equal to 7
and , since the characteristic polynomial is (where we denote the reciprocal polynomial of by ). Corollary 6. Consider a primitive polynomial of degree L. Assume that is not a prime integer and let t be a divisor of T. If we interleave t shifted versions of any PN-sequence of period T, the resultant t-interleaving sequence has and period .
Proof. If t is a divisor of T, then there is no multiplicative inverse of t modulo T, i.e., there is no k such that . Therefore, according to Theorem 9, there are no t-interleaving sequences with . □
In the next example, we present a case where we cannot construct any 5-interleaving sequence with .
Example 11. Consider the primitive polynomial , that is, and . Assume that we want to interleave 5 PN-sequences. It is possible to check that there is no k such that and (since 5 is a divisor of T). Therefore, if we interleave 5 shifted versions of the same PN-sequence generated by , the resultant interleaving sequence has .
Other examples that illustrate the previous result can be found in
Appendix A. For instance, observe the case
in
Table A1, where there are no 3-interleaving sequences of
. This is a consequence of the fact that
is not a prime number and 3 is a divisor of
T.
Next result computes the number of t-interleaving sequences with linear complexity equals to L.
Corollary 7. Consider a primitive polynomial of degree L. If we interleave t shifted versions of the same PN-sequence of period with the shifts given in Theorem 9, there are T possible resultant t-interleaving sequences of and period T.
Proof. Since the shifts are fixed and k is unique (k is the multiplicative inverse of t modulo T), the resultant sequence depends only on the initial state of . We have possible non-zero initial states for , therefore, we have T different t-interleaving sequences with . □
Although we do not provide a characterization of the t-interleaving sequences for the other values of , it can be seen (computationally) that the majority of interleaving sequences achieve the maximum linear complexity. The percentage of interleaving sequences with the maximum is approximately or greater than .
In
Table A1,
Table A2 and
Table A3 of
Appendix A, we show some examples that motivate us to continue deepening on this research. For instance, we observe that there exist particular cases where all the interleaving sequences obtained achieve the maximum value of the linear complexity. It would be interesting to characterize this kind of sequences, since that they are the ones with best cryptographic properties.
5. Preliminary Randomness Study and Comparison with Other Sequences
Given a shrunken sequence obtained from two registers of lengths,
and
(with the characteristics seen in
Section 3.1), we know that the linear complexity satisfies
and the period is
. This sequence can be also generated interleaving
shifted versions of the same PN-sequence with characteristic polynomial
of degree
(see Theorem 2) and period
. Therefore, the shrunken sequence is an
-interleaving sequence. If we fix the polynomial
and range over all the possible primitive polynomials of degree
, then we can construct a family of shrunken sequences where all of them are
-interleaving sequences (by interleaving PN-sequences generated by
). Notice that with the shrinking process, we can only construct families of
t-interleaving sequences with
t equal to
, a power of two, with additional restrictions on the values of
and
. Using the method presented in this paper, we can construct families of
t-interleaving sequences with no restriction on
t or
L (the length of the LFSR).
In
Table A4 and
Table A5 of
Appendix A, we present a comparison between the number of shrunken sequences generated by polynomials of degrees
and
and the number of
t-interleaving sequences (obtained interleaving
shifted versions of the PN-sequence generated by the polynomial
of degree
given in Theorem 2), and their corresponding values of
in each case. Specifically, we present the results for
where we can observe that the number of
t-interleaving sequences, with maximum linear complexity is clearly greater than that of the shrunken sequences. It is worth noticing that if a shrunken sequence and a
- interleaving sequence have the same
, then they have the same period. Hence we focus on the parameter linear complexity better than on the period.
For a practical use of the
t-interleaving sequences in cryptographic algorithms, it is important to analyse the quality of this random number generator and to focus on other randomness properties beyond linear complexity. As a first approach, we have carried out a preliminary study of the randomness of these sequences through the statistical tests package FIPS 140-2 [
28]. It is a U.S. government computer security standard used to approve cryptographic modules issued by the National Institute of Standards and Technology (NIST). Moreover, it has been widely used for the verification of the statistical properties of pseudorandom numbers generated by PRNGs.
In this package, there are 4 statistical random number generator tests—the Monobit Test, The Poker Test, The Runs Test and The Long Runs Test. All the tests have been applicable for a wide range of binary string size and considering different primitive polynomials. There exist indicators which point out a good random behavior, since that all the t-interleaving sequences evaluated have passed all the tests.
Below, we show the values obtained in the tests of FIPS for a particular 10-interleaving sequence generated from a PN-sequence with characteristic polynomial of degree 16:
LONG RUNS TEST: Passed. There are no runs of more than 25 equal bits.
MONOBIT TEST: Passed. The test is passed if . Our result was: 10013.
X = POKER TEST: Passed. The test is passed if . Our result was: .
RUNS TEST: Passed. The test is passed if the runs (for both the runs of zeros, red line, and the runs of ones, blue line) that occur (of lengths 1 through 6) are each within the corresponding interval specified in the
Figure 1 by the green line.
6. Conclusions
The output sequence of the shrinking generator, the shrunken sequence, is obtained decimating the bits of a PN-sequences in terms of the bits of another PN-sequence. Besides, the shrunken sequence can be also obtained interleaving shifted versions of a unique PN-sequence. In this paper, we use the same idea of interleaving shifted versions of the same PN-sequence in order to obtain a new family of sequences with the same features as those of the shrunken sequences, that is, large period and linear complexity. We study their periods, linear complexities and the number of sequences obtained for any possible value of . Furthermore, we present a preliminary study of the randomness of t-interleaving sequences with the application of the standard FIPS, a statistical test suite for the validation of pseudorandom number generators. Through the analysis of a great number of these sequences, for different values of t and different primitive polynomials, we point out a good random behaviour.
As future work, we would like to study the open cases that we have not solved in this paper. For instance, we would like to find an analytical proof for the expressions we found on the total number of 4-interleaving sequences with and ; complete the study of -interleaving sequences; and increase our knowledge about the case of t-interleaving sequences. Furthermore, we would like to do a statistical randomness analysis of these new sequences using several statistical test batteries as the Diehard battery of tests, the packet FIPS 140-2, CRYPT-X or TestU01, among others. Until now, our research is focused on the use of a PN-sequence and shifted versions of itself. A natural step would be the study of the resultant sequences of interleaving PN-sequences of different primitive polynomials (with same or different degree).