Re: Making a weak Hash stronger until a fix comes along -- concatenation of hash functions... .2: Concatenation

From: David Wagner (daw_at_taverner.cs.berkeley.edu)
Date: 09/27/05


Date: Mon, 26 Sep 2005 23:13:26 +0000 (UTC)

Max Power wrote:
>My use of concatenation was not totally clear.
>I would never consider adding the strings of the 2 hashes together.

We understood that. As I and another poster have both pointed out,
there are attacks on concatenation (see Joux's multi-collision work)
which show that concatenation adds a lot less security than you might
think.

Taking the hash and feeding it into another hash function doesn't
help. If you use g(f(x)) as your hash function, and if f(.) has
collisions, then so will g(f(.)). Think about it.

Salts don't help, either.

>True, it is not a perfect solution -- but merely an adequate one.

Unfortunately, the proposals you presented are neither adequate nor
a solution, I'm sorry to say.



Relevant Pages

  • Making a weak Hash stronger until a fix comes along -- concatenation of hash functions... .2: Concat
    ... My use of concatenation was not totally clear. ... I would never consider adding the strings of the 2 hashes together. ... I would take the binary output and use it as a binary input into another ...
    (sci.crypt)
  • Re: Constructing PRNGs from hash functions
    ... a hash function as the PRF. ... Define || as concatenation. ... I not only wish to obtain opinions regarding the above, ...
    (sci.crypt)
  • Re: string concatenation optimizations [from python-dev Summary]
    ... Essentially what I have in mind is a type that's a list of byte ... The value is defined as the concatenation of these arrays. ... > way to concatenate a bunch of strings. ...
    (comp.lang.python)
  • Re: why use the data command parameter collection
    ... cumbersome than using an iterative object oriented approach. ... quote characters or other such input by concatenating strings. ... Parameters Collection. ... Also the approach string concatenation leaves a lot to be desired (see ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: From D
    ... string concatenation and allow numeric literals to implicitly concatenate? ... Did you miss the bit where Python ALREADY does this for strings? ... because two int tokens can be "concatenated" to make a single int token, ...
    (comp.lang.python)