Ensure hmac is reset on each iteration.