12 Aug Consider the following variants of Merkle–Damgård, where we start with the original construction and make a small change
Problem 3. (20 points) Consider the following variants of Merkle–Damgård, where we start with
the original construction and make a small change. Do the resulting constructions remain secure?
Justify your answers. You may assume that ? and ℓ are at least reasonably large numbers, say at
least 8.
(a) Variant 1: The first bit of the padding block is removed, i.e. ?? := 00…00||⟨?⟩.
(b) Variant 2: Instead of outputting ??, output (??−1,??), i.e. we output the hash of the first (?−1)
blocks along with the last block in plain text.
Problem 4. (20 points) Show that truncating the output of a CRHF even by one bit does not
necessarily result in a CRHF. That is, assume there exists a collision-resistant hash function ? : {0, 1}* → {0, 1}?.
Use ? to construct ?′ : {0, 1}* → {0, 1}^? such that ?′ is a CRHF, but ?′′(?) := ?′(?)[: −1] (in Python notation) is not a CRHF.
Hint: The easiest solution is to artificially modify ? so that it has a collision on the first ? − 1
bits of the output for some messages.
Problem 5. (15 points) Let (?,?) be a CPA-secure cipher defined over (?,ℳ, ?) and let ? : ? → ? be a CRHF.
Define the following cipher (?′,?′) over (?,ℳ, ? × ? ):
?′(?,?) := (?,?(?)) where ? ? ←− ?(?,?);
?′(?, (?1, ?2)) := {︃?(?, ?1), if ?(?1) = ?2; reject, otherwise}.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.