|
SWE-350 TOTP Generator Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
|
#include <inttypes.h>

Go to the source code of this file.
Data Structures | |
| union | _buffer |
| union | _state |
Macros | |
| #define | HASH_LENGTH 20 |
| #define | BLOCK_LENGTH 64 |
Functions | |
| void | init (void) |
| void | initHmac (const uint8_t *secret, uint8_t secretLength) |
| uint8_t * | result (void) |
| uint8_t * | resultHmac (void) |
| void | write (uint8_t) |
| void | writeArray (uint8_t *buffer, uint8_t size) |
Variables | |
| union _buffer | buffer |
| union _state | state |
| uint8_t | bufferOffset |
| uint32_t | byteCount |
| uint8_t | keyBuffer [BLOCK_LENGTH] |
| uint8_t | innerHash [HASH_LENGTH] |
| void init | ( | void | ) |
| void initHmac | ( | const uint8_t * | secret, |
| uint8_t | secretLength ) |
| uint8_t * result | ( | void | ) |
| uint8_t * resultHmac | ( | void | ) |
| void write | ( | uint8_t | data | ) |
| void writeArray | ( | uint8_t * | buffer, |
| uint8_t | size ) |
| union _buffer buffer |
| uint8_t innerHash[HASH_LENGTH] |
| uint8_t keyBuffer[BLOCK_LENGTH] |
| union _state state |