From 07db30533aabafe4e61afe1f9d581e57177ed95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 12 May 2026 11:36:14 +0200 Subject: [PATCH] ecp: minor optimisation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- library/ecp_curves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ecp_curves.c b/library/ecp_curves.c index 45d09561c3..d5b6be28b2 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c @@ -5501,7 +5501,7 @@ static void ecp_copy_shift_r_224(mbedtls_mpi_uint *X, * P448_WIDTH = P224_WIDTH_MIN + P224_WIDTH_MAX */ memcpy(X + P224_WIDTH_MIN, A + P224_WIDTH_MIN, P224_WIDTH_MAX * ciL); X[P448_WIDTH] = 0; - mbedtls_mpi_core_shift_r(X, P448_WIDTH + 1, 224); + mbedtls_mpi_core_shift_r(X, P448_WIDTH, 224); #else /* Shortcut for 32-bit and little-endian 64-bit. * P448_WITDH * ciL = 2 * P224_SIZE */