3 ms·
Typically it is important for a hash function to be fast, because it is on the critical path. This hash function builds up a very long dependency chain, so tak
by ncmncm 5y ago
Typically it is important for a hash function to be fast, because it is on the critical path.
This hash function builds up a very long dependency chain, so takes about as many clock cycles as lines. It is generally better to keep dependency chains short and independent.
In this case, it would be better to start three or more separate expressions, and xor them together at the end, so they could execute in parallel, maybe 3x as fast.
But if you have an AES instruction, a couple of rounds of that are probably better and faster than what you would invent.