Write a C++ function named permute that accepts an unsigned integer (32 bit) as input and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C++ function named permute that accepts an unsigned integer (32 bit) as input and returns an unsigned int (32 bit) using the permutation function P off-function of DES. The permutation table is given below. Here, you can assume bit 1 as the most significant bit and bit 32 as the least significant bit of the input. Therefore, permute(1) should return 2048, which is equal to (0000 0000 0000 0000 0000 1000 0000 0000)2 because the 32th bit of input becomes the 21st bit of the output. P 16th bit of input becomes the 1st bit of the output. 16 7 20 21 29 12 28 17 1 15 23 26 5 18 31 10 2 8 24 14 32 27 3 9 19 13 30 6 22 11 4 25 Write a C++ function named permute that accepts an unsigned integer (32 bit) as input and returns an unsigned int (32 bit) using the permutation function P off-function of DES. The permutation table is given below. Here, you can assume bit 1 as the most significant bit and bit 32 as the least significant bit of the input. Therefore, permute(1) should return 2048, which is equal to (0000 0000 0000 0000 0000 1000 0000 0000)2 because the 32th bit of input becomes the 21st bit of the output. P 16th bit of input becomes the 1st bit of the output. 16 7 20 21 29 12 28 17 1 15 23 26 5 18 31 10 2 8 24 14 32 27 3 9 19 13 30 6 22 11 4 25
Expert Answer:
Answer rating: 100% (QA)
Introduction The DES Data Encryption Standard algorithm is a widely used symmetrickey algorithm for the encryption of digital data In cryptographic ap... View the full answer
Posted Date:
Students also viewed these programming questions
-
Lime E-scooter company faces lots of problems. Please explain properly the following listed problem in depth. Charging and stolen problem: Another challenge that Lime company faces is that the...
-
Question: Old MathJax webview Old MathJax webview i need ans of these question but the source is alot Old MathJax webviewOld MathJax webview i need ans of these question but the source is alot these...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
a. Consider the general effect of the discount rate on the dynamic efficient allocation of a depletable resource across time. Suppose we have two versions of the two-period model discussed in this...
-
Japanese manufacturer Kyocera is implementing the 5S concept which is a workplace organization method focusing on efficiency and effectiveness. 5S program was developed in Japan as a tool for...
-
Prove that a) b) c) d) e) L{1}(s) =-, s>0 Lie" }(s) =-a, , S a, a E R Cicos(b))>0, beR L{sin(bt))(s) s > 0, b E R s2+b2.
-
Whalen Company manufactures tablecloths. Sales have grown rapidly over the past 2 years. As a result, the president has installed a budgetary control system for 2002. The following data were used in...
-
Sikes Hardware is adding a new product line that will require an investment of $1,500,000. Managers estimate that this investment will have a 10-year life and generate net cash inflows of $315,000...
-
On June 30, 2021, Marketplace Company leased a machine from Air Leasing. The contract requires Marketplace to make semiannual lease payments of $243,073 over a four-year lease term, payable each June...
-
Drill co. has filed its tax declaration for 2022 showing an accounting income of KD2.150m. Tax inspection has revealed that the company did not report an income from premium issuance of additional...
-
You are the HR Director for a large manufacturing organization with plants located across the United States. About half are currently unionized, however your plant is not unionized. One of the goals...
-
XYZ Corporation started three years ago. Operations were smooth until December 20 of this year, when their cost accountant, named Cutie Pie, went AWOL (absence without leave). The management was...
-
Give examples of mergers of the vertical, horizontal and conglomerate types. Use your own examples and explain why in each case. In what situations would a merger be a good idea? Why are the fixed...
-
What is a legal Issue as it relates to the process of legal analysis? How important do you think it is to identify and create the legal issue or Question Presented compared to the other components of...
-
1. Describe the issue the company is facing 2. Calculate the costs for the four favors using ABC, reproduce the income statement, and calculate the new profit margin for each flavor 3. Compare the...
-
The demand for a product in the past 10 months were: 636, 463, 738, 744, 555, 486, 667, 518, 450, 682 Suppose a four-month moving average method is used to generate forecasts. What is the forecasted...
-
Marc Company assembles products from a group of interconnecting parts. The company produces some of the parts and buys some from outside vendors. The vendor for Part X has just increased its price by...
-
Which and how many methods would you recommend using prior to committing to a 1m development project?
-
The hotel has a maximum of 800,000 available for capital investment Note: these figures are cash flows; depreciation is straight-line over 4 years. a) Calculate the payback period, accounting rate of...
-
Using the data from question 6, calculate the IRR. How does this impact on your decision making?
The Origins Of Accounting Culture The Venetian Connection 1st Edition - ISBN: 0367734710 - Free Book
Study smarter with the SolutionInn App