11.07.2015 Views

Cryptography - Sage

Cryptography - Sage

Cryptography - Sage

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Multiplying each through by the connection polynomial g(x) = x 4 + x + 1, we find thenumerator polynomials for each of the sequences:f(x) = x + x 3f(x) = 1 + x 3f(x) = 1 + x + x 2 + x 3f(x) = 1 + x 2This verifies that the sequences output are consistent with their expected structure ascoefficients of a rational power series.Statistical Properties. The output of a linear feedback shift operator of length n has aperiod, which must divide 2 n − 1. The period is independent of the initial state, providedit is non-zero. If the period equals 2 n − 1, the output sequence is said to be an m-sequence.The following theorem describes the statistical properties of m-sequences.Theorem 6.1 Let s = s 0 s 1 . . . be an m-sequence, and let k be an integer with 1 ≤ k ≤ n.Then in each subsequence of s of length 2 n + k − 2, every finite nonzero binary sequenceof length k appears as a subsequence exactly 2 n−k times, and the length k zero subsequenceappears exactly 2 n−k − 1 times.A polynomial g(x) in F 2 [x] is irreducible if it is not the product of two polynomials ofdegree greater than zero. An irreducible polynomial g(x) of degree n is primitive if g(x)divides x N − 1 for N = 2 n − 1 and no smaller value of N. (Equivalently, g(x) is primitiveif the powers x i are distinct modulo g(x), for i with 1 ≤ i ≤ 2 n − 1.)Linear Complexity. A linear feedback shift register is said to generate a binary sequences if there exists some initial state for which its output sequence is s. The linear complexityL(s) of an infinite sequence s is defined to be zero if s is the zero sequence, infinity if s isgenerated by no linear feedback shift register, and otherwise equal to the minimal length ofa linear feedback shift register generating s. The linear complexity L(s) of a finite sequences is defined to be the minimal length of a linear feedback shift register with initial sequences for some initial state.Linear Complexity Profile. For a sequence s, define L j (s) to be the linear complexityof the first j terms of the sequence. The linear complexity profile of an infinite sequences is defined to be the infinite sequence L 1 (s), L 2 (s), . . . , and for a finite sequence s =s 0 s 1 . . . s N−1 is defined to be the finite sequence L 1 (s), L 2 (s), . . . , L n (s).LFSR Cryptosystems We introduce new utilities for binary stream cryptosystems basedon linear feedback shift registers. The functions binary encoding and binary decodingconvert ASCII text into its bit sequence and back. In addition, the new binary cryptosystemsare:LFSRCryptosystemShrinkingGeneratorCryptosystem118 Appendix C. Solutions to Exercises

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!