Re: hash function

From: Aldar C-F. Chan (aldar_at_comm.utoronto.ca)
Date: 02/22/05


Date: Tue, 22 Feb 2005 01:01:05 GMT


> I don't understand what you mean. The PRF algorithm is public. The only
> thing secret is the key.
>
> If you use a hash, the same will be true. The hash algorithm will be
> public. The only thing secret will be the key ("a", in your terminology).
>

Wait a minute. I am afraid we are not talking about the same thing.
In more details, I am considering the following:

   Suppose there is a group of people some of which know a secret x
   while the rest don't. For each one of the rest, say i, he is given
   a_i and y_i=h(x||a_i). Those a_i (a in my original notation) could be
   public. Anyone, even those having no knowledge of x, should be
   able to evaluate h( ). I want to make sure that people having
   (a_i, y_i) should not be able to find x (or, at the best, a collision of
x).

When I said public, I really meant h( ) can be publicly evaluated!! So
PRF does not fit. Who can evaluate it without knowing k?

What I have in mind is a preimage-resistant hash function h( ) that have a
slightly stronger security in that given an image y under h( ), and part of
whose pre-image (a), it is still hard to find the unexposed part of the
preimage (x). Another reply from Jean was addressing the same thing.
Don't why our discussions went on like this !?!

> I recommend against building your own funny construction. That way is
> error-prone. Use a standard primitive whereever you can.

This is kind of common sense 101; everyone knows this. If a standard
primitive could help, who would bother to create a FUNNY construction?

Your comments and suggestions are really very appreciated. If I didn't
speak
in the right tone, please accept my apology.



Relevant Pages

  • Re: Cryptographic hash function for small microcontroller
    ... The microcontroller is fairly fast ... SHA-1 and related hashes all require too much RAM for this ... <Then you can't have a cryptographic hash. ... microcontroller) to a PC using a shared secret. ...
    (sci.crypt)
  • Re: AES as hash function and PRNG
    ... > For encryption I decided to use AES-128. ... And they have to remain secret. ... If you have less than 16 bytes to hash, just pad the key with ASCII ... Choose any input as the plaintext to run through AES. ...
    (sci.crypt)
  • Re: Algorimic Complexity Attacks
    ... For instance, in a hash table, the performance is ... while using a keyed hash function offers the best ... It requires that a cryptographically random secret is used ... Now the promised attack on using a keyed hash function with the above ...
    (Bugtraq)
  • Re: CRC as authentication?
    ... |>instead of the more expensive universal hashes that require field ... If the polynomial is secret, and if you use the CRC correctly, ... | conditions on how you use it, then the resulting hash is an AXU-2 hash. ... If the attacker can force *almost* the same message to be transmitted ...
    (sci.crypt)
  • Short string of data as input of SHA 256
    ... concatened with 24 non secret bits of data, ... I obtain a 256 bits string. ... Toward an attack trying to find the input from the output is brut ... although hash algorithms are usually ...
    (sci.crypt)

Quantcast