Added native (C) implementation of hash functions