diff options
Diffstat (limited to 'src/cksum.h')
-rw-r--r-- | src/cksum.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cksum.h b/src/cksum.h new file mode 100644 index 0000000..58e9310 --- /dev/null +++ b/src/cksum.h @@ -0,0 +1,19 @@ +#ifndef __CKSUM_H__ +# define __CKSUM_H__ + +extern bool cksum_debug; + +extern int +crc_sum_stream (FILE *stream, void *resstream, uintmax_t *length); + +extern void +output_crc (char const *file, int binary_file, void const *digest, bool raw, + bool tagged, unsigned char delim, bool args, uintmax_t length) + _GL_ATTRIBUTE_NONNULL ((3)); + +extern bool +cksum_pclmul (FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out); + +extern uint_fast32_t const crctab[8][256]; + +#endif |