GithubHelp home page GithubHelp logo

x86_64 build using crypto acceleration(ASM_X86) produces SHA extension instructions not available on many microarchitectures? about gnutls HOT 3 CLOSED

atraczyk avatar atraczyk commented on September 2, 2024
x86_64 build using crypto acceleration(ASM_X86) produces SHA extension instructions not available on many microarchitectures?

from gnutls.

Comments (3)

Sibras avatar Sibras commented on September 2, 2024

That shouldnt happen as the code that uses sha instructions wont do so without checking for the returned flags from cpuid first. I looked at the asm and its definitely only running sha instructions when the cpu returns support for it.
When the culprit functions are run what is the status of the "gnutls_x86_cpuid_s" array? Knowing what your cpu is returning may help in identifying the problem.

from gnutls.

atraczyk avatar atraczyk commented on September 2, 2024

These are the values in the "gnutls_x86_cpuid_s" array just after "gnutls_cpuid" returns:
[0x00000000] 0x03100800
[0x00000001] 0xfed87383
[0x00000002] 0xbfcbfbff

from gnutls.

Sibras avatar Sibras commented on September 2, 2024

I managed to track this one down as it appears it was a version inconsistency between the older asm gnutls code expects and the asm used in the project (gnutls pulls all its asm from openssl repo but is incompatible with any of the more recent asm versions). I pushed an update to the repo and updated the latest release on the release page with the appropriate fixes. Let me know if this corrects the problem for you.

from gnutls.

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.