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
12
void
generateStringKey
(
char
* keyString,
int
length);
13
uint8_t*
base32_decode2
(
const
char
* input,
size_t
*
output_len
);
14
uint8_t*
cloneArray
(
const
uint8_t* original,
size_t
length);
15
int
testRandomKey
();
16
17
#endif
// RANDOMKEY_H
output_len
size_t output_len
The length of the uint_8 key in bytes.
Definition
main.c:126
testRandomKey
int testRandomKey()
Definition
randomKey.c:209
base32_decode2
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
generateStringKey
void generateStringKey(char *keyString, int length)
Generates a full string of random characters.
Definition
randomKey.c:82
cloneArray
uint8_t * cloneArray(const uint8_t *original, size_t length)
Function to clone a uint8_t array.
Definition
randomKey.c:176
randomKey
randomKey.h
Generated by
1.12.0