From a2ef6a8e386124432f0465be98c1ae93100225a0 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 6 Mar 2023 16:57:25 +0100 Subject: [PATCH] The is_valid() function is needed to not filter out test cases Signed-off-by: Gabor Mezei --- scripts/mbedtls_dev/ecp.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/mbedtls_dev/ecp.py b/scripts/mbedtls_dev/ecp.py index 556209f469..354b234163 100644 --- a/scripts/mbedtls_dev/ecp.py +++ b/scripts/mbedtls_dev/ecp.py @@ -74,6 +74,10 @@ class EcpP192R1Raw(bignum_common.ModOperationCommon, result = self.int_a % self.int_n return [self.format_result(result)] + @property + def is_valid(self) -> bool: + return True + class EcpP224R1Raw(bignum_common.ModOperationCommon, EcpTarget): @@ -136,6 +140,10 @@ class EcpP224R1Raw(bignum_common.ModOperationCommon, result = self.int_a % self.int_n return [self.format_result(result)] + @property + def is_valid(self) -> bool: + return True + class EcpP521R1Raw(bignum_common.ModOperationCommon, EcpTarget): @@ -223,3 +231,7 @@ class EcpP521R1Raw(bignum_common.ModOperationCommon, def result(self) -> List[str]: result = self.int_a % self.int_n return [self.format_result(result)] + + @property + def is_valid(self) -> bool: + return True