Hash function. Those implementations took a single argument: input.