From: Matt Caswell Date: Fri, 16 Feb 2018 16:54:53 +0000 (+0000) Subject: fixup! Improve readability of f_impl.c and f_impl.h X-Git-Tag: OpenSSL_1_1_1-pre2~59 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=18985129eb57d0bc162d376a5c0a160c22351999;hp=8e32ec7a568b377f7fbcbee6b1bcf7fd8bbe2e88 fixup! Improve readability of f_impl.c and f_impl.h Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/5105) --- 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; }