summaryrefslogtreecommitdiffstats
path: root/crypto/ec/curve448
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-01-31 13:53:45 +0000
committerMatt Caswell <matt@openssl.org>2018-02-20 12:59:30 +0000
commit7114a5a17a1231e5607e94d67c7b4e4a0ce0b115 (patch)
treeae9341e9f269374967d6458dde29b148b1489ff0 /crypto/ec/curve448
parentbd74eae1be6c11bbfa95542daa7d59d461464853 (diff)
Use the NLIMBS macro rather than try and calculate the number of limbs
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.h2
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 60b5347691..78971e8576 100644
--- a/crypto/ec/curve448/arch_32/f_impl.h
+++ b/crypto/ec/curve448/arch_32/f_impl.h
@@ -20,7 +20,7 @@ void gf_add_RAW(gf out, const gf a, const gf b)
{
unsigned int i;
- for (i = 0; i < sizeof(*out) / sizeof(out->limb[0]); i++) {
+ for (i = 0; i < NLIMBS; i++) {
out->limb[i] = a->limb[i] + b->limb[i];
}
}