Giter Club home page Giter Club logo

Comments (1)

Firstyear avatar Firstyear commented on September 15, 2024

Hey there,

rustls only provide TLS - webauthn-rs does not use TLS at all! webauthn-rs in this case is relying on cryptographic primitives such as sha2 and ecdsa (which something like rustls combines to create a tls implementation).

So the question you probably want to ask is "why are you using openssl over ring/other rust crate". There are multiple reasons.

First, no other rust cryptograhic primitive library supports the ability to recreate a public ecdsa key from it's x/y components which is required by webauthn. It's literally impossible to use any other library for the cryptographic operations we require.

Second, as I work for SUSE and we have use for this that may end up with clients, there may be requirements to use a verified cryptographic provider - which openssl is but the other rust primitives are not.

Third openssl for it's flaws, has many people now working on it and funding and support that other libraries simply do not have (ie libressl).

Fourth many of the dangers/pitfalls of the openssl api aren't present in it's rust bindings just by virtue of the type system.

If it helps you, this library has had a security assessment and review especially around the use of openssl and the cryptographic elements and it passed with flying colours. You can have a look and review yourself if you like :) https://github.com/kanidm/webauthn-rs/blob/master/src/crypto.rs#L323

Hope that helps,

from webauthn-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.