milagro-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-milagro-crypto-c] GuillaumeCisco edited a comment on issue #38: Python wrappers
Date Wed, 14 Aug 2019 16:57:48 GMT
GuillaumeCisco edited a comment on issue #38: Python wrappers
   What I tried:
   Using the file `test_pair_FP256BN.c` which use `CURVE_Order_FP256BN`.
   Creating the .so (from python wrapper generated directory) using:
   `gcc -g -I../../include -I../../../../include -fPIC -Wall -Wextra ../../test/test_pair_FP256BN.c
-shared -o ./`
   With a file named
   import cffi
   ffi = cffi.FFI()
      int main();
   lib = ffi.dlopen("./")
   $> python
   Python 2.7.15+ (default, Nov 27 2018, 23:36:35) 
   [GCC 7.3.0] on linux2
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import test_pair_FP256BN
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   ImportError: ./ undefined symbol: CURVE_Order_FP256BN
   There is something I'm not doing correctly...

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message