AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "TOTP.h"
Public Types | |
using | Secret = std::vector< uint8 > |
Static Public Member Functions | |
static uint32 | GenerateToken (Secret const &key, time_t timestamp) |
static bool | ValidateToken (Secret const &key, uint32 token) |
Static Public Attributes | |
static constexpr std::size_t | RECOMMENDED_SECRET_LENGTH = 20 |
using Acore::Crypto::TOTP::Secret = std::vector<uint8> |
References HMAC_RESULT_SIZE, and TOTP_INTERVAL.
References GetEpochTime(), and TOTP_INTERVAL.
Referenced by account_commandscript::HandleAccount2FARemoveCommand(), account_commandscript::HandleAccount2FASetupCommand(), and AuthSession::HandleLogonProof().
|
staticconstexpr |
Referenced by account_commandscript::HandleAccount2FASetupCommand().