mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 18:20:20 +00:00
add sha256sum support code
This commit is contained in:
6
src/common/checksum.h
Normal file
6
src/common/checksum.h
Normal 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]);
|
||||
Reference in New Issue
Block a user