summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Beurdouche <bbeurdouche@mozilla.com>2021-03-10 09:49:17 +0000
committerBenjamin Beurdouche <bbeurdouche@mozilla.com>2021-03-10 09:49:17 +0000
commit7f4e268f8b37da0b466c45317516be9f8c20c684 (patch)
tree86778db9b6df744d0cfa4ea023da7268dd8d11c2
parente25dbb0d43e87d29d4031e1da66470c662b746ee (diff)
downloadnss-hg-7f4e268f8b37da0b466c45317516be9f8c20c684.tar.gz
Bug 1683520 - ECCKiila P384, change syntax of nested structs initialization to prevent build isses with GCC 4.8. r=bbrumley
Depends on D102389 Differential Revision: https://phabricator.services.mozilla.com/D106881
-rw-r--r--lib/freebl/ecl/ecp_secp384r1.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/freebl/ecl/ecp_secp384r1.c b/lib/freebl/ecl/ecp_secp384r1.c
index 1388c6fb4..31653149c 100644
--- a/lib/freebl/ecl/ecp_secp384r1.c
+++ b/lib/freebl/ecl/ecp_secp384r1.c
@@ -6074,7 +6074,7 @@ var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[48],
int i, d, is_neg, is_inf = 1, flipped = 0;
int8_t anaf[385] = { 0 };
int8_t bnaf[385] = { 0 };
- pt_prj_t Q = { 0 };
+ pt_prj_t Q = {{ 0 }};
pt_prj_t precomp[DRADIX / 2];
precomp_wnaf(precomp, P);
@@ -6143,7 +6143,7 @@ var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[48],
{
int i, j, d, diff, is_neg;
int8_t rnaf[77] = { 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);
@@ -6212,8 +6212,8 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[48])
{
int i, j, k, d, diff, is_neg = 0;
int8_t rnaf[77] = { 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);
@@ -19288,7 +19288,7 @@ var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[48],
int i, d, is_neg, is_inf = 1, flipped = 0;
int8_t anaf[385] = { 0 };
int8_t bnaf[385] = { 0 };
- pt_prj_t Q = { 0 };
+ pt_prj_t Q = {{ 0 }};
pt_prj_t precomp[DRADIX / 2];
precomp_wnaf(precomp, P);
@@ -19357,7 +19357,7 @@ var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[48],
{
int i, j, d, diff, is_neg;
int8_t rnaf[77] = { 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);
@@ -19426,8 +19426,8 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[48])
{
int i, j, k, d, diff, is_neg = 0;
int8_t rnaf[77] = { 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);