ldaphotos/sources/include/hasher.h
Sandy Mossgrave da6f0568b6 Initial commit. Works.
Takes a line of input from stdin, then outputs its SHA256 hash.
Verbosity cannot be changed.
2023-05-21 21:02:25 +00:00

8 lines
181 B
C

#include <openssl/evp.h>
extern EVP_MD * md;
int init_hasher(void);
int deinit_hasher(void);
unsigned char * digest(const unsigned char *in, size_t inlen, unsigned int * outlen);