From 9247ce1bb90c44d19a0069fadb12c0c480ac9b4f Mon Sep 17 00:00:00 2001 From: lealem47 <60322859+lealem47@users.noreply.github.com> Date: Sun, 12 Nov 2023 16:51:31 -0700 Subject: wolfCrypt as crypto backend for VeraCrypt (#1227) * wolfCrypt as crypto backend for VeraCrypt * Refactor to use EncryptionModeWolfCryptXTS class --- src/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 4bea83b4..e8fb1e19 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,6 +24,7 @@ # SSE41: Enable SSE4.1 support in compiler # NOSSE2: Disable SEE2 support in compiler # WITHGTK3: Build wxWidgets against GTK3 +# WOLFCRYPT: Build with wolfCrypt as crypto provider (see Crypto/wolfCrypt.md) #------ Targets ------ # all @@ -145,6 +146,7 @@ export PLATFORM_UNSUPPORTED := 0 export CPU_ARCH ?= unknown export SIMD_SUPPORTED := 0 export DISABLE_AESNI ?= 0 +export ENABLE_WOLFCRYPT ?= 0 export GCC_GTEQ_440 := 0 export GCC_GTEQ_430 := 0 @@ -185,6 +187,13 @@ ifeq "$(origin NOAESNI)" "command line" DISABLE_AESNI := 1 endif +ifeq "$(origin WOLFCRYPT)" "command line" + ENABLE_WOLFCRYPT := 1 + C_CXX_FLAGS += -DWOLFCRYPT_BACKEND + export LIBS += -lwolfssl + export LD_LIBRARY_PATH=/usr/local/lib +endif + #------ Linux configuration ------ ifeq "$(shell uname -s)" "Linux" -- cgit v1.2.3