[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110708.153258.1997707802176810939.davem@davemloft.net>
Date: Fri, 08 Jul 2011 15:32:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: roland@...estorage.com
Cc: johnwheffner@...il.com, mj@....cz, netdev@...r.kernel.org
Subject: Re: ipv4: Simplify ARP hash function.
From: Roland Dreier <roland@...estorage.com>
Date: Fri, 8 Jul 2011 13:44:42 -0700
> The answer is that you have to mix hash_rnd into the hash
> in a nonlinear way, so that an attacker can't know if two values
> end up in the same bucket or not.
>
> With your hash function, the attacker can just compute the
> hash (without hash_rnd) for all the values of key ^ ifindex
> and then use all the values that end up in the same bucket.
Ok, thanks everyone for explaining things.
So what is the cheapest non-linear function we could use?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists