summary refs log tree commit diff stats
path: root/src/common/checksum.h
blob: 1d5d62e39b98b5f2025662aed5f6a8d4780241ea (plain) (blame)
1
2
3
4
5
6
#include <openssl/sha.h>
#define BUFSIZE 32768

void sha256_hash_string (unsigned char hash[SHA256_DIGEST_LENGTH], char outputBuffer[65]);
void sha256 (char *string, char outputBuffer[65]);
int sha256_file (char *path, char outputBuffer[65]);