diff options
author | Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com> | 2024-02-20 23:10:13 -0300 |
---|---|---|
committer | Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com> | 2024-02-20 23:10:13 -0300 |
commit | 67907e4e5c2b3347a37e9488549216f71e1a57b2 (patch) | |
tree | 42891e5c0df014dd15ebeb731d5f654fba528d89 | |
parent | af18673e1aa53091880d829a6fa4d7e23a6b4381 (diff) | |
download | Sensor-Watch-67907e4e5c2b3347a37e9488549216f71e1a57b2.tar.gz Sensor-Watch-67907e4e5c2b3347a37e9488549216f71e1a57b2.tar.bz2 Sensor-Watch-67907e4e5c2b3347a37e9488549216f71e1a57b2.zip |
faces/totp: define TOTP data structure
Aggregates all the data necessary for TOTP generation.
-rw-r--r-- | movement/watch_faces/complication/totp_face.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/movement/watch_faces/complication/totp_face.c b/movement/watch_faces/complication/totp_face.c index 242820d7..d634baa3 100644 --- a/movement/watch_faces/complication/totp_face.c +++ b/movement/watch_faces/complication/totp_face.c @@ -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; |