summaryrefslogtreecommitdiffstats
path: root/movement/lib/TOTP-MCU/TOTP.h
diff options
context:
space:
mode:
authorWesley Ellis <tahnok@gmail.com>2021-11-23 21:37:54 -0500
committerWesley Ellis <tahnok@gmail.com>2021-11-23 21:40:27 -0500
commit4a0ff5577363a1bd315693b41f448e3774de9e34 (patch)
tree1f114cf2d110b431b750ab073713d52dc5d1077d /movement/lib/TOTP-MCU/TOTP.h
parent121e6fd165a03f9249100e73bdf658e545e10d25 (diff)
downloadSensor-Watch-4a0ff5577363a1bd315693b41f448e3774de9e34.tar.gz
Sensor-Watch-4a0ff5577363a1bd315693b41f448e3774de9e34.tar.bz2
Sensor-Watch-4a0ff5577363a1bd315693b41f448e3774de9e34.zip
Properly vendor TOTP-MCU temporarily
Diffstat (limited to 'movement/lib/TOTP-MCU/TOTP.h')
m---------movement/lib/TOTP-MCU0
-rw-r--r--movement/lib/TOTP-MCU/TOTP.h8
2 files changed, 8 insertions, 0 deletions
diff --git a/movement/lib/TOTP-MCU b/movement/lib/TOTP-MCU
deleted file mode 160000
-Subproject 646474a8757e1fca490792e81082b2ad89b966a
diff --git a/movement/lib/TOTP-MCU/TOTP.h b/movement/lib/TOTP-MCU/TOTP.h
new file mode 100644
index 00000000..13715f4d
--- /dev/null
+++ b/movement/lib/TOTP-MCU/TOTP.h
@@ -0,0 +1,8 @@
+#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);