8 /* Compute SHA1 message digest for bytes read from STREAM. The
9 resulting message digest number will be written into the 20 bytes
10 beginning at RESBLOCK. */
11 extern int sha1_stream(FILE * stream, void *resblock);
14 #include <openssl/sha.h>
15 static inline void *sha1_buffer(const char *buffer, size_t len, void *resblock)
17 return SHA1(buffer, len, resblock);
20 /* Compute SHA1 message digest for LEN bytes beginning at BUFFER. The
21 result is always in little endian byte order, so that a byte-wise
22 output yields to the wanted ASCII representation of the message
24 extern void *sha1_buffer(const char *buffer, size_t len, void *resblock);
28 #endif /* _WIMLIB_SHA1_H */