bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: propose renaming gnulib memxfrm to amemxfrm (naming collision with c


From: Paul Eggert
Subject: Re: propose renaming gnulib memxfrm to amemxfrm (naming collision with coreutils)
Date: Sat, 07 Aug 2010 22:56:19 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6

On 08/07/10 04:40, Simon Josefsson wrote:

> I suspect FNV or Xorshift would be faster, since they are so simple:

Yes, they'd be faster, but there may be some collision
problems with those.  FNV would seem better suited, since it's
a hash function.  I did quick scan for relevant articles and
found this quote:

  "FNV is not a collision-resistant function and has some known
  collision issues, which are common among multiplicative
  functions. Therefore, the probabilistic rationale presented in the
  paper, which assumes a perfect hash, should be taken with a grain of
  salt.  Generally, given that the performance benchmark is
  block-level crypto hashing, using MD5 would seem an appropriate
  choice, especially for inputs with lower entropy which would present
  a serious problem for simple hashes."

  Roussev V, Richard GG III, Marziale L.  Multi-resolution similarity
  hashing.  Digit Invest 4, 1 (2007), S105-13.
  <http://www.dfrws.org/2007/proceedings/p105-roussev.pdf>

True, sort -R isn't intended for crypto applications, but it is
supposed to work well with low-entropy keys.  Perhaps we should
leave well enough alone.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]