Giter VIP home page Giter VIP logo

Comments (2)

ejohnstown avatar ejohnstown commented on May 28, 2024

I can't comment on OpenSSH's CPU utilization. I've peeked at their code in the past, and they are spinning up multiple threads for handling the peer socket and one per channel, connected with pipes.

wolfSSL and wolfSSH are two separate libraries. wolfSSH uses the wolfCrypt portion of wolfSSL. wolfSSL's SINGLE_THREADED option is for TLS operation. You would normally run each TLS session in its own thread. There is some shared state, the session cache, that needs mutexes. Single threaded removes the mutexes.

In wolfSSL, we also have asynchronous cryptography usage. When doing some crypto operations, the session will return a WANT_WRITE-like code meaning the session is waiting for the crypto hardware. wolfSSH does not take advantage of this yet.

Cryptography is always going to be CPU intensive. wolfCrypt can offload crypto operations to additional hardware. For example, wolfCrypt can take advantage of AES-NI, AVX1/2, etc on the Intel processors. We can always add more as part of a support package. We have a single-precision math library that performs public key cryptography and runs super fast in constant time branch-free, but the code is somewhat large. There's always trade-offs. wolfSSH is using the same cryptography as wolfSSL, and is using many of the same algorithms. (ECDSA, ECDHE, AES-GCM, etc.)

wolfSSH's server is still a work in progress. (There's a reason it is in the examples directory.) It is missing authentication, but wolfSSH expects the user to add it with an authentication callback. (It can run on anything including systems without users.)

Can I put you in touch with one of our sales managers to discuss some consulting? We can help with porting and integration.

from wolfssh.

ejohnstown avatar ejohnstown commented on May 28, 2024

Do you have any other questions, or did I misunderstand what you asked? Would you like to follow up?

from wolfssh.

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.