Skip to content

Issues with getting fastecdsa working in Windows #11

@ymgve

Description

@ymgve

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 from mpz_get_str() - seems to be because memory allocators in different VC runtimes are sometimes incompatible. Changing the free to __gmp_default_free fixed this issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions