projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd74eae
)
Use the NLIMBS macro rather than try and calculate the number of limbs
author
Matt Caswell
<matt@openssl.org>
Wed, 31 Jan 2018 13:53:45 +0000
(13:53 +0000)
committer
Matt Caswell
<matt@openssl.org>
Tue, 20 Feb 2018 12:59:30 +0000
(12:59 +0000)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5105)
crypto/ec/curve448/arch_32/f_impl.h
patch
|
blob
|
history
diff --git
a/crypto/ec/curve448/arch_32/f_impl.h
b/crypto/ec/curve448/arch_32/f_impl.h
index 60b5347691c9a7a75b494d158827f17c3ce88f3e..78971e8576df48298357ad2c634068df77d77d56 100644
(file)
--- 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];
}
}