mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
![Warner Losh](/assets/img/avatar_default.png)
This should have no functional change. Move compiling the sha256, sha512 and md5 hash functions up into libsa to allow them to be used elsewhere in the boot loader when geli isn't configured. Since libsa is a .a, these won't wind up in any boot loader that doesn't reference them, so should be a nop. Sponsored by: Netflix
32 lines
604 B
Makefile
32 lines
604 B
Makefile
# Extra stuff for GELI
|
|
|
|
.PATH: ${SASRC}/geli
|
|
|
|
# Our password input method
|
|
SRCS+= pwgets.c
|
|
|
|
# AES implementation from sys/crypto
|
|
.PATH: ${SYSDIR}/crypto/rijndael
|
|
.for i in rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c
|
|
# Remove asserts XXX BAD
|
|
CFLAGS.${i}+= -DNDEBUG
|
|
SRCS+= ${i}
|
|
.endfor
|
|
|
|
# local GELI Implementation
|
|
.PATH: ${SYSDIR}/geom/eli
|
|
.for i in gelidev.c geli_metadata.c
|
|
CFLAGS.${i}+= -I${LDRSRC}
|
|
SRCS+= ${i}
|
|
.endfor
|
|
SRCS+= geliboot.c \
|
|
geliboot_crypto.c \
|
|
g_eli_hmac.c \
|
|
g_eli_key.c \
|
|
g_eli_key_cache.c \
|
|
pkcs5v2.c \
|
|
|
|
# aes
|
|
.PATH: ${SYSDIR}/opencrypto
|
|
SRCS+= xform_aes_xts.c
|