/* * otpcli - command-line interface for HOTP and TOTP * Written in 2020-2021 by Lucas * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to the * public domain worldwide. This software is distributed without any * warranty. * * You should have received a copy of the CC0 Public Domain Dedication * along with this software. If not, see * . */ #include enum otp_hmac { OTP_HMAC_SHA1, OTP_HMAC_SHA256, OTP_HMAC_SHA512, }; int32_t hotp(enum otp_hmac, const void *, size_t, uint64_t, unsigned int); int32_t totp(enum otp_hmac, const void *, size_t, uint64_t, unsigned int, unsigned int);