Question

In: Computer Science

Consider a Linear Feedback Shift Register (LFSR) of degree 8 and the feedback polynomial P(x) =...

Consider a Linear Feedback Shift Register (LFSR) of degree 8 and the feedback polynomial P(x) = x8 + x4 + x3 + x + 1 where the initialization vector has the value FF in hexadecimal.

a. What is the key for the encryption?
b. What is the period of the output stream?
c. Computer the first two output bytes.

Solutions

Expert Solution

Initial Value : FF = 1111 1111

Feedback Polynomial : x^8 + x^4 + x^3 + x + 1

Byte representation : 1000 1101


The key of encryption followed in LFSR is as follows :
LFSR is a shift register whose input bit is a linear function of its previous state. Commonly used Linear function is the exclusive OR (XOR) of the bits of previous state corresponding to the feedback polynomial.


Period of the output stream : 2^n - 1 = 2^8 - 1 = 255


First Output byte will be the XOR of the 8th 4th 3rd and 1st bits of initial vector fed again.
Therefore, 8th Bit XOR with 4th Bit : 1 XOR 1 = 0
above resullt XOR with 3rd Bit : 0 XOR 1 = 1
above result XOR with 1st Bit : 1 XOR 1 = 0
So, the first byte will be 1111 1110
HexaDecimal value : FE

For second Byte the initial vector considered will the First Byte ie the previous state.
Steps followed :
8th Bit XOR 4th Bit : 1 XOR 1 = 0
above result XOR with 3rd Bit : 0 XOR 1 = 1
above result XOR with 1st bit : 1 XOR 0 = 1
Second Byte : 1111 1101
HexaDecimal Value : FD


Related Solutions

Let P(x) be a polynomial of degree n and A = [an , an-1,.... ] Write...
Let P(x) be a polynomial of degree n and A = [an , an-1,.... ] Write a function integral(A, X1, X2) that takes 3 inputs A, X0 and X1 A as stated above X1 and X2 be any real number, where X1 is the lower limit of the integral and X2 is the upper limit of the integral. Please write this code in Python.
Let P(x) be a polynomial of degree n and A = [an , an-1,.... ] Write...
Let P(x) be a polynomial of degree n and A = [an , an-1,.... ] Write a function integral(A, X1, X2) that takes 3 inputs A, X0 and X1 A as stated above X1 and X2 be any real number, where X1 is the lower limit of the integral and X2 is the upper limit of the integral. Please write this code in Python. DONT use any inbuilt function, instead use looping in Python to solve the question. You should...
Given: Polynomial P(x) of degree 6 Given: x=3 is a zero for the Polynomial above List...
Given: Polynomial P(x) of degree 6 Given: x=3 is a zero for the Polynomial above List all combinations of real and complex zeros, but do not consider multiplicity for the zeros.
Set and solve a linear system find a polynomial pp of degree 4 such that p(0)=1,...
Set and solve a linear system find a polynomial pp of degree 4 such that p(0)=1, p(1)=1, p(2)=11, p(3)=61, and p(4)=205. Your answer will be an expression in x. Modifying your calculation, and without starting from scratch, find a polynomial qq of degree 4 such that q(0)=2, q(1)=3, q(2)=34, q(3)=167, and q(4)=522. q(x) = ?
Let x0< x1< x2. Show that there is a unique polynomial P(x) of degree at most...
Let x0< x1< x2. Show that there is a unique polynomial P(x) of degree at most 3 such that P(xj) =f(xj) j= 0,1,2, and P′(x1) =f′(x1) Give an explicit formula for P(x). maybe this is a Hint using the Hermit Polynomial: P(x) = a0 +a1(x-x0)+a2(x-x0)^2+a3(x-x0)^2(x-x1)
A third degree polynomial equation (a cubic equation) is of the form p(x) = c3x 3...
A third degree polynomial equation (a cubic equation) is of the form p(x) = c3x 3 + c2x 2 + c1x + c0, where x and the four coefficients are integers for this exercise. Suppose the values of the coefficients c0, c1, c2, and c3have been loaded into registers $t0, $t1, $t2, and $t3, respectively. Suppose the value of x is in $t7. Write the MIPS32 instructions that would evaluate this polynomial, placing the result in $t9.
If p(z) is a polynomial of degree n and that if α is a root of...
If p(z) is a polynomial of degree n and that if α is a root of p(z) = 0, then p(z) factors as p(z) = (z−α)q(z) where q(z) has degree (n − 1). Use this and induction to show that a polynomial of degree n has at most n roots.
Using the function f(x)=ln(1+x) a. Find the 8 degree taylor polynomial centered at 0 and simplify....
Using the function f(x)=ln(1+x) a. Find the 8 degree taylor polynomial centered at 0 and simplify. b. using your 8th degree taylor polynomial and taylors inequality, find the magnitude of the maximum possible error on [0,0.1] c.approximate ln(1.1) using your 8th degree taylor polynomial. what is the actual error? is it smaller than your estimated error?Round answer to enough decimal places so you can determine. d. create a plot of the function f(x)=ln(1+x) along with your taylor polynomial. Based on...
Task 3: a) A second-degree polynomial in x is given by the expression = + +...
Task 3: a) A second-degree polynomial in x is given by the expression = + + , where a, b, and c are known numbers and a is not equal to 0. Write a C function named polyTwo (a,b,c,x) that computes and returns the value of a second-degree polynomial for any passed values of a, b, c, and x. b) Include the function written in part a in a working program. Make sure your function is called from main() and...
consider f(x) = ln(x) use polynomial degree of 5!!! a) Approximate f(0.9) and f(1.1) b) Use...
consider f(x) = ln(x) use polynomial degree of 5!!! a) Approximate f(0.9) and f(1.1) b) Use Taylor remainder to find an error formula for Taylor polynomial. Give error bounds for each of the two approximations in (a). Which of the two approximations in part (a) is closer to correct value? c) Compare an actual error in each case with error bound in part (b).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT