Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
TOTP.cpp File Reference
#include "TOTP.h"
#include "openssl/evp.h"
#include "openssl/hmac.h"
#include <cstring>
Include dependency graph for TOTP.cpp:

Go to the source code of this file.

Namespaces

namespace  TOTP

Macros

#define HMAC_RES_SIZE   20

Functions

int base32_decode (std::string &encoded, char *result, int bufSize)
unsigned int TOTP::GenerateToken (std::string &b32key)

Macro Definition Documentation

◆ HMAC_RES_SIZE

#define HMAC_RES_SIZE   20

Definition at line 59 of file TOTP.cpp.

Referenced by TOTP::GenerateToken().

Function Documentation

◆ base32_decode()

int base32_decode ( std::string & encoded,
char * result,
int bufSize )

Definition at line 13 of file TOTP.cpp.

Referenced by TOTP::GenerateToken().