faces/totp: define TOTP data structure

Aggregates all the data necessary for TOTP generation.
This commit is contained in:
Matheus Afonso Martins Moreira 2024-02-20 23:10:13 -03:00
parent af18673e1a
commit 67907e4e5c

View File

@ -29,6 +29,14 @@
#include "watch_utility.h"
#include "TOTP.h"
typedef struct {
unsigned char labels[2];
hmac_alg algorithm;
uint32_t period;
size_t key_length;
uint8_t *key;
} totp_t;
////////////////////////////////////////////////////////////////////////////////
// Enter your TOTP key data below
static const uint8_t num_keys = 2;