summaryrefslogtreecommitdiffstats
path: root/sys/modules/crypto
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/modules/crypto
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/modules/crypto')
-rw-r--r--sys/modules/crypto/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/crypto/Makefile b/sys/modules/crypto/Makefile
index 4506cb3..b476571 100644
--- a/sys/modules/crypto/Makefile
+++ b/sys/modules/crypto/Makefile
@@ -16,7 +16,7 @@ SRCS += cast.c cryptodeflate.c rmd160.c rijndael-alg-fst.c rijndael-api.c rijnda
SRCS += skipjack.c bf_enc.c bf_ecb.c bf_skey.c
SRCS += camellia.c camellia-api.c
SRCS += des_ecb.c des_enc.c des_setkey.c
-SRCS += sha1.c sha2.c sha256c.c
+SRCS += sha1.c sha256c.c sha512c.c
SRCS += siphash.c
SRCS += gmac.c gfmult.c
SRCS += opt_param.h cryptodev_if.h bus_if.h device_if.h
OpenPOWER on IntegriCloud