diff options
author | Matt Caswell <matt@openssl.org> | 2018-02-16 16:54:53 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-02-20 12:59:31 +0000 |
commit | 18985129eb57d0bc162d376a5c0a160c22351999 (patch) | |
tree | b70fd41d127e3a1c057173e80e53c69140edd0e6 /crypto/ec/curve448 | |
parent | 8e32ec7a568b377f7fbcbee6b1bcf7fd8bbe2e88 (diff) |
fixup! Improve readability of f_impl.c and f_impl.h
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5105)
Diffstat (limited to 'crypto/ec/curve448')
-rw-r--r-- | crypto/ec/curve448/arch_32/f_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |