Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

S boxes for DES are provided below Implement a single round of DES in C(++) or Java. The steps were explained in class. It does

image text in transcribed

S boxes for DES are provided below

image text in transcribed

image text in transcribed

Implement a single round of DES in C(++) or Java. The steps were explained in class. It does not need to include the initial or final permutation. Test with the round keys 0x123456789abc for DES. Measure the execution speed of the implementation (using the time service). (You may need to execute the function more than once to get meaningful results.) The S boxes for DES are provided in the KPS textbook or S1 14, 4, 13, 1, 2, 15, 11, 8,3, 10, 6, 12, 5, 9, 0, 7, e, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8, 4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 1e, 5, e, 15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 1e, e, 6, 13, S2 15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, e, 5, 10, 3, 13, 4, 7, 15, 2, 8, 14, 12, e, 1, 10, 6, 9, 11,5, 0, 14, 7, 11, 1e, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15, 13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9, S3 1e, e, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8, 13, 7, e, 9, 3, 4, 6, 16,2, 8, 5, 14, 12, 11, 15, 1, 13, 6, 4, 9, 8, 15, 3, e, 11, 1, 2, 12, 5, 1e, 14, 7, 1, 1e, 13, , 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12, S4 7, 13, 14, 3, e, 6, 9, 1, 1, 2, 8, 5, 11, 12, 4, 15, 13, 8, 11, 5, 6, 15, e, 3, 4, 7, 2, 12, 1, 1e, 14, 9, 10, 6, 9, e, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4, 3, 15, e, 6, 1e, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14, S5 2, 12, 4, 1, 7, 1e, 11, 6, 8, 5, 3, 15, 13, e, 14, 9, 14, 11, 2, 12, 4, 7, 13, 1, 5, e, 15, 10, 3, 9, 8, 6, 4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, , 14, 11, 8, 12, 7, 1, 14, 2, 13, 6, 15, e, 9, 10, 4, 5, 3, S6 12, 1, 1e, 15, 9, 2, 6, 8, e, 13, 3, 4, 14, 7, 5, 11, 1e, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, e, 11, 3, 8, 9, 14, 15, 5, 2, 8, 12, 3, 7, e, 4, 10, 1, 13, 11, 6, 4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, e, 8, 13, S7 4, 11, 2, 14, 15, e, 8, 13, 3, 12, 9, 7, 5, 1e, 6, 1, 13, 0, 11, 7, 4, 9, 1, 18, 14, 3, 5, 12, 2, 15, 8, 6, 1, 4, 11, 13, 12, 3, 7, 14, 1e, 15, 6, 8, e, 5, 9, 2, 6, 11, 13, 8, 1, 4, 1e, 7, 9, 5, e, 15, 14, 2, 3, 12, S8 13, 2, 8, 4, 6, 15, 11, 1, 1e, 9, 3, 14, 5, e, 12, 7, 1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, e, 14, 9, 2 7, 11, 4, 1, 9, 12, 14, 2, e, 6, 1, 13, 15, 3, 5, 8, 2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, e, 3, 5, 6, 11 Implement a single round of DES in C(++) or Java. The steps were explained in class. It does not need to include the initial or final permutation. Test with the round keys 0x123456789abc for DES. Measure the execution speed of the implementation (using the time service). (You may need to execute the function more than once to get meaningful results.) The S boxes for DES are provided in the KPS textbook or S1 14, 4, 13, 1, 2, 15, 11, 8,3, 10, 6, 12, 5, 9, 0, 7, e, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8, 4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 1e, 5, e, 15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 1e, e, 6, 13, S2 15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, e, 5, 10, 3, 13, 4, 7, 15, 2, 8, 14, 12, e, 1, 10, 6, 9, 11,5, 0, 14, 7, 11, 1e, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15, 13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9, S3 1e, e, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8, 13, 7, e, 9, 3, 4, 6, 16,2, 8, 5, 14, 12, 11, 15, 1, 13, 6, 4, 9, 8, 15, 3, e, 11, 1, 2, 12, 5, 1e, 14, 7, 1, 1e, 13, , 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12, S4 7, 13, 14, 3, e, 6, 9, 1, 1, 2, 8, 5, 11, 12, 4, 15, 13, 8, 11, 5, 6, 15, e, 3, 4, 7, 2, 12, 1, 1e, 14, 9, 10, 6, 9, e, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4, 3, 15, e, 6, 1e, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14, S5 2, 12, 4, 1, 7, 1e, 11, 6, 8, 5, 3, 15, 13, e, 14, 9, 14, 11, 2, 12, 4, 7, 13, 1, 5, e, 15, 10, 3, 9, 8, 6, 4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, , 14, 11, 8, 12, 7, 1, 14, 2, 13, 6, 15, e, 9, 10, 4, 5, 3, S6 12, 1, 1e, 15, 9, 2, 6, 8, e, 13, 3, 4, 14, 7, 5, 11, 1e, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, e, 11, 3, 8, 9, 14, 15, 5, 2, 8, 12, 3, 7, e, 4, 10, 1, 13, 11, 6, 4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, e, 8, 13, S7 4, 11, 2, 14, 15, e, 8, 13, 3, 12, 9, 7, 5, 1e, 6, 1, 13, 0, 11, 7, 4, 9, 1, 18, 14, 3, 5, 12, 2, 15, 8, 6, 1, 4, 11, 13, 12, 3, 7, 14, 1e, 15, 6, 8, e, 5, 9, 2, 6, 11, 13, 8, 1, 4, 1e, 7, 9, 5, e, 15, 14, 2, 3, 12, S8 13, 2, 8, 4, 6, 15, 11, 1, 1e, 9, 3, 14, 5, e, 12, 7, 1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, e, 14, 9, 2 7, 11, 4, 1, 9, 12, 14, 2, e, 6, 1, 13, 15, 3, 5, 8, 2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, e, 3, 5, 6, 11

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books