[RC4) RC4 is a stream cipher standard that was used widely on the Internet. Read the below pseudocode for its initialization phase and cipher bitstream generation phase: // Initialization byte key [N]; // input key of the algorithm (E.g., N = 16) byte K[256]; // keying material byte s[256]; // internal states for i = 0 to 255 S(1] = i K[i] = key(1 (mod N) 1 for i = 0 to 255 j = () + S[i] + K[i]) mod 256 swap (S[1], s[j]) i = j = 0 // Cipher Bitstream Generation i = (i + 1) mod 256 j = () + s[i]) mod 256 swap (S[i], s[j]) t = (S[i] + S[j]) mod 256 cipherstream = s[t] How many bits will be used for encryption finally? Explain the relation of the arrays key and S, which leads to the selection of these bits.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter8: Data And Network Communication Technology
Section: Chapter Questions
Problem 41VE
icon
Related questions
Question
[RC4J"
RC4 is a stream cipher standard that was used widely on the Internet. Read the below pseudocode for its initialization phase and cipher bitstream generation phase:
// Initialization
byte key [N];
// input key of the algorithm (E.g., N = 16)
byte K[256] ;
// keying material
byte s[256];
// internal states
for i = 0 to 255
s[i] = i
K[i] = key[i (mod N) ]
j = 0
for i = 0 to 255
j = () + S[i] + K[i]) mod 256
swap (S[1], s[j])
i = j = 0
// cipher Bitstream Generation
i = (i + 1) mod 256
j = () + S[i]) mod 256
swap (S[i], s[j])
t = (S[i] + S[j]) mod 256
cipherstream = s[t]
How many bits will be used for encryption finally? Explain the relation of the arrays key and S, which leads to the selection of these bits.
Transcribed Image Text:[RC4J" RC4 is a stream cipher standard that was used widely on the Internet. Read the below pseudocode for its initialization phase and cipher bitstream generation phase: // Initialization byte key [N]; // input key of the algorithm (E.g., N = 16) byte K[256] ; // keying material byte s[256]; // internal states for i = 0 to 255 s[i] = i K[i] = key[i (mod N) ] j = 0 for i = 0 to 255 j = () + S[i] + K[i]) mod 256 swap (S[1], s[j]) i = j = 0 // cipher Bitstream Generation i = (i + 1) mod 256 j = () + S[i]) mod 256 swap (S[i], s[j]) t = (S[i] + S[j]) mod 256 cipherstream = s[t] How many bits will be used for encryption finally? Explain the relation of the arrays key and S, which leads to the selection of these bits.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Huffman coding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning