Re: Hash function, Birthday paradox and probabilities.



In article <1142474371.813464.184320@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<fabrice.gautier@xxxxxxxxx> wrote:


I'm wondering about this problem, its coming from a computer science
background but I think this is mainly a probability theory problem. The
title is probably misleading as I dont really know how to describe the
problem in one line, and I'll probably get the vocabulary all wrong, so
dont hesitate to fix the way I set the problem :

Lets have:
- a hash function H() that take as input a bit string of length L and
return an hash of length N bits (ie an integer in the range [0, 2^N[)
- a iterator function F, that takes as input a bit string of length L
and return another bit string of length L,
- S[0], S[1],... S[n], bit strings of length L, so that
S[i+1]=F(S[i]),
- h[0], ...h[n], so that h[i]=H(S[i])
- M a fixed hash

Given all that lets define m, the smallest positive integer so that
h[m]=M.

I'm wondering how A and H affect the probabilistic properties of m.

You mean F and H?

....

Now the question is what is the best function a() to minize m (in
average), and how to minimize the "spread" of m around its average.
(There must be a better word than "spread" but I dont remember)

If you really want m to be small, make F (which I suppose is the same
as "a()") always return a string S such that H(S) = M. But I doubt
that's what you really want.

I have been trying two things:
- s(0)=random(), s(i+1)=s(i)+1 (modulo 2^32),
- s(i)=random()

s(i)=random() is not compatible with S[i+1]=F(S[i]).

Robert Israel israel@xxxxxxxxxxx
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada


.



Relevant Pages

  • Reducing the chance of collisions in known encryption systems
    ... is needed is any password that will result in the captured hash. ... A very long string of random characters ... Firstly a rule is decided upon so that we dont make this terminally ...
    (sci.crypt)
  • Hash function, Birthday paradox and probabilities.
    ... background but I think this is mainly a probability theory problem. ... return an hash of length N bits ... that takes as input a bit string of length L ... and how to minimize the "spread" of m around its average. ...
    (sci.math)
  • Re: hash, key, problem...
    ... I cant get something done since a while. ... I have the following hash for example: ... You can also of course get the string as: ... matter what I try - i dont get the name of the key, ...
    (comp.lang.ruby)
  • Re: How do make the best colorpicker option ... hopefully with AJAX
    ... Since I dont have the SesssionID or anything at the webservice? ... and it works, but since I dont have access to the Session object in the webservice, I can't do any authentication. ... so I may have a string like this ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 10s are easier than 9s??
    ... My name aint Keef. ... If you're going to address me then use my name or dont ... tune on your G string is because you're just so fucking special or dont know ... difference in playablity from guitar to guitar... ...
    (alt.guitar)