Git Product home page Git Product logo

Comments (5)

chjj avatar chjj commented on August 26, 2024

Very strange. The 64 bit field element backends should not be built on windows: https://github.com/bcoin-org/bcrypto/blob/master/binding.gyp#L86

I wonder if the node-gyp OS variable is being set to something other than win?

from bcrypto.

chjj avatar chjj commented on August 26, 2024

Oh, it's not building the 64 bit backends. Strange that the 32 bit fiat backends require __int128. Hmm.

from bcrypto.

chjj avatar chjj commented on August 26, 2024

Okay, it seems like only unsaturated solinas primes require an __int128 type for 32 bit. I think we could maybe compile those backends using montgomery reduction instead to make them work on windows.

from bcrypto.

chjj avatar chjj commented on August 26, 2024

Strangely enough, p25519 32 bit doesn't require __int128. Investigating more.

from bcrypto.

chjj avatar chjj commented on August 26, 2024

It seems as though the shape of the prime and the number of limbs determines whether __int128 is used for 32 bit. I've tweaked the fiat build script and increased the number of limbs for those backends to avoid using __int128.

from bcrypto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.