Skip to content

Commit

Permalink
Bug 1683520 - ECCKiila P384, change syntax of nested structs initiali…
Browse files Browse the repository at this point in the history
…zation to prevent build isses with GCC 4.8. r=bbrumley

Depends on D102389

Differential Revision: https://phabricator.services.mozilla.com/D106881

--HG--
extra : moz-landing-system : lando
  • Loading branch information
beurdouche committed Mar 10, 2021
1 parent bd6fbc8 commit 080b0d5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/freebl/ecl/ecp_secp384r1.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 080b0d5

Please sign in to comment.