2016-03-16 23:12:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
# libgeliboot
|
|
|
|
|
2017-12-02 00:07:14 +00:00
|
|
|
DO32=1
|
2016-03-16 23:12:19 +00:00
|
|
|
|
2017-10-22 22:50:28 +00:00
|
|
|
.include <bsd.init.mk>
|
2016-03-16 23:12:19 +00:00
|
|
|
|
|
|
|
LIB= geliboot
|
|
|
|
|
|
|
|
# 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
|
2017-10-29 05:27:22 +00:00
|
|
|
CFLAGS+= -I${LDRSRC}
|
2016-03-16 23:12:19 +00:00
|
|
|
# Remove asserts
|
|
|
|
CFLAGS+= -DNDEBUG
|
|
|
|
SRCS+= rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c
|
|
|
|
|
|
|
|
# local GELI Implementation
|
2017-10-22 22:50:28 +00:00
|
|
|
.PATH: ${SYSDIR}/geom/eli
|
2016-03-16 23:12:19 +00:00
|
|
|
SRCS+= geliboot_crypto.c g_eli_hmac.c g_eli_key.c g_eli_key_cache.c pkcs5v2.c
|
|
|
|
|
2017-11-10 23:54:48 +00:00
|
|
|
# aes
|
|
|
|
.PATH: ${SYSDIR}/opencrypto
|
|
|
|
SRCS+= xform_aes_xts.c
|
|
|
|
|
2016-03-16 23:12:19 +00:00
|
|
|
.include <bsd.lib.mk>
|