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}.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
