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:
2661d71
)
Make the array zeroing explicit using memset.
author
Pauli
<paul.dale@oracle.com>
Fri, 29 Mar 2019 08:26:53 +0000
(18:26 +1000)
committer
Pauli
<paul.dale@oracle.com>
Fri, 29 Mar 2019 10:52:00 +0000
(20:52 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8611)
crypto/ec/ecp_nistp224.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ecp_nistp224.c
b/crypto/ec/ecp_nistp224.c
index 653965953b1b613c3091d4b486d6ff7ca97d2c3b..e6f095e7280e317d6feae67e8e0d6d36efb473a3 100644
(file)
--- a/
crypto/ec/ecp_nistp224.c
+++ b/
crypto/ec/ecp_nistp224.c
@@
-676,7
+676,9
@@
static void felem_contract(felem out, const felem in)
*/
static void felem_neg(felem out, const felem in)
{
- widefelem tmp = {0};
+ widefelem tmp;
+
+ memset(tmp, 0, sizeof(tmp));
felem_diff_128_64(tmp, in);
felem_reduce(out, tmp);
}