d) ShiftRows This step is the same as the ShiftRows step in the AES encryption. Circularly shift the rows in each block in the following fashion: The first row remains the same. Shift the second row one position to the left. Shift the third row two positions to the left. Finally, shift the fourth row three positions to the left. o Example: Input: WVOG JTXQ HUHX ICWY YMGH TRKQ HQPW KYVG LPYS EWGO INTO FORM OAAA AAAA AAAA AAAA Output: WVOG TXQJ HXHU YICW YMGH RKQT PWHQ GKYV LPYS WGOP TOIN MFOP OAAA AAAA AAAA AAAA
d) ShiftRows This step is the same as the ShiftRows step in the AES encryption. Circularly shift the rows in each block in the following fashion: The first row remains the same. Shift the second row one position to the left. Shift the third row two positions to the left. Finally, shift the fourth row three positions to the left. o Example: Input: WVOG JTXQ HUHX ICWY YMGH TRKQ HQPW KYVG LPYS EWGO INTO FORM OAAA AAAA AAAA AAAA Output: WVOG TXQJ HXHU YICW YMGH RKQT PWHQ GKYV LPYS WGOP TOIN MFOP OAAA AAAA AAAA AAAA
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Complete both functions in c++.

Transcribed Image Text:d) Shift Rows
This step is the same as the ShiftRows step in the AES encryption. Circularly shift the
rows in each block in the following fashion: The first row remains the same. Shift the
second row one position to the left. Shift the third row two positions to the left. Finally,
shift the fourth row three positions to the left.
Example:
Input:
WVOG
JTXQ
HUHX
ICWY
YMGH
TRKQ
HQPW
KYVG
LPYS
EWGO
INTO
FORM
OAAA
AAAA
AAAA
AAAA
Output:
WVOG
TXQJ
HXHU
YICW
Input:
WVOG
TXQJ
HXHU
YICW
YMGH
YMGH
RKQT
PWHQ
GKYV
RKQT
PWHQ
GKYV
LPYS
WGOP
LPYS
WGOP
TOIN
MFOP
e) Parity Bit
Convert each character to its numeric value (0-127) and use the most significant bit as a
parity bit.
O Example:
OAAA
AAAA
AAAA
AAAA
The numeric value of 'A' is 6510 = 010000012 = 4116- There is an even number of
ones in its binary representation, so the most significant bit stays unchanged.
However, the numeric representation of 'C' is 6710 = 010000112. In this case,
since there is and odd number of ones (i.e., three) in the binary representation, the
most significant bit will be set to one in order to have
number of one in the
binary representation, i.e., 'C' with added parity will be 110000112 = 19510 =
c316-
Output (in hexadecimal):
d7 56 cf 47
d4 d8 d1 ca
48 d8 48 55
59 c9 c3 d7
59 4d 47 48
d2 4b d1 d4
50 d7 48 dl
47 4b 59 56
cc 50 59 53
d7 47 cf 50
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY