From 18985129eb57d0bc162d376a5c0a160c22351999 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 16 Feb 2018 16:54:53 +0000 Subject: [PATCH] fixup! Improve readability of f_impl.c and f_impl.h Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/5105) --- crypto/ec/curve448/arch_32/f_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/curve448/arch_32/f_impl.h b/crypto/ec/curve448/arch_32/f_impl.h index 1543d10663..bbde84a038 100644 --- a/crypto/ec/curve448/arch_32/f_impl.h +++ b/crypto/ec/curve448/arch_32/f_impl.h @@ -52,7 +52,7 @@ void gf_weak_reduce(gf a) unsigned int i; a->limb[NLIMBS / 2] += tmp; - for (i = 15; i > 0; i--) + for (i = NLIMBS - 1; i > 0; i--) a->limb[i] = (a->limb[i] & mask) + (a->limb[i - 1] >> 28); a->limb[0] = (a->limb[0] & mask) + tmp; } -- 2.25.1