2016-03-16 23:12:19 +00:00
|
|
|
# $FreeBSD$
|
2018-06-18 16:24:42 +00:00
|
|
|
# Extra stuff for GELI
|
2016-03-16 23:12:19 +00:00
|
|
|
|
2018-06-18 16:24:42 +00:00
|
|
|
.PATH: ${SASRC}/geli
|
2016-03-16 23:12:19 +00:00
|
|
|
|
2018-06-18 16:24:42 +00:00
|
|
|
CFLAGS+= -I${LDRSRC}
|
2016-03-16 23:12:19 +00:00
|
|
|
|
|
|
|
# Our password input method
|
|
|
|
SRCS+= pwgets.c
|
|
|
|
|
|
|
|
# sha256 and sha512 from sys/crypto
|
2017-10-22 22:50:28 +00:00
|
|
|
.PATH: ${SYSDIR}/crypto/sha2
|
2016-03-16 23:12:19 +00:00
|
|
|
CFLAGS+= -DWEAK_REFS
|
|
|
|
SRCS+= sha256c.c sha512c.c
|
|
|
|
|
|
|
|
# md5 from libmd
|
2017-08-01 05:39:40 +00:00
|
|
|
.PATH: ${SRCTOP}/lib/libmd
|
2016-03-16 23:12:19 +00:00
|
|
|
SRCS+= md5c.c
|
|
|
|
|
|
|
|
# AES implementation from sys/crypto
|
2017-10-22 22:50:28 +00:00
|
|
|
.PATH: ${SYSDIR}/crypto/rijndael
|
2018-06-18 16:24:42 +00:00
|
|
|
.for i in rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c
|
|
|
|
# Remove asserts XXX BAD
|
|
|
|
CFLAGS.${i}+= -DNDEBUG
|
|
|
|
SRCS+= ${i}
|
|
|
|
.endfor
|
2016-03-16 23:12:19 +00:00
|
|
|
|
|
|
|
# local GELI Implementation
|
2017-10-22 22:50:28 +00:00
|
|
|
.PATH: ${SYSDIR}/geom/eli
|
2018-07-13 17:50:25 +00:00
|
|
|
SRCS+= \
|
|
|
|
geliboot.c \
|
|
|
|
geliboot_crypto.c \
|
|
|
|
gelidev.c \
|
|
|
|
geli_metadata.c \
|
|
|
|
g_eli_hmac.c \
|
|
|
|
g_eli_key.c \
|
|
|
|
g_eli_key_cache.c \
|
|
|
|
pkcs5v2.c \
|
2016-03-16 23:12:19 +00:00
|
|
|
|
2017-11-10 23:54:48 +00:00
|
|
|
# aes
|
|
|
|
.PATH: ${SYSDIR}/opencrypto
|
|
|
|
SRCS+= xform_aes_xts.c
|