diff options
| author | Theo Buehler <tb@openbsd.org> | 2026-08-10 09:14:54 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2026-08-10 09:14:54 +0200 |
| commit | 084dc32b373574ce9e83eeb0182060d84eb2e4c1 (patch) | |
| tree | 50f166045a94bb2adebf125e68f1d1c22bdf83f3 | |
| parent | e06b2b8ac823bd827cacc91cd36f42ea435c7ff6 (diff) | |
| parent | 27882f103d16faed6bf4a3b424711da4efafff9e (diff) | |
| download | portable-084dc32b373574ce9e83eeb0182060d84eb2e4c1.tar.gz portable-084dc32b373574ce9e83eeb0182060d84eb2e4c1.tar.bz2 portable-084dc32b373574ce9e83eeb0182060d84eb2e4c1.zip | |
Land #1354 - enable SHA assembly on ELF Aarch64
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | crypto/CMakeLists.txt | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ac0ca31..4b15da9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -524,7 +524,9 @@ endif() | |||
| 524 | 524 | ||
| 525 | if(ENABLE_ASM) | 525 | if(ENABLE_ASM) |
| 526 | if(CMAKE_C_COMPILER_ABI STREQUAL "ELF") | 526 | if(CMAKE_C_COMPILER_ABI STREQUAL "ELF") |
| 527 | if(HOST_X86_64) | 527 | if(HOST_AARCH64) |
| 528 | set(HOST_ASM_ELF_AARCH64 true) | ||
| 529 | elseif(HOST_X86_64) | ||
| 528 | set(HOST_ASM_ELF_X86_64 true) | 530 | set(HOST_ASM_ELF_X86_64 true) |
| 529 | elseif(SOLARIS AND HOST_I386) | 531 | elseif(SOLARIS AND HOST_I386) |
| 530 | set(HOST_ASM_ELF_X86_64 true) | 532 | set(HOST_ASM_ELF_X86_64 true) |
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index d566182..491b9b4 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
| @@ -22,8 +22,9 @@ if(HOST_ASM_ELF_AARCH64) | |||
| 22 | ASM_AARCH64_ELF_SRC | 22 | ASM_AARCH64_ELF_SRC |
| 23 | sha/sha1_aarch64_ce.S | 23 | sha/sha1_aarch64_ce.S |
| 24 | sha/sha256_aarch64_ce.S | 24 | sha/sha256_aarch64_ce.S |
| 25 | sha/sha256_aarch64_ce.S | 25 | sha/sha512_aarch64_ce.S |
| 26 | ) | 26 | ) |
| 27 | add_definitions(-DLIBRESSL_USE_SHA_ASSEMBLY) | ||
| 27 | set(CRYPTO_SRC ${CRYPTO_SRC} ${ASM_AARCH64_ELF_SRC}) | 28 | set(CRYPTO_SRC ${CRYPTO_SRC} ${ASM_AARCH64_ELF_SRC}) |
| 28 | endif() | 29 | endif() |
| 29 | 30 | ||
