Skip to content

Commit

Permalink
Cleanup the code
Browse files Browse the repository at this point in the history
Signed-off-by: Przemek Stekiel <[email protected]>
  • Loading branch information
mprse committed Jul 5, 2023
1 parent 84f4ff1 commit 565353e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions tests/scripts/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,7 @@ component_test_psa_crypto_config_accel_ffdh () {
# Configure
# ---------

# Start from default config (no TLS 1.3, no USE_PSA)
# start with full (USE_PSA and TLS 1.3)
helper_libtestdriver1_adjust_config "full"

# Disable the module that's accelerated
Expand Down Expand Up @@ -2294,21 +2294,11 @@ component_test_psa_crypto_config_reference_ffdh () {
msg "build: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated FFDH"

# Start with full (USE_PSA and TLS 1.3)
scripts/config.py full

# Disable ALG_STREAM_CIPHER and ALG_ECB_NO_PADDING to avoid having
# partial support for cipher operations in the driver test library.
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_STREAM_CIPHER
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_ECB_NO_PADDING

# enable support for drivers and configuring PSA-only algorithms
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
helper_libtestdriver1_adjust_config "full"

# Disable things that are not supported
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C

make

msg "test suites: MBEDTLS_PSA_CRYPTO_CONFIG with non-accelerated FFDH alg + USE_PSA"
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/analyze_outcomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def do_analyze_driver_vs_reference(outcome_file, args):
'component_ref': 'test_psa_crypto_config_reference_ffdh',
'component_driver': 'test_psa_crypto_config_accel_ffdh',
'ignored_suites': ['dhm'],
'ignored_tests': {'test_suite_pkparse': ['DH group family: RFC 7919']}
'ignored_tests': {}
}
},
}
Expand Down

0 comments on commit 565353e

Please sign in to comment.