mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
Rename test components to better reflect content
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
@@ -3741,9 +3741,9 @@ component_test_psa_crypto_config_accel_aead () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# This is a common configuration function used in:
|
# This is a common configuration function used in:
|
||||||
# - component_test_psa_crypto_config_accel_cipher_aead
|
# - component_test_psa_crypto_config_accel_cipher_aead_cmac
|
||||||
# - component_test_psa_crypto_config_reference_cipher_aead
|
# - component_test_psa_crypto_config_reference_cipher_aead_cmac
|
||||||
common_psa_crypto_config_accel_cipher_aead() {
|
common_psa_crypto_config_accel_cipher_aead_cmac() {
|
||||||
# Start from the full config
|
# Start from the full config
|
||||||
helper_libtestdriver1_adjust_config "full"
|
helper_libtestdriver1_adjust_config "full"
|
||||||
|
|
||||||
@@ -3751,12 +3751,12 @@ common_psa_crypto_config_accel_cipher_aead() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# The 2 following test components, i.e.
|
# The 2 following test components, i.e.
|
||||||
# - component_test_psa_crypto_config_accel_cipher_aead
|
# - component_test_psa_crypto_config_accel_cipher_aead_cmac
|
||||||
# - component_test_psa_crypto_config_reference_cipher_aead
|
# - component_test_psa_crypto_config_reference_cipher_aead_cmac
|
||||||
# are meant to be used together in analyze_outcomes.py script in order to test
|
# are meant to be used together in analyze_outcomes.py script in order to test
|
||||||
# driver's coverage for ciphers and AEADs.
|
# driver's coverage for ciphers and AEADs.
|
||||||
component_test_psa_crypto_config_accel_cipher_aead () {
|
component_test_psa_crypto_config_accel_cipher_aead_cmac () {
|
||||||
msg "build: full config with accelerated cipher and AEAD"
|
msg "build: full config with accelerated cipher inc. AEAD and CMAC"
|
||||||
|
|
||||||
loc_accel_list="ALG_ECB_NO_PADDING ALG_CBC_NO_PADDING ALG_CBC_PKCS7 ALG_CTR ALG_CFB \
|
loc_accel_list="ALG_ECB_NO_PADDING ALG_CBC_NO_PADDING ALG_CBC_PKCS7 ALG_CTR ALG_CFB \
|
||||||
ALG_OFB ALG_XTS ALG_STREAM_CIPHER ALG_CCM_STAR_NO_TAG \
|
ALG_OFB ALG_XTS ALG_STREAM_CIPHER ALG_CCM_STAR_NO_TAG \
|
||||||
@@ -3766,7 +3766,7 @@ component_test_psa_crypto_config_accel_cipher_aead () {
|
|||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
|
|
||||||
common_psa_crypto_config_accel_cipher_aead
|
common_psa_crypto_config_accel_cipher_aead_cmac
|
||||||
|
|
||||||
# Disable the things that are being accelerated
|
# Disable the things that are being accelerated
|
||||||
scripts/config.py unset MBEDTLS_CIPHER_MODE_CBC
|
scripts/config.py unset MBEDTLS_CIPHER_MODE_CBC
|
||||||
@@ -3810,29 +3810,29 @@ component_test_psa_crypto_config_accel_cipher_aead () {
|
|||||||
# Run the tests
|
# Run the tests
|
||||||
# -------------
|
# -------------
|
||||||
|
|
||||||
msg "test: full config with accelerated cipher and AEAD"
|
msg "test: full config with accelerated cipher inc. AEAD and CMAC"
|
||||||
make test
|
make test
|
||||||
|
|
||||||
msg "ssl-opt: full config with accelerated cipher and AEAD"
|
msg "ssl-opt: full config with accelerated cipher inc. AEAD and CMAC"
|
||||||
tests/ssl-opt.sh
|
tests/ssl-opt.sh
|
||||||
|
|
||||||
msg "compat.sh: full config with accelerated cipher and AEAD"
|
msg "compat.sh: full config with accelerated cipher inc. AEAD and CMAC"
|
||||||
tests/compat.sh -V NO -p mbedTLS
|
tests/compat.sh -V NO -p mbedTLS
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_psa_crypto_config_reference_cipher_aead () {
|
component_test_psa_crypto_config_reference_cipher_aead_cmac () {
|
||||||
msg "build: full config with non-accelerated cipher and AEAD"
|
msg "build: full config with non-accelerated cipher inc. AEAD and CMAC"
|
||||||
common_psa_crypto_config_accel_cipher_aead
|
common_psa_crypto_config_accel_cipher_aead_cmac
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
msg "test: full config with non-accelerated cipher and AEAD"
|
msg "test: full config with non-accelerated cipher inc. AEAD and CMAC"
|
||||||
make test
|
make test
|
||||||
|
|
||||||
msg "ssl-opt: full config with non-accelerated cipher and AEAD"
|
msg "ssl-opt: full config with non-accelerated cipher inc. AEAD and CMAC"
|
||||||
tests/ssl-opt.sh
|
tests/ssl-opt.sh
|
||||||
|
|
||||||
msg "compat.sh: full config with non-accelerated cipher and AEAD"
|
msg "compat.sh: full config with non-accelerated cipher inc. AEAD and CMAC"
|
||||||
tests/compat.sh -V NO -p mbedTLS
|
tests/compat.sh -V NO -p mbedTLS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -240,16 +240,16 @@ KNOWN_TASKS = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'analyze_driver_vs_reference_cipher_aead': {
|
'analyze_driver_vs_reference_cipher_aead_cmac': {
|
||||||
'test_function': do_analyze_driver_vs_reference,
|
'test_function': do_analyze_driver_vs_reference,
|
||||||
'args': {
|
'args': {
|
||||||
'component_ref': 'test_psa_crypto_config_reference_cipher_aead',
|
'component_ref': 'test_psa_crypto_config_reference_cipher_aead_cmac',
|
||||||
'component_driver': 'test_psa_crypto_config_accel_cipher_aead',
|
'component_driver': 'test_psa_crypto_config_accel_cipher_aead_cmac',
|
||||||
# Modules replaced by drivers.
|
# Modules replaced by drivers.
|
||||||
'ignored_suites': [
|
'ignored_suites': [
|
||||||
# low-level (block/stream) cipher modules
|
# low-level (block/stream) cipher modules
|
||||||
'aes', 'aria', 'camellia', 'des', 'chacha20',
|
'aes', 'aria', 'camellia', 'des', 'chacha20',
|
||||||
# AEAD modes
|
# AEAD modes and CMAC
|
||||||
'ccm', 'chachapoly', 'cmac', 'gcm',
|
'ccm', 'chachapoly', 'cmac', 'gcm',
|
||||||
# The Cipher abstraction layer
|
# The Cipher abstraction layer
|
||||||
'cipher',
|
'cipher',
|
||||||
|
Reference in New Issue
Block a user