From 61ef3603ebb23a78dfd5d79509f3a5867c58f1f4 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 6 Mar 2023 16:26:18 +0100 Subject: [PATCH] Correct the maximum canonical value in tests Signed-off-by: Gabor Mezei --- scripts/mbedtls_dev/ecp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mbedtls_dev/ecp.py b/scripts/mbedtls_dev/ecp.py index ff31baedcc..556209f469 100644 --- a/scripts/mbedtls_dev/ecp.py +++ b/scripts/mbedtls_dev/ecp.py @@ -93,8 +93,8 @@ class EcpP224R1Raw(bignum_common.ModOperationCommon, "ffffffffffffffffffffffffffffffff000000000000000000000000", # Maximum canonical P224 multiplication result - ("ffffffffffffffffffffffffffffffffffffffffffffffffffffffff" - "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), + ("fffffffffffffffffffffffffffffffe000000000000000000000000" + "00000001000000000000000000000000000000000000000000000000"), # Generate an overflow during reduction ("00000000000000000000000000010000000070000000002000001000"