summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Beurdouche <bbeurdouche@mozilla.com>2021-03-10 09:48:41 +0000
committerBenjamin Beurdouche <bbeurdouche@mozilla.com>2021-03-10 09:48:41 +0000
commit738dcd2ef1aa3b80433ad648cc1f257ab0ba158e (patch)
tree94016d265886a732be0649646c82120a74198411
parented0b7f9e1e4badaba9fb75d9822c37a5fea366a1 (diff)
downloadnss-hg-738dcd2ef1aa3b80433ad648cc1f257ab0ba158e.tar.gz
Bug 1683520 - ECCKiila P521, change syntax of nested structs initialization to prevent build isses with GCC 4.8. r=bbrumley
Depends on D102406 Differential Revision: https://phabricator.services.mozilla.com/D106882
-rw-r--r--lib/freebl/ecl/ecp_secp521r1.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/freebl/ecl/ecp_secp521r1.c b/lib/freebl/ecl/ecp_secp521r1.c
index 5975aa458..5816d3e0a 100644
--- a/lib/freebl/ecl/ecp_secp521r1.c
+++ b/lib/freebl/ecl/ecp_secp521r1.c
@@ -4261,7 +4261,7 @@ var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[66],
int i, d, is_neg, is_inf = 1, flipped = 0;
int8_t anaf[529] = { 0 };
int8_t bnaf[529] = { 0 };
- pt_prj_t Q = { 0 };
+ pt_prj_t Q = {{ 0 }};
pt_prj_t precomp[DRADIX / 2];
precomp_wnaf(precomp, P);
@@ -4330,7 +4330,7 @@ var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[66],
{
int i, j, d, diff, is_neg;
int8_t rnaf[106] = { 0 };
- pt_prj_t Q = { 0 }, lut = { 0 };
+ pt_prj_t Q = {{ 0 }}, lut = {{ 0 }};
pt_prj_t precomp[DRADIX / 2];
precomp_wnaf(precomp, P);
@@ -4399,8 +4399,8 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[66])
{
int i, j, k, d, diff, is_neg = 0;
int8_t rnaf[106] = { 0 };
- pt_prj_t Q = { 0 }, R = { 0 };
- pt_aff_t lut = { 0 };
+ pt_prj_t Q = {{ 0 }}, R = {{ 0 }};
+ pt_aff_t lut = {{ 0 }};
scalar_rwnaf(rnaf, scalar);
@@ -11533,7 +11533,7 @@ var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[66],
int i, d, is_neg, is_inf = 1, flipped = 0;
int8_t anaf[529] = { 0 };
int8_t bnaf[529] = { 0 };
- pt_prj_t Q = { 0 };
+ pt_prj_t Q = {{ 0 }};
pt_prj_t precomp[DRADIX / 2];
precomp_wnaf(precomp, P);
@@ -11602,7 +11602,7 @@ var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[66],
{
int i, j, d, diff, is_neg;
int8_t rnaf[106] = { 0 };
- pt_prj_t Q = { 0 }, lut = { 0 };
+ pt_prj_t Q = {{ 0 }}, lut = {{ 0 }};
pt_prj_t precomp[DRADIX / 2];
precomp_wnaf(precomp, P);
@@ -11671,8 +11671,8 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[66])
{
int i, j, k, d, diff, is_neg = 0;
int8_t rnaf[106] = { 0 };
- pt_prj_t Q = { 0 }, R = { 0 };
- pt_aff_t lut = { 0 };
+ pt_prj_t Q = {{ 0 }}, R = {{ 0 }};
+ pt_aff_t lut = {{ 0 }};
scalar_rwnaf(rnaf, scalar);