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.
Stream Cipher
Linear Feedback Shift Register (LFSR):
Feedback Polynomial and Characteristic polynomial:
ciXi.Suppose an LFSR of degree 5 is used as a stream cipher and the following plaintext...
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 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 (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 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 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 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 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 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 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 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...