This is an automated email from the ASF dual-hosted git repository. sandreoli pushed a commit to branch add-multiple-exponent-api in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-c.git
commit d87a7b8d1742d5418f0c3574b25cc954e49e67b4 Author: Samuele Andreoli <[email protected]> AuthorDate: Tue Feb 4 10:19:04 2020 +0000 Format code --- include/paillier.h | 2 +- python/bls_ZZZ.py.in | 7 +++---- python/mpin_ZZZ.py.in | 2 +- python/wcc_ZZZ.py.in | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/paillier.h b/include/paillier.h index a5928dc..794ef6e 100644 --- a/include/paillier.h +++ b/include/paillier.h @@ -186,5 +186,5 @@ void PAILLIER_PK_toOctet(octet *PK, PAILLIER_public_key *PUB); #ifdef __cplusplus } #endif - + #endif diff --git a/python/bls_ZZZ.py.in b/python/bls_ZZZ.py.in index cf5e6d7..adf8ce9 100755 --- a/python/bls_ZZZ.py.in +++ b/python/bls_ZZZ.py.in @@ -28,10 +28,10 @@ This module use cffi to access the c functions in the BLS library. There is also an example usage program in this file. """ + import cffi import platform import os - ffi = cffi.FFI() ffi.cdef(""" typedef struct { @@ -252,7 +252,7 @@ def sign(message, sk): Raises: """ - m, m_val = make_octet(None, message) + m, m_val = make_octet(None, message) sk1, sk1_val = make_octet(None, sk) signature1, signature1_val = make_octet(G1LEN) error_code = libamcl_bls_ZZZ.BLS_ZZZ_SIGN(signature1, m, sk1) @@ -284,7 +284,7 @@ def verify(signature, message, pk): Raises: """ - m, m_val = make_octet(None, message) + m, m_val = make_octet(None, message) pk1, pk1_val = make_octet(None, pk) signature1, signature1_val = make_octet(None, signature) error_code = libamcl_bls_ZZZ.BLS_ZZZ_VERIFY(signature1, m, pk1) @@ -362,7 +362,6 @@ def add_G2(R1, R2): return error_code, R - if __name__ == "__main__": # Print hex values DEBUG = False diff --git a/python/mpin_ZZZ.py.in b/python/mpin_ZZZ.py.in index 6e84805..094e1ef 100644 --- a/python/mpin_ZZZ.py.in +++ b/python/mpin_ZZZ.py.in @@ -28,10 +28,10 @@ This module use cffi to access the c functions in the mpin library. There is also an example usage program in this file. """ + import cffi import platform import os - ffi = cffi.FFI() ffi.cdef(""" typedef struct { diff --git a/python/wcc_ZZZ.py.in b/python/wcc_ZZZ.py.in index d899eea..734dcf0 100644 --- a/python/wcc_ZZZ.py.in +++ b/python/wcc_ZZZ.py.in @@ -28,9 +28,9 @@ This module use cffi to access the c functions in the WCC library. There is also an example usage program in this file. """ + import cffi import platform - ffi = cffi.FFI() ffi.cdef(""" typedef struct {
