migrated some hash functions from gcrypt to nettle