diff options
author | allanjude <allanjude@FreeBSD.org> | 2016-05-28 16:06:07 +0000 |
---|---|---|
committer | allanjude <allanjude@FreeBSD.org> | 2016-05-28 16:06:07 +0000 |
commit | 4581e38971cdd62b178bbed2066ac8c3b0ec5499 (patch) | |
tree | fb7b8495c2429cb7c5e5287882efd1fd12bb6120 /sbin/md5/Makefile | |
parent | 15f895037c82da771c558cbbda75c3ae7f309e15 (diff) | |
download | FreeBSD-src-4581e38971cdd62b178bbed2066ac8c3b0ec5499.zip FreeBSD-src-4581e38971cdd62b178bbed2066ac8c3b0ec5499.tar.gz |
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
Diffstat (limited to 'sbin/md5/Makefile')
-rw-r--r-- | sbin/md5/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/md5/Makefile b/sbin/md5/Makefile index 6b65172..9940215 100644 --- a/sbin/md5/Makefile +++ b/sbin/md5/Makefile @@ -8,13 +8,15 @@ LINKS= ${BINDIR}/md5 ${BINDIR}/rmd160 \ ${BINDIR}/md5 ${BINDIR}/sha1 \ ${BINDIR}/md5 ${BINDIR}/sha256 \ ${BINDIR}/md5 ${BINDIR}/sha384 \ - ${BINDIR}/md5 ${BINDIR}/sha512 + ${BINDIR}/md5 ${BINDIR}/sha512 \ + ${BINDIR}/md5 ${BINDIR}/sha512t256 MLINKS= md5.1 rmd160.1 \ md5.1 sha1.1 \ md5.1 sha256.1 \ md5.1 sha384.1 \ - md5.1 sha512.1 + md5.1 sha512.1 \ + md5.1 sha512t256.1 LIBADD= md |