Support alternate hash algorithms.