Merge pull request #720 from Ayrx/hotp-length-type-check

Added length type check to HOTP and corresponding test