port high performance implementation of hash algorithms

port high performance implementation of hash algorithms