Uh... don't we already have DSP hashing code in place already somewhere? Would be better to merge that into a standalone function rather than having it duplicated over different places.