In the HOTP [rfc 4226] tests, you took the truncationOffset value as 0 instead of some out of bound value like -1.
This causes dynamic truncation to fail and always result in offset set to 0,
as the if condition here always computes to true.
I found your errata in the rfc and noticed the wrong function call in the test file.
I just wanted to tell you that the [rfc 4226] test cases are correct.
In the HOTP [rfc 4226] tests, you took the
truncationOffset
value as 0 instead of some out of bound value like -1. This causes dynamic truncation to fail and always result inoffset
set to 0, as the if condition here always computes totrue
.I found your errata in the rfc and noticed the wrong function call in the test file. I just wanted to tell you that the [rfc 4226] test cases are correct.