Commit Graph

5 Commits

Author SHA1 Message Date
Lucas 33cc12f030 Also run tests with standard input
While there, add a explicit `-h sha1` to TOTP tests.
2020-06-15 23:57:39 +00:00
Lucas ecc23ff01f Add options for configuring digits and time step
Default digits to 6 and time step to 30 seconds. This implies passing
`-d 8' to all TOTP test cases.
2020-06-14 18:06:25 +00:00
Lucas 95341d4ca2 Fix test cases for TOTP
RFC 6238 isn't clear enough in the Test Vectors section, and the
different HMAC algorithms use different secrets.
2020-06-14 17:58:01 +00:00
Lucas 41ca24d151 Add TOTP support
Add all the test vectors from RFC 6238, but comment the non-SHA1 ones
for the time being.
2020-06-14 17:31:33 +00:00
Lucas 84587a4c32 Add test cases for HOTP 2020-06-14 04:21:11 +00:00