Simplify HOTP code and untie from HMAC-SHA1