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