This is an automated email from the ASF dual-hosted git repository. sandreoli pushed a commit to branch issue8-nm-commit-wrapper in repository https://gitbox.apache.org/repos/asf/incubator-milagro-MPC.git
commit 7553c2d112b4a96411062bf9dffed9bee151bb98 Author: Samuele Andreoli <[email protected]> AuthorDate: Wed Feb 19 13:20:19 2020 +0000 format code --- benchmark/bench.h | 2 +- examples/example_dump_keys.c | 4 ++-- test/smoke/test_dump_keys_smoke.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/benchmark/bench.h b/benchmark/bench.h index 5c60bc5..6472bf5 100644 --- a/benchmark/bench.h +++ b/benchmark/bench.h @@ -41,4 +41,4 @@ extern void print_system_info(); } #endif -#endif \ No newline at end of file +#endif diff --git a/examples/example_dump_keys.c b/examples/example_dump_keys.c index ccf0f84..0320c01 100644 --- a/examples/example_dump_keys.c +++ b/examples/example_dump_keys.c @@ -50,7 +50,7 @@ int main() PAILLIER_public_key PUB1; PAILLIER_private_key PRIV2; PAILLIER_public_key PUB2; - PAILLIER_public_key PUB3; + PAILLIER_public_key PUB3; // Paillier public key char n[FS_4096] = {0}; @@ -73,7 +73,7 @@ int main() FF_2048_toOctet(&P, PRIV1.p, HFLEN_2048); FF_2048_toOctet(&Q, PRIV1.q, HFLEN_2048); - + // Write secret key to octets MPC_DUMP_PAILLIER_SK(&PRIV1, &P, &Q); diff --git a/test/smoke/test_dump_keys_smoke.c b/test/smoke/test_dump_keys_smoke.c index 751941d..5ba8799 100644 --- a/test/smoke/test_dump_keys_smoke.c +++ b/test/smoke/test_dump_keys_smoke.c @@ -53,7 +53,7 @@ int main() PAILLIER_private_key PRIV2; PAILLIER_public_key PUB2; PAILLIER_public_key PUB3; - + char p[FS_2048] = {0}; octet P = {0,sizeof(p),p}; @@ -180,9 +180,9 @@ int main() fprintf(stderr, "FAILURE QQ != Q rc: %d\n", rc); exit(EXIT_FAILURE); } - + // Read secret key from octets - PAILLIER_KEY_PAIR(NULL, &PP, &QQ, &PUB3, &PRIV2); + PAILLIER_KEY_PAIR(NULL, &PP, &QQ, &PUB3, &PRIV2); MPC_MTA_CLIENT1(NULL, &PUB2, &A, &CA, &R);
