mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Mbed-TLS is a tiny TLS implementation designed for embedded environment which can greatly reduce the disk space requirement compared to OpenSSL. While we already have crypto_kernel for this purpose and Mbed-TLS lacking hash/cipher support can cause reduced functionality, there're situations where AF_ALG is not available but we're fine with limited scenarios like LUKS2 only.
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
noinst_LTLIBRARIES += libcrypto_backend.la
|
|
|
|
libcrypto_backend_la_CFLAGS = $(AM_CFLAGS) @CRYPTO_CFLAGS@
|
|
|
|
libcrypto_backend_la_SOURCES = \
|
|
lib/crypto_backend/crypto_backend.h \
|
|
lib/crypto_backend/crypto_backend_internal.h \
|
|
lib/crypto_backend/crypto_cipher_kernel.c \
|
|
lib/crypto_backend/crypto_storage.c \
|
|
lib/crypto_backend/pbkdf_check.c \
|
|
lib/crypto_backend/crc32.c \
|
|
lib/crypto_backend/base64.c \
|
|
lib/crypto_backend/utf8.c \
|
|
lib/crypto_backend/argon2_generic.c \
|
|
lib/crypto_backend/cipher_generic.c \
|
|
lib/crypto_backend/cipher_check.c \
|
|
lib/crypto_backend/memutils.c
|
|
|
|
if CRYPTO_BACKEND_GCRYPT
|
|
libcrypto_backend_la_SOURCES += lib/crypto_backend/crypto_gcrypt.c
|
|
endif
|
|
if CRYPTO_BACKEND_OPENSSL
|
|
libcrypto_backend_la_SOURCES += lib/crypto_backend/crypto_openssl.c
|
|
endif
|
|
if CRYPTO_BACKEND_NSS
|
|
libcrypto_backend_la_SOURCES += lib/crypto_backend/crypto_nss.c
|
|
endif
|
|
if CRYPTO_BACKEND_KERNEL
|
|
libcrypto_backend_la_SOURCES += lib/crypto_backend/crypto_kernel.c
|
|
endif
|
|
if CRYPTO_BACKEND_NETTLE
|
|
libcrypto_backend_la_SOURCES += lib/crypto_backend/crypto_nettle.c
|
|
endif
|
|
if CRYPTO_BACKEND_MBEDTLS
|
|
libcrypto_backend_la_SOURCES += lib/crypto_backend/crypto_mbedtls.c
|
|
endif
|
|
|
|
if CRYPTO_INTERNAL_PBKDF2
|
|
libcrypto_backend_la_SOURCES += lib/crypto_backend/pbkdf2_generic.c
|
|
endif
|
|
|
|
if CRYPTO_INTERNAL_ARGON2
|
|
libcrypto_backend_la_DEPENDENCIES = libargon2.la
|
|
libcrypto_backend_la_LIBADD = libargon2.la
|
|
endif
|