The Code Bellow Is The Rc5 Encryption Pseudo Code In C #291
The code bellow is the RC5 encryption pseudo code in C language.<br /> What is the error?<br /> LE0 = A + S[0];<br /> RE0 = B + S [1];<br /> for i = 1 to r do<br /> LEi = ((LEi-1 ⊕ REi-1) >>> REi-1) + S [2xi];<br /> REi = ((REi-1 ⊕ LEi) <<< LEi) + S [2xi+1];</p>
This multiple choice question (MCQ) is related to the book/course gs gs124 Introduction Cyber Security. It can also be found in gs gs124 Pseudorandom Number Generation and Stream Ciphers and More Block Ciphers - RC4 and RC5 - Quiz No.1.
The code bellow is the RC5 encryption pseudo code in C language.
What is the error?
LE0 = A + S[0];
RE0 = B + S [1];
for i = 1 to r do
LEi = ((LEi-1 ⊕ REi-1) >>> REi-1) + S [2xi];
REi = ((REi-1 ⊕ LEi) <<< LEi) + S [2xi+1];
What is the error?
LE0 = A + S[0];
RE0 = B + S [1];
for i = 1 to r do
LEi = ((LEi-1 ⊕ REi-1) >>> REi-1) + S [2xi];
REi = ((REi-1 ⊕ LEi) <<< LEi) + S [2xi+1];
The left shift operation (should be right shift)
The right shift operation (should be left shift)
LEi-1 and REi-1 should be LEi and REi
The for loop runs from 1 to r-1 ( not 1 to r)