mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-12 21:29:55 +00:00
remove further references to MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT and MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY
Signed-off-by: Ben Taylor <[email protected]>
This commit is contained in:
@@ -94,10 +94,8 @@ EXCLUDE_FROM_FULL = frozenset([
|
|||||||
'MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER', # interface and behavior change
|
'MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER', # interface and behavior change
|
||||||
'MBEDTLS_PSA_CRYPTO_SPM', # platform dependency (PSA SPM)
|
'MBEDTLS_PSA_CRYPTO_SPM', # platform dependency (PSA SPM)
|
||||||
'MBEDTLS_RSA_NO_CRT', # influences the use of RSA in X.509 and TLS
|
'MBEDTLS_RSA_NO_CRT', # influences the use of RSA in X.509 and TLS
|
||||||
'MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY', # interacts with *_USE_A64_CRYPTO_IF_PRESENT
|
|
||||||
'MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_ONLY', # interacts with *_USE_ARMV8_A_CRYPTO_IF_PRESENT
|
'MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_ONLY', # interacts with *_USE_ARMV8_A_CRYPTO_IF_PRESENT
|
||||||
'MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY', # interacts with *_USE_A64_CRYPTO_IF_PRESENT
|
'MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY', # interacts with *_USE_A64_CRYPTO_IF_PRESENT
|
||||||
'MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT', # setting *_USE_ARMV8_A_CRYPTO is sufficient
|
|
||||||
'MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN', # build dependency (clang+memsan)
|
'MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN', # build dependency (clang+memsan)
|
||||||
'MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND', # build dependency (valgrind headers)
|
'MBEDTLS_TEST_CONSTANT_FLOW_VALGRIND', # build dependency (valgrind headers)
|
||||||
'MBEDTLS_X509_REMOVE_INFO', # removes a feature
|
'MBEDTLS_X509_REMOVE_INFO', # removes a feature
|
||||||
@@ -164,7 +162,6 @@ EXCLUDE_FROM_BAREMETAL = frozenset([
|
|||||||
'MBEDTLS_THREADING_C', # requires a threading interface
|
'MBEDTLS_THREADING_C', # requires a threading interface
|
||||||
'MBEDTLS_THREADING_PTHREAD', # requires pthread
|
'MBEDTLS_THREADING_PTHREAD', # requires pthread
|
||||||
'MBEDTLS_TIMING_C', # requires a clock
|
'MBEDTLS_TIMING_C', # requires a clock
|
||||||
'MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT', # requires an OS for runtime-detection
|
|
||||||
'MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT', # requires an OS for runtime-detection
|
'MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT', # requires an OS for runtime-detection
|
||||||
'MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT', # requires an OS for runtime-detection
|
'MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT', # requires an OS for runtime-detection
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -134,8 +134,6 @@ class CoverageTask(outcome_analysis.CoverageTask):
|
|||||||
# MBEDTLS_PSA_CRYPTO_SPM as enabled. That's ok.
|
# MBEDTLS_PSA_CRYPTO_SPM as enabled. That's ok.
|
||||||
'Config: MBEDTLS_PSA_CRYPTO_SPM',
|
'Config: MBEDTLS_PSA_CRYPTO_SPM',
|
||||||
# We don't test on armv8 yet.
|
# We don't test on armv8 yet.
|
||||||
'Config: MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT',
|
|
||||||
'Config: MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY',
|
|
||||||
'Config: MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_ONLY',
|
'Config: MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_ONLY',
|
||||||
'Config: MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY',
|
'Config: MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY',
|
||||||
# We don't run test_suite_config when we test this.
|
# We don't run test_suite_config when we test this.
|
||||||
|
|||||||
@@ -299,12 +299,6 @@ component_build_sha_armce () {
|
|||||||
|
|
||||||
|
|
||||||
# test the deprecated form of the config option
|
# test the deprecated form of the config option
|
||||||
scripts/config.py set MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY
|
|
||||||
msg "MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY clang, thumb"
|
|
||||||
make -B library/../${BUILTIN_SRC_PATH}/sha256.o library/../${BUILTIN_SRC_PATH}/sha256.s CC=clang CFLAGS="--target=arm-linux-gnueabihf -mcpu=cortex-a32+crypto -mthumb"
|
|
||||||
msg "MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY clang, test T32 crypto instructions built"
|
|
||||||
grep -E 'sha256[a-z0-9]+.32\s+[qv]' ${BUILTIN_SRC_PATH}/sha256.s
|
|
||||||
scripts/config.py unset MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY
|
|
||||||
|
|
||||||
scripts/config.py set MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT
|
scripts/config.py set MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT
|
||||||
msg "MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT clang, aarch64"
|
msg "MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT clang, aarch64"
|
||||||
@@ -313,18 +307,6 @@ component_build_sha_armce () {
|
|||||||
grep -E 'sha256[a-z0-9]+\s+[qv]' ${BUILTIN_SRC_PATH}/sha256.s
|
grep -E 'sha256[a-z0-9]+\s+[qv]' ${BUILTIN_SRC_PATH}/sha256.s
|
||||||
scripts/config.py unset MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT
|
scripts/config.py unset MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_IF_PRESENT
|
||||||
|
|
||||||
|
|
||||||
# test the deprecated form of the config option
|
|
||||||
scripts/config.py set MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT
|
|
||||||
msg "MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT clang, arm"
|
|
||||||
make -B library/../${BUILTIN_SRC_PATH}/sha256.o library/../${BUILTIN_SRC_PATH}/sha256.s CC=clang CFLAGS="--target=arm-linux-gnueabihf -mcpu=cortex-a72+crypto -marm -std=c99"
|
|
||||||
|
|
||||||
msg "MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT clang, thumb"
|
|
||||||
make -B library/../${BUILTIN_SRC_PATH}/sha256.o library/../${BUILTIN_SRC_PATH}/sha256.s CC=clang CFLAGS="--target=arm-linux-gnueabihf -mcpu=cortex-a32+crypto -mthumb"
|
|
||||||
msg "MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT clang, test T32 crypto instructions built"
|
|
||||||
grep -E 'sha256[a-z0-9]+.32\s+[qv]' ${BUILTIN_SRC_PATH}/sha256.s
|
|
||||||
scripts/config.py unset MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT
|
|
||||||
|
|
||||||
# examine the disassembly for absence of SHA instructions
|
# examine the disassembly for absence of SHA instructions
|
||||||
msg "clang, test A32 crypto instructions not built"
|
msg "clang, test A32 crypto instructions not built"
|
||||||
make -B library/../${BUILTIN_SRC_PATH}/sha256.s CC=clang CFLAGS="--target=arm-linux-gnueabihf -mcpu=cortex-a72 -marm"
|
make -B library/../${BUILTIN_SRC_PATH}/sha256.s CC=clang CFLAGS="--target=arm-linux-gnueabihf -mcpu=cortex-a72 -marm"
|
||||||
|
|||||||
Reference in New Issue
Block a user