re structure

This commit is contained in:
2025-07-02 14:22:48 +02:00
parent e80990c521
commit c1cbf18c8f
10 changed files with 171 additions and 15 deletions

13
lib/totp/totp.hpp Normal file
View File

@@ -0,0 +1,13 @@
#ifndef __TOTP_H__
#define __TOTP_H__
#include <inttypes.h>
#include <time.h>
void TOTP(uint8_t *hmacKey, uint8_t keyLength, uint32_t timeStep);
void setTimezone(uint8_t timezone);
uint32_t getCodeFromTimestamp(uint32_t timeStamp);
uint32_t getCodeFromTimeStruct(struct tm time);
uint32_t getCodeFromSteps(uint32_t steps);
#endif