Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Cryptography Do not use #include Will like immediately if code works correctly. Q4 (20 pts). Write a C++ function named inverseShiftRows that accepts four unsigned

Cryptography

Do not use #include

Will like immediately if code works correctly.

image text in transcribed

Q4 (20 pts). Write a C++ function named inverseShiftRows that accepts four unsigned integer x0,x1,x2, and x3 and shift rows (bytes) of those four numbers using the inverse ShiftRows Sublayer of AES. Your function should return nothing. The function should change the values of the arguments. Therefore, arguments should be passed by reference. Note that, the first byte (most significant 8 bits) of x0 becomes B0 in the following figures. For instance, at the end of the function, new value of x0 should be B0B13B10B7, new value of x1 should be B4B1B14B11, etc. Let x0=2,x1=2,000,x2=2,000,000, and x3=2,000,000,000. After calling the function (inverseShiftRows (x,x1,x2,x3); ), the new values of the variables will be x0=3,507,408,x1 =38,016,x2=0, and x3=1,998,456,578. Input matrix Output matrix

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions

Question

Which personal relationships influenced you the most?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago