SHA-256 is used on AArch64, even if NO_ASM.

Change-Id: I6cc25dd27e8a6a82821aa370a34fb115c5987f1a
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/48246
Reviewed-by: David Benjamin <davidben@google.com>
grpc-202302
Adam Langley 4 years ago committed by Adam Langley
parent b90cdddcdc
commit 25d501c775
  1. 5
      crypto/fipsmodule/CMakeLists.txt

@ -199,7 +199,10 @@ if(FIPS_DELOCATE)
set_target_properties(bcm_hashunset PROPERTIES LINKER_LANGUAGE C)
set(MAYBE_INJECT_HASH_SHA256_FLAG "")
if (ARCH STREQUAL "aarch64")
# If building with OPENSSL_NO_ASM then ARCH will be "generic", but we still
# need to use SHA-256. Since this only matters for FIPS, we only need to
# worry about the Linux spelling of AArch64.
if (ARCH STREQUAL "aarch64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
set(MAYBE_INJECT_HASH_SHA256_FLAG "-sha256")
endif()

Loading…
Cancel
Save