diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-09-15 13:30:36 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-10-20 11:51:01 -0500 |
commit | 18f64d240c9088a10a150e07319b90c10d5f4937 (patch) | |
tree | 63c72f4b5b1cd3dc2f625445698c529beea7c342 /lib/libmd | |
parent | 50b975653ca39fc8c7f585ad098d8c83f1eefc1b (diff) | |
download | FreeBSD-src-18f64d240c9088a10a150e07319b90c10d5f4937.zip FreeBSD-src-18f64d240c9088a10a150e07319b90c10d5f4937.tar.gz |
MFC r263218:
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@
TAG: IPSEC-HEAD
Issue: #4841
Diffstat (limited to 'lib/libmd')
-rw-r--r-- | lib/libmd/Makefile | 2 |
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 |