|
|
|
|
|
by dependenttypes
2191 days ago
|
|
> but it it would be a 128-bit hash function with the security properties of a 64-bit hash function This is not true. Consider two hash functions f and g f(x) = md5(x)[0..63]
g(x) = md5(x)[64..127]
and a third function h(x) = f(x) || g(x)
where || is concatSo no, concating multiple smaller hash functions is not any weaker than using a single big one. |
|
I have to admit that I'm not the greatest cryptography whiz, but I can't image that this holds up for _independent_ hash functions, where you should be able to more cheaply run a preimage attack against two 64bit hash functions than one 128bit hash function.