summaryrefslogtreecommitdiffstats
path: root/lib/libmd
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2014-03-16 01:43:23 +0000
committerjmg <jmg@FreeBSD.org>2014-03-16 01:43:23 +0000
commiteab153cc9df7a4184bb4aed26cf6f4082646ee3e (patch)
tree56bc384af92f8f4eeb6c01c3445b5b7a33bbe50e /lib/libmd
parentd1bbd4d9f94fc615195e788df25978dea6a16cb6 (diff)
downloadFreeBSD-src-eab153cc9df7a4184bb4aed26cf6f4082646ee3e.zip
FreeBSD-src-eab153cc9df7a4184bb4aed26cf6f4082646ee3e.tar.gz
replace the kernel's version w/ cperciva's implementation... In all
my tests, it is faster ~20%, even on an old IXP425 533MHz it is ~45% faster... This is partly due to loop unrolling, so the code size does significantly increase... I do plan on committing a version that rolls up the loops again for smaller code size for embedded systems where size is more important than absolute performance (it'll save ~6k code)... The kernel implementation is now shared w/ userland's libcrypt and libmd... We drop support for sha256 from sha2.c, so now sha2.c only contains sha384 and sha512... Reviewed by: secteam@
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index d0fe705..727fd86 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -43,7 +43,7 @@ CLEANFILES+= md[245]hl.c md[245].ref md[245].3 mddriver \
sha256.ref sha256hl.c sha512.ref sha512hl.c
CFLAGS+= -I${.CURDIR}
-.PATH: ${.CURDIR}/${MACHINE_ARCH}
+.PATH: ${.CURDIR}/${MACHINE_ARCH} ${.CURDIR}/../../sys/crypto/sha2
.if exists(${MACHINE_ARCH}/sha.S)
SRCS+= sha.S
OpenPOWER on IntegriCloud