aboutsummaryrefslogtreecommitdiff
path: root/sys/crypto/sha2/sha256c.c
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2016-05-28 16:06:07 +0000
committerAllan Jude <allanjude@FreeBSD.org>2016-05-28 16:06:07 +0000
commit1780e407158ada85e454b24960b83a4f8e35cc25 (patch)
treefb7b8495c2429cb7c5e5287882efd1fd12bb6120 /sys/crypto/sha2/sha256c.c
parent7bc7e3cd65d0b399c04578b46ca7e0536e09b45e (diff)
downloadsrc-1780e407158ada85e454b24960b83a4f8e35cc25.tar.gz
src-1780e407158ada85e454b24960b83a4f8e35cc25.zip
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
Notes
Notes: svn path=/head/; revision=300903
Diffstat (limited to 'sys/crypto/sha2/sha256c.c')
0 files changed, 0 insertions, 0 deletions