The combination does limit an attacker to having to create a message within much less leeway by removing the chosen prefix collision from the attacker's inventory.

That particular type of attack involves the selection of two prefixes S and S' for the two messages P and P' such that the concatenated values P||S and P'||S' collide under the method being attacked. (From what I can tell, S and S' are suffixes of the same size.)

http://www.win.tue.nl/hashclash/SoftIntCodeSign contains an example of two executables for which modified versions experienced an MD5 collision. Using these files, if Z1, Z2, and Z' are the respective sizes of the two files and the colliding pair's files (and denoting the md5 function as M(), then the combined values M(P)||Z1 != M(P')||Z2, but M(P||S)||Z' == M(P'||S')||Z' (although M(P)||Z1 != M(P'||S')||Z').

As a result, the attacker thus has to find a string of exactly the same length that results in the same hash value. Whether finding that is easier than finding a vulnerability in the 256-bit algorithm being used is left as an exercise to the reader. :)


In reply to Re: Speculation: 128-bit digest + 64-bit length (192-bits) is more reliable and unique than a 256-digest alone. by atcroft
in thread (OT)Speculation: 128-bit digest + 64-bit length (192-bits) is more reliable and unique than a 256-digest alone. by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.