summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/other_algorithm.c
diff options
context:
space:
mode:
authorallanjude <allanjude@FreeBSD.org>2015-12-27 17:33:59 +0000
committerallanjude <allanjude@FreeBSD.org>2015-12-27 17:33:59 +0000
commitc7c2f2dfabee24fac29d13375d8c29a7f766746c (patch)
tree8a9bc5399c16c0f637716b176f3f95c32c001a0f /sys/dev/random/other_algorithm.c
parente7bdbef72941799b684fb8a542f52b0fbafd254d (diff)
downloadFreeBSD-src-c7c2f2dfabee24fac29d13375d8c29a7f766746c.zip
FreeBSD-src-c7c2f2dfabee24fac29d13375d8c29a7f766746c.tar.gz
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
Diffstat (limited to 'sys/dev/random/other_algorithm.c')
-rw-r--r--sys/dev/random/other_algorithm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/other_algorithm.c b/sys/dev/random/other_algorithm.c
index 740e879..0c73ef5 100644
--- a/sys/dev/random/other_algorithm.c
+++ b/sys/dev/random/other_algorithm.c
@@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$");
#include <machine/cpu.h>
#include <crypto/rijndael/rijndael-api-fst.h>
-#include <crypto/sha2/sha2.h>
+#include <crypto/sha2/sha256.h>
#include <dev/random/hash.h>
#include <dev/random/randomdev.h>
OpenPOWER on IntegriCloud