diff options
author | Pauli <paul.dale@oracle.com> | 2019-03-29 18:26:53 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-03-29 20:52:00 +1000 |
commit | 80de174281f7bf5ae9799df26153efe476f41b92 (patch) | |
tree | 3d96039bbabadfe1158061ac6a2bf6a794401dbc /crypto/ec/ecp_nistp224.c | |
parent | 2661d716d99fc1dd3240dcdbca6ab73d7b61a72b (diff) | |
download | openssl-80de174281f7bf5ae9799df26153efe476f41b92.tar.gz |
Make the array zeroing explicit using memset.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8611)
Diffstat (limited to 'crypto/ec/ecp_nistp224.c')
-rw-r--r-- | crypto/ec/ecp_nistp224.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/ec/ecp_nistp224.c b/crypto/ec/ecp_nistp224.c index 653965953b..e6f095e728 100644 --- 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); } |