Commit Graph

4 Commits

Author SHA1 Message Date
Lucas dd84a23e7e Provide a single OTP function that accepts a configuration struct 2021-02-16 16:59:56 +00:00
Lucas bfafd6b964 Fixes regarding CC0 license headers 2021-02-12 23:05:40 +00:00
Lucas 22333c5d6e Change totp to take a uint64_t instead of time_t
Let the application deal with converting time_t to uint64_t. For TOTP,
it's just a counter.

While there, rename 'granularity' to 'step', as it's used in RFC 6238.
2020-06-14 17:13:07 +00:00
Lucas a28d7cca02 Add HOTP implementation 2020-06-14 04:02:13 +00:00