From 8cebbf47bee9b1cc2332b4b67d327c92ad7bba14 Mon Sep 17 00:00:00 2001 From: allanjude Date: Tue, 31 May 2016 04:12:14 +0000 Subject: Connect the SHA-512t256 and Skein hashing algorithms to ZFS Support for the new hashing algorithms in ZFS was introduced in r289422 However it was disconnected because FreeBSD lacked implementations of SHA-512 (truncated to 256 bits), and Skein. These implementations were introduced in r300921 and r300966 respectively This commit connects them to ZFS and enabled these new checksum algorithms This new algorithms are not supported by the boot blocks, so do not use them on your root dataset if you boot from ZFS. Relnotes: yes Sponsored by: ScaleEngine Inc. --- sys/crypto/skein/skein_port.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/crypto') diff --git a/sys/crypto/skein/skein_port.h b/sys/crypto/skein/skein_port.h index 65f3405..7025a51 100644 --- a/sys/crypto/skein/skein_port.h +++ b/sys/crypto/skein/skein_port.h @@ -19,7 +19,9 @@ #include #include +#ifndef _OPENSOLARIS_SYS_TYPES_H_ /* Avoid redefining this typedef */ typedef unsigned int uint_t; /* native unsigned integer */ +#endif typedef u_int8_t u08b_t; /* 8-bit unsigned integer */ typedef u_int32_t uint_32t; /* 32-bit unsigned integer */ typedef u_int64_t u64b_t; /* 64-bit unsigned integer */ -- cgit v1.1