1# Extra stuff for GELI 2 3.PATH: ${SASRC}/geli 4 5# Our password input method 6SRCS+= pwgets.c 7 8# sha256 and sha512 from sys/crypto 9.PATH: ${SYSDIR}/crypto/sha2 10CFLAGS.sha256.c+= -DWEAK_REFS 11CFLAGS.sha512.c+= -DWEAK_REFS 12SRCS+= sha256c.c sha512c.c 13 14# md5 from libmd 15.PATH: ${SRCTOP}/lib/libmd 16SRCS+= md5c.c 17 18# AES implementation from sys/crypto 19.PATH: ${SYSDIR}/crypto/rijndael 20.for i in rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c 21# Remove asserts XXX BAD 22CFLAGS.${i}+= -DNDEBUG 23SRCS+= ${i} 24.endfor 25 26 27# local GELI Implementation 28.PATH: ${SYSDIR}/geom/eli 29.for i in gelidev.c geli_metadata.c 30CFLAGS.${i}+= -I${LDRSRC} 31SRCS+= ${i} 32.endfor 33SRCS+= geliboot.c \ 34 geliboot_crypto.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