mbedtls
mbedtls copied to clipboard
Adjust hash dependencies in OID
The OID module holds data about various algorithms. It does not really depend on other modules, but still uses guards in order to avoid having useless data about algorithms that are not in the build. Currently these guards are expressed as MBEDTLS_ macros, which are not suitable in driver-based builds. This task is to fix that for hashes.
- [x] Replace
MBEDTLS_MD5_CandMBEDTLS_SHAxxx_Cwith the correspondingMBEDTLS_HAS_ALG_xxx_VIA_LOWLEVEL_OR_PSA(seelibrary/legacy_or_psa.h). - [x] Remove
MBEDTLS_MD_Cguards (inoid.candoid.h). - [x] Fix dependency declarations in the test suite as well and ensure testing parity between
component_test_psa_crypto_config_accel_hash_use_psaand a software-based build (either no test skipped in the driver-only build, or seedocs/architecture/psa-migration/outcome-analysis.sh)
Note: parts of this were already done in #6065 and #6127 but this is about completing the job and doing the test suite as well.