Re: Hash function
- From: Carlos Moreno <moreno_at_mochima_dot_com@xxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 09:21:02 -0500
bobic wrote:
Hi, everyone. Here, I have a problem about hash function. That is, can
we construct a hash function, such that, H(x)=y, where x is a random
string, and y=p_1*...*p_k mod p, p_1,...,p_k are small primes, p is a
large prime.
Are you asking if it is possible to design a hash function that has
the above properties? Of course -- you can do whatever you want; the
thing is, will it be a good hash function from the point of view of
pre-image and collision resistance? (most likely not)
As an example: take each character (well, each block of N bits, for
a given value of N) of the input, and determine the lowest prime number
that is greater than that N-bit number; multiply them together and
then use some other trick to come up with the large prime -- use a
randomized primality test that uses a deterministic *pseudo-random*
generator that is seeded with something obtained from the data.
Hope this answers your question.
Carlos
--
.
- References:
- Hash function
- From: bobic
- Hash function
- Prev by Date: Re: Mass flooding of sci.crypt
- Next by Date: Re: This newsgroup is becoming useless, sadly...
- Previous by thread: Re: Hash function
- Next by thread: Re: Hash function
- Index(es):
Relevant Pages
|
|