mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
7a3f5d11fb
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
33 lines
709 B
Makefile
33 lines
709 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= gbde
|
|
SRCS= gbde.c template.c
|
|
SRCS+= rijndael-alg-fst.c
|
|
SRCS+= rijndael-api-fst.c
|
|
SRCS+= sha512c.c
|
|
SRCS+= g_bde_lock.c
|
|
|
|
# rijndael-fst.c does evil casting things which can results in warnings,
|
|
# the test-vectors check out however, so it works right.
|
|
NO_WCAST_ALIGN=
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys
|
|
.PATH: ${.CURDIR}/../../sys/geom/bde \
|
|
${.CURDIR}/../../sys/crypto/rijndael \
|
|
${.CURDIR}/../../sys/crypto/sha2
|
|
|
|
CLEANFILES+= template.c
|
|
|
|
MAN= gbde.8
|
|
LIBADD= md util geom
|
|
|
|
template.c: template.txt
|
|
file2c 'const char template[] = {' ',0};' \
|
|
< ${.CURDIR}/template.txt > template.c
|
|
|
|
test: ${PROG}
|
|
sh ${.CURDIR}/test.sh ${.CURDIR}
|
|
|
|
.include <bsd.prog.mk>
|