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).
Loading...
Searching...
No Matches
randomKey.h
Go to the documentation of this file.
1// //
2// // Created by Erick Grant on 10/26/24.
3// //
4//
5
6#ifndef RANDOMKEY_H
7#define RANDOMKEY_H
8#include <stdint.h>
9#include <stdio.h>
10
11
12void generateStringKey(char* keyString, int length);
13uint8_t* base32_decode2(const char* input, size_t* output_len);
14uint8_t* cloneArray(const uint8_t* original, size_t length);
15int testRandomKey();
16
17#endif // RANDOMKEY_H
size_t output_len
The length of the uint_8 key in bytes.
Definition main.c:126
int testRandomKey()
Definition randomKey.c:209
uint8_t * base32_decode2(const char *input, size_t *output_len)
Decodes a Base32-encoded string into a binary byte array.
Definition randomKey.c:128
void generateStringKey(char *keyString, int length)
Generates a full string of random characters.
Definition randomKey.c:82
uint8_t * cloneArray(const uint8_t *original, size_t length)
Function to clone a uint8_t array.
Definition randomKey.c:176