10 #include <botan/hotp.h> 28 size_t digits = 6,
size_t time_step = 30);
33 uint32_t generate_totp(std::chrono::system_clock::time_point time_point);
39 uint32_t generate_totp(uint64_t unix_time);
41 bool verify_totp(uint32_t otp,
42 std::chrono::system_clock::time_point time,
43 size_t clock_drift_accepted = 0);
45 bool verify_totp(uint32_t otp, uint64_t unix_time,
46 size_t clock_drift_accepted = 0);
51 std::chrono::system_clock::time_point m_unix_epoch;
#define BOTAN_PUBLIC_API(maj, min)
AlgorithmIdentifier hash_algo