summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_nistp224.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-03-29 18:26:53 +1000
committerPauli <paul.dale@oracle.com>2019-03-29 20:52:00 +1000
commit80de174281f7bf5ae9799df26153efe476f41b92 (patch)
tree3d96039bbabadfe1158061ac6a2bf6a794401dbc /crypto/ec/ecp_nistp224.c
parent2661d716d99fc1dd3240dcdbca6ab73d7b61a72b (diff)
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.c4
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);
}