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# local GELI Implementation 28.PATH: ${SYSDIR}/geom/eli 29.for i in geliboot.c geliboot_crypto.c gelidev.c geli_metadata.c 30CFLAGS.${i}+= -I${LDRSRC} 31SRCS+= ${i} 32.endfor 33SRCS+= \ 34 g_eli_hmac.c \ 35 g_eli_key.c \ 36 g_eli_key_cache.c \ 37 pkcs5v2.c \ 38 39# aes 40.PATH: ${SYSDIR}/opencrypto 41SRCS+= xform_aes_xts.c 42