mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
wolfCrypt as crypto backend for VeraCrypt (#1227)
* wolfCrypt as crypto backend for VeraCrypt * Refactor to use EncryptionModeWolfCryptXTS class
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user