Working model finished

This commit is contained in:
2024-05-11 23:26:56 +05:30
commit 7ec4cca908
10 changed files with 580 additions and 0 deletions

16
include/rfc6238.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef RFC6238_H
#define RFC6238_H
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "rfc4226.h"
#define TS 30 /* time step in seconds, default value */
uint32_t TOTP(uint8_t* key, size_t kl, uint64_t time, int digits);
time_t get_time(time_t T0);
#endif