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/04/14 15:56:21 UTC
[incubator-milagro-crypto-c] 05/07: format code
This is an automated email from the ASF dual-hosted git repository.
sandreoli pushed a commit to branch review-mike
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-c.git
commit d036f3ea84c48a8f413906f9e63c6789bdd59836
Author: Samuele Andreoli <sa...@yahoo.it>
AuthorDate: Thu Apr 9 08:54:05 2020 +0100
format code
---
python/run_bls_ZZZ.py.in | 2 +-
src/big.c.in | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/python/run_bls_ZZZ.py.in b/python/run_bls_ZZZ.py.in
index f19a764..bf6c86b 100755
--- a/python/run_bls_ZZZ.py.in
+++ b/python/run_bls_ZZZ.py.in
@@ -24,11 +24,11 @@ under the License.
example for using bls
"""
+
import cffi
import platform
import os
import bls_ZZZ
-
if __name__ == "__main__":
# Print hex values
DEBUG = False
diff --git a/src/big.c.in b/src/big.c.in
index 778a499..a97f414 100644
--- a/src/big.c.in
+++ b/src/big.c.in
@@ -1515,7 +1515,7 @@ void BIG_XXX_invmodp(BIG_XXX r,BIG_XXX a,BIG_XXX p)
for (k = 0; k < 2 * BIGBITS_XXX; k++)
{
p1 = !BIG_XXX_iszilch(v);
-
+
pu = BIG_XXX_parity(u);
pv = BIG_XXX_parity(v);
// Cases 2-4 of Kaliski
@@ -1547,7 +1547,7 @@ void BIG_XXX_invmodp(BIG_XXX r,BIG_XXX a,BIG_XXX p)
// Restore u,v,r,s to the original position
BIG_XXX_cswap(u, v, psw);
- BIG_XXX_cswap(r, s, psw);
+ BIG_XXX_cswap(r, s, psw);
}
// Last step of kaliski