Print this page
4185 New hash algorithm support
@@ -20,10 +20,13 @@
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2013 Saso Kiselkov. All rights reserved.
+ */
#ifndef _ZFS_FLETCHER_H
#define _ZFS_FLETCHER_H
#include <sys/types.h>
@@ -35,14 +38,18 @@
/*
* fletcher checksum functions
*/
-void fletcher_2_native(const void *, uint64_t, zio_cksum_t *);
-void fletcher_2_byteswap(const void *, uint64_t, zio_cksum_t *);
-void fletcher_4_native(const void *, uint64_t, zio_cksum_t *);
-void fletcher_4_byteswap(const void *, uint64_t, zio_cksum_t *);
+void fletcher_2_native(const void *, uint64_t, const zio_cksum_salt_t *,
+ const void *, zio_cksum_t *);
+void fletcher_2_byteswap(const void *, uint64_t, const zio_cksum_salt_t *,
+ const void *, zio_cksum_t *);
+void fletcher_4_native(const void *, uint64_t, const zio_cksum_salt_t *,
+ const void *, zio_cksum_t *);
+void fletcher_4_byteswap(const void *, uint64_t, const zio_cksum_salt_t *,
+ const void *, zio_cksum_t *);
void fletcher_4_incremental_native(const void *, uint64_t,
zio_cksum_t *);
void fletcher_4_incremental_byteswap(const void *, uint64_t,
zio_cksum_t *);