mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00:00
More robust dependency filtering
Only remove the MBEDTLS_HAVE_INTnn dependency, not any other dependency that might be present. No behavior change, this is just robustness. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
f287366376
commit
5efe449a6a
@ -149,7 +149,9 @@ class BignumModRawConvertRep(bignum_common.ModOperationCommon,
|
|||||||
# representations, emit a single test case with no dependency
|
# representations, emit a single test case with no dependency
|
||||||
# on the limb size.
|
# on the limb size.
|
||||||
if rep is not bignum_common.ModulusRepresentation.MONTGOMERY:
|
if rep is not bignum_common.ModulusRepresentation.MONTGOMERY:
|
||||||
test_object.dependencies = []
|
test_object.dependencies = \
|
||||||
|
[dep for dep in test_object.dependencies
|
||||||
|
if not dep.startswith('MBEDTLS_HAVE_INT')]
|
||||||
if test_object.is_valid:
|
if test_object.is_valid:
|
||||||
yield test_object.create_test_case()
|
yield test_object.create_test_case()
|
||||||
if rep is not bignum_common.ModulusRepresentation.MONTGOMERY:
|
if rep is not bignum_common.ModulusRepresentation.MONTGOMERY:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user