xref: /freebsd/stand/libsa/geli/Makefile.inc (revision 925f15731e3480fe80f580a2f7463cb5210a95c8)
162bd02ceSWarner Losh# Extra stuff for GELI
262bd02ceSWarner Losh
362bd02ceSWarner Losh.PATH: ${SASRC}/geli
462bd02ceSWarner Losh
562bd02ceSWarner Losh# Our password input method
662bd02ceSWarner LoshSRCS+=		pwgets.c
762bd02ceSWarner Losh
862bd02ceSWarner Losh# AES implementation from sys/crypto
962bd02ceSWarner Losh.PATH: ${SYSDIR}/crypto/rijndael
1062bd02ceSWarner Losh.for i in rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c
1162bd02ceSWarner Losh# Remove asserts XXX BAD
1262bd02ceSWarner LoshCFLAGS.${i}+=	-DNDEBUG
1362bd02ceSWarner LoshSRCS+=		${i}
1462bd02ceSWarner Losh.endfor
1562bd02ceSWarner Losh
1662bd02ceSWarner Losh# local GELI Implementation
1762bd02ceSWarner Losh.PATH: ${SYSDIR}/geom/eli
18*f863970aSWarner Losh.for i in gelidev.c geli_metadata.c
19bb7ddd07SJohn BaldwinCFLAGS.${i}+= -I${LDRSRC}
20bb7ddd07SJohn BaldwinSRCS+=		${i}
21bb7ddd07SJohn Baldwin.endfor
22*f863970aSWarner LoshSRCS+=		geliboot.c \
23*f863970aSWarner Losh		geliboot_crypto.c \
24c1418270SIan Lepore		g_eli_key.c \
25c1418270SIan Lepore		g_eli_key_cache.c \
2662bd02ceSWarner Losh
2762bd02ceSWarner Losh# aes
2862bd02ceSWarner Losh.PATH:		${SYSDIR}/opencrypto
2962bd02ceSWarner LoshSRCS+=		xform_aes_xts.c
30