A method and apparatus for authentication of data includes inputting of
data into a first layer of a hashing function for rotation based hashing,
then inputting results from the first layer to a second layer of the
hashing function for substitution based hashing. Feedback is provided
from the second layer to the first layer and digests are output from the
first and second layers.