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
commitac48e507e3dabc5701706a2a4f9a59430a4137b7 (patch)
tree9a6d2c38bdcec03399a65714bca893113c4c01b1
parent7f4e268f8b37da0b466c45317516be9f8c20c684 (diff)
downloadnss-hg-ac48e507e3dabc5701706a2a4f9a59430a4137b7.tar.gz
Bug 1697380 - Make a clang-format run on top of helpful contributions. r=beurdouche
Depends on D106881 Differential Revision: https://phabricator.services.mozilla.com/D107787
-rw-r--r--lib/freebl/ecl/ecp_secp384r1.c24
-rw-r--r--lib/freebl/ecl/ecp_secp521r1.c24
2 files changed, 24 insertions, 24 deletions
diff --git a/lib/freebl/ecl/ecp_secp384r1.c b/lib/freebl/ecl/ecp_secp384r1.c
index 31653149c..19da269b4 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,14 +6143,14 @@ 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);
scalar_rwnaf(rnaf, scalar);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif
@@ -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);
@@ -6223,7 +6223,7 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[48])
fe_set_zero(Q.Z);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif
@@ -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,14 +19357,14 @@ 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);
scalar_rwnaf(rnaf, scalar);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif
@@ -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);
@@ -19437,7 +19437,7 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[48])
fe_set_zero(Q.Z);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif
diff --git a/lib/freebl/ecl/ecp_secp521r1.c b/lib/freebl/ecl/ecp_secp521r1.c
index 5816d3e0a..d673eccca 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,14 +4330,14 @@ 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);
scalar_rwnaf(rnaf, scalar);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif
@@ -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);
@@ -4410,7 +4410,7 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[66])
fe_set_zero(Q.Z);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif
@@ -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,14 +11602,14 @@ 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);
scalar_rwnaf(rnaf, scalar);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif
@@ -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);
@@ -11682,7 +11682,7 @@ fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[66])
fe_set_zero(Q.Z);
#if defined(_MSC_VER)
- /* result still unsigned: yes we know */
+/* result still unsigned: yes we know */
#pragma warning(push)
#pragma warning(disable : 4146)
#endif