From 48045bdf6aa3b2fe9f4da96fafe98b146933d932 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Wed, 20 Oct 2010 18:26:14 +0200 Subject: add sha256sum support code --- src/common/checksum.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/common/checksum.h (limited to 'src/common/checksum.h') diff --git a/src/common/checksum.h b/src/common/checksum.h new file mode 100644 index 00000000..1d5d62e3 --- /dev/null +++ b/src/common/checksum.h @@ -0,0 +1,6 @@ +#include +#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]); -- cgit 1.4.1