blob: a45df87817e181fee4ed7bec4a09902d5ef5b0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* -------------------------------------------------------------------------- */
/* --- DEPENDANCIES --------------------------------------------------------- */
#include <openssl/sha.h> /* generate hash */
#include <stdint.h> /* C99 types */
/* -------------------------------------------------------------------------- */
/* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */
static void sha256_hash_string(char hash[SHA256_DIGEST_LENGTH], char outputBuffer[65]);
static void sha256(char *string, char outputBuffer[65]);
int sha256_file(char* hw, char *path);
/* --- EOF ------------------------------------------------------------------ */
|