ldaphotos/sources/include/hasher.h
Sandy Mossgrave 980784ea29 Works.
Now accepts argument '-f', for which the argument is a file path.
Opens file, then reads input from it.
If file is not provided or fopen() fails, ldaphotos defaults to reading message from standard input.
2023-05-21 23:05:39 +00:00

12 lines
309 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);
int begin_digest();
int digest_part(const unsigned char *in, size_t inlen);
unsigned char * get_digest(unsigned int * outlen);