xref: /freebsd/stand/libsa/geli/Makefile.inc (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1# $FreeBSD$
2# Extra stuff for GELI
3
4.PATH: ${SASRC}/geli
5
6# Our password input method
7SRCS+=		pwgets.c
8
9# sha256 and sha512 from sys/crypto
10.PATH: ${SYSDIR}/crypto/sha2
11CFLAGS.sha256.c+=	-DWEAK_REFS
12CFLAGS.sha512.c+=	-DWEAK_REFS
13SRCS+=		sha256c.c sha512c.c
14
15# md5 from libmd
16.PATH: ${SRCTOP}/lib/libmd
17SRCS+=		md5c.c
18
19# AES implementation from sys/crypto
20.PATH: ${SYSDIR}/crypto/rijndael
21.for i in rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c
22# Remove asserts XXX BAD
23CFLAGS.${i}+=	-DNDEBUG
24SRCS+=		${i}
25.endfor
26
27
28# local GELI Implementation
29.PATH: ${SYSDIR}/geom/eli
30.for i in gelidev.c geli_metadata.c
31CFLAGS.${i}+= -I${LDRSRC}
32SRCS+=		${i}
33.endfor
34SRCS+=		geliboot.c \
35		geliboot_crypto.c \
36		g_eli_hmac.c \
37		g_eli_key.c \
38		g_eli_key_cache.c \
39		pkcs5v2.c \
40
41# aes
42.PATH:		${SYSDIR}/opencrypto
43SRCS+=		xform_aes_xts.c
44