Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Feistal structure in C++ Program should read the number of rounds and key from command line. Convert all input to upper case and

Write a Feistal structure in C++

Program should read the number of rounds and key from command line. Convert all input to upper case and remove non-text characters and spaces. If the length of plaintext is not an even number, pad the text with binary zeros. Use a 32-bit block size Use the CBC mode for messages larger than the cipher block size.

Basic algorithm is: The input to each round is split into two blocks of bits. The round function for this round is applied to the right half. The result from the round function is XORed with the left half. The left and right half of the input is swapped and then the right half is replaced with the result of the previous step.

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_2

Step: 3

blur-text-image_3

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions