freebsd-skq/lib/libmd
Allan Jude 1780e40715 Implement SHA-512 truncated (224 and 256 bits)
This implements SHA-512/256, which generates a 256 bit hash by
calculating the SHA-512 then truncating the result. A different initial
value is used, making the result different from the first 256 bits of
the SHA-512 of the same input. SHA-512 is ~50% faster than SHA-256 on
64bit platforms, so the result is a faster 256 bit hash.

The main goal of this implementation is to enable support for this
faster hashing algorithm in ZFS. The feature was introduced into ZFS
in r289422, but is disconnected because SHA-512/256 support was missing.
A further commit will enable it in ZFS.

This is the follow on to r292782

Reviewed by:	cem
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D6061
2016-05-28 16:06:07 +00:00
..
i386
Makefile Implement SHA-512 truncated (224 and 256 bits) 2016-05-28 16:06:07 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
md4.copyright
md4.h Unbreak build following rev. 282726 2015-05-10 21:21:52 +00:00
md4c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
md5.copyright
md5.h libmd: Work around C++'s inability to understand C 2016-05-27 05:31:14 +00:00
md5c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
mddriver.c
mdX.3
mdXhl.c Improvements to the MDXFileChunk() template function: 2016-01-14 21:08:23 +00:00
ripemd.3
ripemd.h Unbreak build following rev. 282726 2015-05-10 21:21:52 +00:00
rmd160c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
rmd_locl.h
rmdconst.h
rmddriver.c
sha0c.c
sha1c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
sha256.3
sha512.3 Implement SHA-512 truncated (224 and 256 bits) 2016-05-28 16:06:07 +00:00
sha_locl.h
sha.3
sha.h Unbreak build following rev. 282726 2015-05-10 21:21:52 +00:00
shadriver.c Implement SHA-512 truncated (224 and 256 bits) 2016-05-28 16:06:07 +00:00