aboutsummaryrefslogtreecommitdiff
path: root/sbin/gbde
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2015-12-27 17:33:59 +0000
committerAllan Jude <allanjude@FreeBSD.org>2015-12-27 17:33:59 +0000
commit7a3f5d11fb3873674a1f7e27bcc9a5f7ce279390 (patch)
tree8a9bc5399c16c0f637716b176f3f95c32c001a0f /sbin/gbde
parent1747e1d875f0d7228940ece2eb8ad3b248832432 (diff)
downloadsrc-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 'sbin/gbde')
-rw-r--r--sbin/gbde/Makefile2
-rw-r--r--sbin/gbde/gbde.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/gbde/Makefile b/sbin/gbde/Makefile
index c33136b05e14..f80f8cd8f70e 100644
--- a/sbin/gbde/Makefile
+++ b/sbin/gbde/Makefile
@@ -4,7 +4,7 @@ PROG= gbde
SRCS= gbde.c template.c
SRCS+= rijndael-alg-fst.c
SRCS+= rijndael-api-fst.c
-SRCS+= sha2.c
+SRCS+= sha512c.c
SRCS+= g_bde_lock.c
# rijndael-fst.c does evil casting things which can results in warnings,
diff --git a/sbin/gbde/gbde.c b/sbin/gbde/gbde.c
index 3dca2126a7ab..710ae2c7b477 100644
--- a/sbin/gbde/gbde.c
+++ b/sbin/gbde/gbde.c
@@ -84,7 +84,7 @@
#include <sys/disk.h>
#include <sys/stat.h>
#include <crypto/rijndael/rijndael-api-fst.h>
-#include <crypto/sha2/sha2.h>
+#include <crypto/sha2/sha512.h>
#include <sys/param.h>
#include <sys/linker.h>