diff options
author | Allan Jude <allanjude@FreeBSD.org> | 2015-12-27 17:33:59 +0000 |
---|---|---|
committer | Allan Jude <allanjude@FreeBSD.org> | 2015-12-27 17:33:59 +0000 |
commit | 7a3f5d11fb3873674a1f7e27bcc9a5f7ce279390 (patch) | |
tree | 8a9bc5399c16c0f637716b176f3f95c32c001a0f /sys/geom/eli | |
parent | 1747e1d875f0d7228940ece2eb8ad3b248832432 (diff) | |
download | src-7a3f5d11fb3873674a1f7e27bcc9a5f7ce279390.tar.gz src-7a3f5d11fb3873674a1f7e27bcc9a5f7ce279390.zip |
Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c
cperciva's libmd implementation is 5-30% faster
The same was done for SHA256 previously in r263218
cperciva's implementation was lacking SHA-384 which I implemented, validated against OpenSSL and the NIST documentation
Extend sbin/md5 to create sha384(1)
Chase dependancies on sys/crypto/sha2/sha2.{c,h} and replace them with sha512{c.c,.h}
Reviewed by: cperciva, des, delphij
Approved by: secteam, bapt (mentor)
MFC after: 2 weeks
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3929
Notes
Notes:
svn path=/head/; revision=292782
Diffstat (limited to 'sys/geom/eli')
-rw-r--r-- | sys/geom/eli/g_eli.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli.h b/sys/geom/eli/g_eli.h index 36ef5551a191..e4dbee6819ab 100644 --- a/sys/geom/eli/g_eli.h +++ b/sys/geom/eli/g_eli.h @@ -32,7 +32,8 @@ #include <sys/endian.h> #include <sys/errno.h> #include <sys/malloc.h> -#include <crypto/sha2/sha2.h> +#include <crypto/sha2/sha256.h> +#include <crypto/sha2/sha512.h> #include <opencrypto/cryptodev.h> #ifdef _KERNEL #include <sys/bio.h> |