Giter Site home page Giter Site logo

Comments (4)

badboy avatar badboy commented on June 3, 2024 1

That's spelled out in the commit where we switched to it: 6033f776c2
libstd exposes a hasher, but does not guarantee it will be the same forever. It happens to be a siphasher right now, but it already changed at least once.

from uniffi-rs.

badboy avatar badboy commented on June 3, 2024 1

No, this is merely a safeguard against different UniFFI versions in use.
The input is fully determined by the code that's statically there and compiled, so DoS resistance is not an issue really.
All we need is that it's stable across bit width and endianness, and given siphash's use inside libstd it's a reasonable and trustworthy choice

from uniffi-rs.

stormshield-gt avatar stormshield-gt commented on June 3, 2024

Thanks for the clarification, I've should have git blame the code.

Do we need a cryptographic secure hash like sip hasher here or for we could use for instance non-cryptographic hash like rustc_hash?
I suppose this is not used in performance critical code and obviously you seem to care about stability so I'm not asking to change it, just if we could.

from uniffi-rs.

stormshield-gt avatar stormshield-gt commented on June 3, 2024

Thanks a lot for your time and your response!

from uniffi-rs.

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.