-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
Description
There are some issues getting the module working in Windows - I found fixes, but they aren't very elegant:
- The
Microsoft Visual C++ Compiler for Python 2.7
package doesn't seem to support C99 style variables, so I had to move all variable declarations to the start of functions. - Don't bother trying to get GMP working on Windows, just use MPIR instead.
- If the MPIR library is compiled against a different runtime than fastecdsa (I used VS2015 for compiling MPIR and the previously mentioned VCC for Python 2.7 on fastecdsa), it will mysteriously crash after
free()
ing the buffer returned frommpz_get_str()
- seems to be because memory allocators in different VC runtimes are sometimes incompatible. Changing thefree
to__gmp_default_free
fixed this issue.
neochar, AntonKueltz and kianochkianoch