mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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
18 lines
316 B
Makefile
18 lines
316 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../misc ${.CURDIR}/../../../../sys/geom/eli ${.CURDIR}/../../../../sys/crypto/sha2
|
|
|
|
GEOM_CLASS= eli
|
|
SRCS= g_eli_crypto.c
|
|
SRCS+= g_eli_key.c
|
|
SRCS+= pkcs5v2.c
|
|
SRCS+= sha256c.c
|
|
SRCS+= sha512c.c
|
|
|
|
LIBADD= md crypto
|
|
|
|
WARNS?= 3
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../../../sys
|
|
|
|
.include <bsd.lib.mk>
|