You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by sa...@apache.org on 2020/02/14 17:12:33 UTC
[incubator-milagro-MPC] 03/04: format code
This is an automated email from the ASF dual-hosted git repository.
sandreoli pushed a commit to branch add-full-example
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-MPC.git
commit 476d954150f035c6a9a98b5aaba2fd7bdbdca850
Author: Samuele Andreoli <sa...@yahoo.it>
AuthorDate: Fri Feb 14 17:11:58 2020 +0000
format code
---
src/mta.c | 2 +-
test/smoke/test_ecdsa_smoke.c | 6 +++---
test/test.c | 8 ++++----
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/mta.c b/src/mta.c
index 19d6b55..86f07fa 100644
--- a/src/mta.c
+++ b/src/mta.c
@@ -866,7 +866,7 @@ void MTA_ZK_prove(PAILLIER_public_key *key, MTA_ZK_commitment_rv *rv, octet *X,
// Clean memory
FF_2048_zero(hws, HFLEN_2048);
- FF_2048_zero(ws , FFLEN_2048);
+ FF_2048_zero(ws, FFLEN_2048);
FF_2048_zero(dws, 2 * FFLEN_2048);
}
diff --git a/test/smoke/test_ecdsa_smoke.c b/test/smoke/test_ecdsa_smoke.c
index 8e28c2c..eb20072 100644
--- a/test/smoke/test_ecdsa_smoke.c
+++ b/test/smoke/test_ecdsa_smoke.c
@@ -169,7 +169,7 @@ int test(csprng *RNG)
printf("Generating ECDSA key pair two\n");
ECP_SECP256K1_KEY_PAIR_GENERATE(RNG,&W2,&NC_ECP);
-
+
// Convert to compressed form
rc=ECP_SECP256K1_fromOctet(&P, &NC_ECP);
if (!rc)
@@ -189,7 +189,7 @@ int test(csprng *RNG)
printf("Generating GAMMA pair one\n");
ECP_SECP256K1_KEY_PAIR_GENERATE(RNG,&GAMMA1,&NC_ECP);
-
+
// Convert to compressed form
rc=ECP_SECP256K1_fromOctet(&P, &NC_ECP);
if (!rc)
@@ -209,7 +209,7 @@ int test(csprng *RNG)
printf("Generating GAMMA pair two\n");
ECP_SECP256K1_KEY_PAIR_GENERATE(RNG,&GAMMA2,&NC_ECP);
-
+
// Convert to compressed form
rc=ECP_SECP256K1_fromOctet(&P, &NC_ECP);
if (!rc)
diff --git a/test/test.c b/test/test.c
index b739b04..7cd65fc 100644
--- a/test/test.c
+++ b/test/test.c
@@ -239,10 +239,10 @@ void compare_ECP_SECP256K1(FILE *fp, int testNo, char *name, ECP_SECP256K1 *P, E
fprintf(stderr, "FAILURE %s. Test %d\n", name, testNo);
#ifdef DEBUG
- printf("P = ");
- ECP_SECP256K1_output(P);
- printf("Q = ");
- ECP_SECP256K1_output(Q);
+ printf("P = ");
+ ECP_SECP256K1_output(P);
+ printf("Q = ");
+ ECP_SECP256K1_output(Q);
#endif
exit(EXIT_FAILURE);