cksum.h 381 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <inttypes.h>

void
memcrc_r(uint32_t *state, const unsigned char *block, size_t block_len);

10
11
12
13
void
memcrc_r_eswap(uint32_t *state, const unsigned char *elems, size_t num_elems,
               size_t elem_size);

14
uint32_t
15
16
17
18
19
memcrc_finish(uint32_t *state, off_t total_size);

uint32_t
memcrc(const unsigned char *b, size_t n);