Question: 1 . Implement ( 2 , 3 ) Shamir s Secret Sharing ( SSS ) scheme ( both share preparation and reconstruction ) for images.
Implement Shamirs Secret Sharing SSS scheme both share preparation and reconstruction for images. You need to show the working of your program by creating shares of an image and show the image shares. Next, you will choose any two shares and show the reconstructed image as output. You need to operate on image data, leaving the header intact. You can use any BMP image of your choice. Note that the header length in BMP file format is bytes.
Next, you are required to demonstrate the homomorphic properties of SSS scheme using the image downscaling operation. In a homomorphic encryption scheme, computations performed on encrypted data, when decrypted, generates the same value as when the same computations are performed on the plaintext.
The downscaling operation takes an input image and produces an image whose width and height are less than the input image. You need to implement downscaling by a factor of This means that both the width and height of your output image will be exactly half of the input image.
You are required to do the following steps:
Take an input image I of certain resolution and use the downscale method on this image to obtain the downscaled image Io In the downscale method, each pixel of Io is the average of four pixels of I. For example, pixel of Io is the average of pixels of I; pixel of Io is the average of of image I. As a result, the resolution of Io will be half of I in both x and y dimensions.
Create shares denoted by I I I of I using the SSS scheme.
Perform the downscale method on all the three shares and obtain the downscaled shares denoted by Is Is Is
Pick any downscaled shares, ie from Is Is Is and reconstruct the downscaled plaintext image denoted by Is
Compute the mean average error between the two images, Io and Is using the following equation:
MAE j to wh Ioj Isj
where w and h are image width and height.
Show the output of each step and report your observations.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
