made the hash interface closer match the hmac interface