Solution to delegate TLS1.3 private key operation to TEE
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 line
894 B

  1. # Constants and makefile shit used in build
  2. MK_FILE_PATH = $(lastword $(MAKEFILE_LIST))
  3. PRJ_DIR = $(abspath $(dir $(MK_FILE_PATH))/../..)
  4. TA_KEYLESS_TZ := $(PRJ_DIR)/projects/keyless_tz
  5. # Configurables end
  6. NAME := keyless
  7. CC := $(PRJ_DIR)/toolchains/aarch64/bin/aarch64-linux-gnu-gcc
  8. CXX := $(PRJ_DIR)/toolchains/aarch64/bin/aarch64-linux-gnu-c++
  9. BUILD_DIR = src/build
  10. MAKE = cmake --build .
  11. all: prepare build build-native
  12. clean:
  13. rm -rf $(BUILD_DIR)
  14. build:
  15. #patch -d src/ -p1 < boringssl_arm64.patch
  16. make -C $(BUILD_DIR)
  17. build-native:
  18. rm -rf src/build.native
  19. mkdir -p src/build.native
  20. cd src/build.native; cmake ..
  21. cd src/build.native; make
  22. prepare: clean
  23. rm -rf $(BUILD_DIR)
  24. mkdir -p $(BUILD_DIR)
  25. cd $(BUILD_DIR); \
  26. CC=$(CC) CXX=$(CXX) cmake \
  27. -DCMAKE_BUILD_TYPE=Debug \
  28. -DOPENSSL_SMALL=1 \
  29. -DCMAKE_TOOLCHAIN_FILE=$(PRJ_DIR)/projects/bssl/aarch64.cmake \
  30. ..