Skip to content

Commit

Permalink
Handle the SHA3 macros as mutually exclusive
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Mezei <[email protected]>
  • Loading branch information
gabor-mezei-arm committed Sep 25, 2024
1 parent e99780f commit fcfc93d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/scripts/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,11 @@ def __init__(self, options, conf):
# across various modules, but it depends on either SHA256 or SHA512.
# As a consequence an "exclusive" test of anything other than SHA256
# or SHA512 with MBEDTLS_ENTROPY_C enabled is not possible.
# Note for update: when MBEDTLS_SHA3_C is removed the mutual_exclusion
# argument must be removed.
'hashes': DualDomain(hash_symbols, build_and_test,
exclude=r'PSA_WANT_ALG_(?!SHA_(256|512))',
mutual_exclusion=[r'PSA_WANT_ALG_SHA3_']),
# Key exchange types.
'kex': ExclusiveDomain(key_exchange_symbols, build_and_test),
'pkalgs': ComplementaryDomain(['MBEDTLS_ECDSA_C',
Expand Down

0 comments on commit fcfc93d

Please sign in to comment.