hasher: Add function to determine length of hashes