1. An apparatus comprising:a key generation component configured to input a data unit, extract values from the data unit, and form a hash key using the values extracted from the data unit;
a key extension component configured to input the hash key and extend the hash key by prepending or appending a predefined extension value to the hash key;
a key transformation component configured to input the extended hash key and transform the extended hash key based on an input mask value;
a hashing component configured to input the transformed extended hash key and generate one or more hash values by performing one or more hash functions on the transformed extended hash key;
a hash value manipulation component configured to input the one or more hash values and transform the one or more hash values based on an output mask value and at least one of the extended hash key or the transformed extended hash key;
a hash-based operation component configured to perform a hash-based operation with respect to the data unit based on information stored at a location whose address is determined using a particular transformed hash value generated by the hash value manipulation component.