1
2
3
4
5
6
7
8
9
10
11#ifndef _SYS_ZIO_CHECKSUM_H
12#define _SYS_ZIO_CHECKSUM_H
13
14
15
16
17typedef void zio_checksum_t(const void *data, uint64_t size,
18 zfs_endian_t endian, zio_cksum_t *zcp);
19
20
21
22
23typedef struct zio_checksum_info {
24 zio_checksum_t *ci_func;
25 int ci_correctable;
26 int ci_eck;
27 char *ci_name;
28} zio_checksum_info_t;
29
30extern void zio_checksum_SHA256(const void *, uint64_t,
31 zfs_endian_t endian, zio_cksum_t *);
32extern void fletcher_2_endian(const void *, uint64_t, zfs_endian_t endian,
33 zio_cksum_t *);
34extern void fletcher_4_endian(const void *, uint64_t, zfs_endian_t endian,
35 zio_cksum_t *);
36
37#endif
38