Question: (0) In this assignment you will write a program that produces pseudo-random bits by simulating a linear feedback shift register, and then use it to

(0) In this assignment you will write a program that produces pseudo-random bits by simulating a linear feedback shift register, and then use it to implement a simple form of encryption for digital pictures. For this portion of the assignment, you will: implement the LFSR class implement unit tests using the Boost test framework Your first task is to write a data type that simulates the operation of a LFSR by implementing the following API: class LFSR { public: LFSR(string seed, int t); // constructor to create LFSR with // the given initial seed and tap int step(); // simulate one step and return the // new bit as 0 or 1 int generate(int k); // simulate k steps and return // k-bit integer private: ... } Testing. Implement unit tests using the Boost test framework.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!