add sha256sum support code

This commit is contained in:
berkeviktor@aol.com
2010-10-20 18:26:14 +02:00
parent 6a58b4a5fc
commit 48045bdf6a
3 changed files with 81 additions and 1 deletions

6
src/common/checksum.h Normal file
View File

@@ -0,0 +1,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]);