Question

Suppose an LFSR of degree 5 is used as a stream cipher and the following plaintext...

Suppose an LFSR of degree 5 is used as a stream cipher and the following plaintext
m and ciphertext c is known:

m = 00100 11000, c = 10110 01110.

Compute the feedback polynomial, the characteristic polynomial, the period and
the complete keystream.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Stream Cipher

  • A stream cipher is a symmetric key cipher where plain text digits are combined with a pseudorandom cipher digit stream(keystream).
  • In stream cipher, each plaintext digit is encrypted one at a time with the corresponding digit of keystram to give a digit of cipher text stream.
  • stream cipher encrypt one bit at a time.
  • Encryption : ciphertext = plaintext XOR keystream
  • Decryption : plaintext = ciphertext XOR keystream

Linear Feedback Shift Register (LFSR):

  • A LFSR is a shift register whose input bit is a linear function of its previous state.
  • The most commonly used linear function of single bits is exclusive-or(XOR).
  • LFSR based stream ciphers are popular because of their low hardware implementation cost.
  • LFSR is popularly known as Pseudo random number generator. The random numbers repeat itself after 2^n-1 clock cycle ( where n is the number of bits in LFSR)
  • A standard ploynomial function : x^8+x^7+x^6+x^4+x^2+1 is used to generate random numbers.
  • 8 bit Linear feedback shift register uses 8 D- Flipflops and xor gate and LFSR uses asynchronous reset.

Feedback Polynomial and Characteristic polynomial:

  • the ouput sequence of an LFSR is Uniquely determined by its feedback coefficients and its initial state.
  • The feedback coefficients c1,c2,...........cL of an LFSR of length L are usually represented by the lfsr feedback polynomial ( connection polynomial) defined by P(X) = 1 - ciXi.
Add a comment
Know the answer?
Add Answer to:
Suppose an LFSR of degree 5 is used as a stream cipher and the following plaintext...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider a block cipher that is used in cipher block chaining mode. Suppose that during transmission,...

    Consider a block cipher that is used in cipher block chaining mode. Suppose that during transmission, Ci , the i-th ciphertext block, is corrupted. How many plaintext blocks will be affected? Answer the same question for the case of cipher feedback mode.

  • Problem 1 Consider the 3-bit block cipher in slide 8-18. Suppose the plaintext is 101101101. If...

    Problem 1 Consider the 3-bit block cipher in slide 8-18. Suppose the plaintext is 101101101. If CBC is used with initial vector 110, what will be the resulting ciphertext? Show work, not just the final answer. Problem 2 Consider RSA with public key (n, e) and private key (n, d) where n = 35, e = 5, and d = 29. What is the encryption of m = 34? What is the decryption of c = 34? Show calculations, not...

  • 2. Use the 3-bit block cipher in the table below to answer the following. Suppose the...

    2. Use the 3-bit block cipher in the table below to answer the following. Suppose the (a) Use the block cipher without cipher-block chaining (CBC) to encrypt the message (b) Suppose Trudy intercepts the ciphertext. Further suppose she knows that the text was plaintext is m 011011011. What is the resulting ciphertext? encrypted with a 3-bit block cipher without CBC, but she does not know the specific cipher. What can she determine about the original message? (c) Now use the...

  • Suppose that a Vigenere cipher with alphabet A-Z (0-25) and block length 5 is used to...

    Suppose that a Vigenere cipher with alphabet A-Z (0-25) and block length 5 is used to encrypt a word and the cipher-text is MTYGH. If the plaintext is ALICE, what is the encryption key? If the plaintext is TEXAS, what is the encryption key?

  • Be sure to include the Karnaugh map used for each solution in the Word or PDF...

    Be sure to include the Karnaugh map used for each solution in the Word or PDF file you will submit in Review Quiz Part 2. For the following function: f(A,B,C,D,E) = m(16, 17, 21, 22, 24, 28) + d(0,4,8, 12, 18, 25, 27) (a) Complete the truth table. (16 points) ABCDE 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 10001 10010 10011 10100 10101 10110 10111 11000 11001 11010 11011 11100...

  • Implement the RC4 stream cipher in C++. User should be able to enter any key that is 5 bytes to 3...

    Implement the RC4 stream cipher in C++. User should be able to enter any key that is 5 bytes to 32 bytes long. Be sure to discard the first 3072 bytes of the pseudo random numbers. THE KEY OR THE INPUT TEXT MUST NOT BE CODED IN THE PROGRAM. Test your program with the following plain text: In cryptography, RC4 (Rivest Cipher 4 also known as ARC4 or ARCFOUR meaning Alleged RC4) is a stream cipher. While remarkable for its...

  • 3) Out of the following, name which kind of attack you carried out in part 1...

    3) Out of the following, name which kind of attack you carried out in part 1 and part2: a. ciphertext only, b. known plaintext, c. chosen plaintext, d. chosen ciphertext. Explain your answer Problem 3 10 points] A 4-bit long message was encrypted using one-time pad to yield a cipher-text “1010” Assuming the message space consists of all 4-bit long messages, what is the probability that the corresponding plaintext was “1001”? Explain your answer. Problem 4 Assume we perform a...

  • **DO IT AS PYTHON PLEASE** The Trifid Cipher General Problem Description The Trifid cipher (not to be confused with the...

    **DO IT AS PYTHON PLEASE** The Trifid Cipher General Problem Description The Trifid cipher (not to be confused with the creatures from the classic science-fiction film "The Day of the Triffids") is an algorithm that enciphers a plaintext message by encoding each letter as a three-digit number and then breaking up and rearranging the digits from each letter's encoded form. For this assignment, you will create a set of Python functions that can encode messages using this cipher (these functions...

  • Model for Evaluation The model used for evaluation is the single degree of freedom lumped mass mo...

    Model for Evaluation The model used for evaluation is the single degree of freedom lumped mass model defined by second order differential equation with constant coefficients. This model is shown in Figure 1. x(t)m m f(t) Figure 1 - Single Degree of Freedom Model The equation of motion describing this system can easily be shown to be md-x + cdx + kx = f(t) dt dt where m is the mass, c is the damping and k is the stiffness...

  • Suppose the following data represent the ratings (on a scale from 1 to 5) for a...

    Suppose the following data represent the ratings (on a scale from 1 to 5) for a certain smart phone game, with 1 representing a poor rating. Complete parts (a) through (d) below. Stars 1 2 3 4 5 Frequency 2363 2679 4222 3688 10,166 (a) Construct a discrete probability distribution for the random variable x. Stars (x) P(x) 1 2 3 4 5 (Round to three decimal places as needed.) (b) Graph the discrete probability distribution. Choose the correct graph...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT