Re: Secure hash function and AES



"Zarathustra" <lormayna@xxxxxxxxx> writes:

Hello everybody,
I need a secure, but easy to calculate hash function for wireless
sensor network. I may using AES128 and a random number generator. My
idea to valuate H(x) is :
- initialize the random generator with x and generate a number r;
-Calculate x XOR r;
-Encrypt x with key x XOR r.

Do you think this will be secure? It's easy to find some flaws or some
collisions?

Why are you trying to reinvent the wheel? Just use a standard hash
function. Anything you invent may well have weaknesses upon detailed study.
It will never get that study except by your enemy who is unlikely to tell
you about the weaknesses. A well known hash on the other hand has been
studied by lots of people who have made their studies public.

But for you study seems to be 5 min of someones time responding to your
usenet post.


All hashes have collisions. Otherwise it is an encryption.

Thank you everybody
LORENZO

.



Relevant Pages

  • Re: Some comments on "super fast hash"
    ... SFH seems reasonably good and certainly is fast. ... > a hash, and SFH does not. ... The latest versions of each hash function which leverages this ... it must behave worse on other key sets. ...
    (comp.programming)
  • Some comments on "super fast hash"
    ... I've implemented a hash function here: ... SFH seems reasonably good and certainly is fast. ... quality of the hash function is not affected by the difference as far ... it must behave worse on other key sets. ...
    (comp.programming)
  • Re: Maximum String size in Java?
    ... >> compilation on any new target platform that does not already have ... Do you have a version of SFH posted with changes to use this file ... If they intend to use a hash ... benefit of 31/33 will sway me into using more than one hash function. ...
    (comp.programming)
  • Re: Suggestions for double-hashing scheme
    ... chain style and reprobe style are basically a wash. ... will be a smaller chance of encountering deleted entries before it. ... Once you sufficiently optimize a hash table, ... by computing of the hash function). ...
    (comp.programming)
  • Re: Possibility to cheat integrity checking?
    ... No. Weaknesses have been found. ... I won't claim that you're -wrong- for continuing to use MD5 for file ... as a secure hash function. ... >criteria's for AES is that the cipher should be easily useable as a ...
    (Focus-IDS)