From b8bd47dd686bc0ff54f30b0be53c3b3e25783bf3 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Wed, 3 May 2023 14:14:55 +0100 Subject: [PATCH] Remove unrequired limb size calculation Signed-off-by: Paul Elliott --- scripts/mbedtls_dev/ecp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/mbedtls_dev/ecp.py b/scripts/mbedtls_dev/ecp.py index 37c67a64d..f9f27faaa 100644 --- a/scripts/mbedtls_dev/ecp.py +++ b/scripts/mbedtls_dev/ecp.py @@ -762,8 +762,7 @@ class EcpP448Raw(bignum_common.ModOperationCommon, @property def arg_a(self) -> str: - hex_digits = bignum_common.hex_digits_for_limb(448 // self.bits_in_limb, self.bits_in_limb) - return super().format_arg('{:x}'.format(self.int_a)).zfill(hex_digits) + return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits) def result(self) -> List[str]: result = self.int_a % self.int_n